Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27036

VS 2010 SQL Connection String: How To Take Server Name & Database Name From A Textbox Value??

$
0
0
Hi all,

I have the follwinig connection string which works fine except I now need to write the app so that the server/instance and Db. name is taken as a variable from a textbox on my form. The textboxes are populated from settings read from the registry. But try as i might I cannot find out how to do it so any pointers greatfully received - clearly from a numpty!

connetionString = "Server=Server\Instance;Database=DbName;Trusted_Connection=True;"

Viewing all articles
Browse latest Browse all 27036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>