Followers

Monday 31 July 2017

How to connect sql server DB using Microsoft ODBC data source in C#?

Source: stackoverflow.com --- Monday, July 31, 2017
I want to connect a database from different systems each time and want to set ODBC connection in Windows ODBC data source administrator and set server name, username and password of database there. What I want is that I give only connection name that I set in Windows ODBC data source administrator and I don't want to set server name, user or pass in code because they can change.How can I do this?I tried many connection strings but didn't work. I don't want to set server name in connection string and just want to set database name or ODBC connection name. thanks ...



from Windows http://ift.tt/2vayg3e

No comments:

Post a Comment