Analyse sql queries text [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I faced with problem:
There is a big old database on microsoft sql server (with triggers, functions etc.). I am writing C# app on top of this db. Most of work is a "experiments" like this:
Write a part of functionality and see if it works in old Delphi app (i.e. inserted data in C# loaded correctly in Delphi).
So I need tool, that can determine which fields of each table is used or not (used in my queries). I think to write python script with sql syntax analyser or just using regular expressions.
What solution would you recommend?

You can run a trace in SQL Profiler to see the queries being executed on the server.

Related

C# .NET How i can add code editor C# to my website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
How i can add code editor C#,which will compile the code in live
I tried something with Ace, but nothing so far
Thank you.
If I understand correctly, you want to propose an input to user. They had C# code (no matter what) and your server executes it.
If yes, take a look at that.
It creates a project and build it in memory before executing it.
Be careful cause if you execute the code no matter what it will be a security breach into your server. For example, someone could execute a code which will download a file onto your server and open a backdoor to it.
Check this site:
https://dotnet.microsoft.com/platform/try-dotnet
This is embeddable .Net compiler which you could use without any preparations and setups

Generate C# code from drawn table [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Right now I am developing C# desktop application for some insurance company. Their reports have a lot of unusual tables with a lot of fields and I have to draw all that tables by using C# drawing class which takes a lot of time.
So I was wondering if there is any tool that can generate C# code for that table after drawing that table using mouse? Or if there is any way I can insert some data in already drawn MS Word table?
You can use COM to write in MS-Word tables:
https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-programmatically-populate-word-tables-with-document-properties
Microsoft SQL Reporting Services is the best Tool for Reports (if you are already at the microsoft side)

How to construct family tree using asp.net c# and SQL server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a database schema. How do I construct a family tree using asp.NET, C# and SQL server? Also, how can I show you the database schema?
I suggest you take a look at Family Show, a WPF application which enables you to view and/or edit a family tree. I think that with some tweaking you will be able to make it work against SQL Server using your database schema.

How To: VS C# App Option to connect to various data sources? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am currently writing a program in C# that will connect to a database for various user data. The query I have at the moment is what would be the best practice to be able to connect to various databases from the program at runtime?
To clarify:
I may want to connect to Oracle R12, or MS SQL Server or maybe even a dumb old access database. I am fine with putting the connection methods into their respective classes, but what I really want is a config file to be packaged with the application which dictates the type of server used for each installation, the field naming convention, etc.
So should this connection file be a .dll? an encrypted text file? or something else?
Obviously I dont want the end user ready access to the connection details in case they try and do their own digging in the database outside of my application.
I would go with encrypted configuration section, it's pretty standard and there are many examples, here is MS documentation:
http://msdn.microsoft.com/en-us/library/89211k9b%28v=vs.80%29.aspx

Using mysql USE with C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to find some relevant documentation in how to open a connection using the MySQL .NET Connector and then switch databases using the USE command.
The MySQL documentation says, well, nothing. That works for console but how do I actually use this in C# code?
To connect to a MySQL server in C# you use a connectionstring to define the server, the database, the user and the password.
If you want to use multiple databases, you should create a connectionstring for each database.
Look on this site for examples of connectionstrings: http://www.connectionstrings.com/mysql.

Categories

Resources