c# - ADO.NET creating a consistent connection string -


i toying around rogue application , realized if deploy program on computer, crash because connection string absolute path.

data source=(localdb)\v11.0;attachdbfilename="c:\users\ad\documents\visual studio 2013\projects\botsuite test\botsuite test\users.mdf";integrated security=true;connect timeout=30 

i thought looking in directory, setting string filepath , using deal issue seems there should easier way.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -