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.
Related
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 5 years ago.
Improve this question
I'm currently creating a Web Service to call on my ASP/C# application, which has a basic SQL SELECT query from an Oracle Database.
The problem is that the Web Service file itself doesn't recognize the Oracle libraries, so I can't use any commands like OracleConnection and such, as they asked me to do so for work.
The commands itself work perfectly on C# pages, and have no issue at all. The Web Service can read SQL Commands like SqlConnect, but not OracleConnect.
Any way to fix it? Thanks.
I was also facing all same issue
so i upload the all assemble to server it resolve my problem also please check the all the references
then clean the solution and rebuild solution.
Please check the oracle version and reference dll version
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 7 years ago.
Improve this question
I want share data between two application in c#. I have done it using IPC and text file read and write.But I want two share data rather than it.
You can use:
Local DB and connect both applications to it
Shared file
Net pipe to connect applications (search NetNamedPipeBinding and DuplexChannelFactory)
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.
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.
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