How to create automatic connection string and attach database

Hi
I made a program in visual c# 2013 and aql 2012.i want to create connection string that automatically use and setup in a system with sql express.and so automatically attach database.how can i do????please help me

1 answer

To create a connection string, you can use two tutorials:

https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/creating-a-connection-string

https://msdn.microsoft.com/en-us/library/ff647396.aspx

Also, to solve this problem, I use a special resource (there you can buy essay online, review or article) and tips from this thread https://stackoverflow.com/questions/5283727/what-is-the-sql-connection-string-i-need-to-use-to-access-localhost-sqlexpress-w