Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
IS this better way to connect the Database through .mdf file?

"Data Source=192.168.123.123,1433;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Test.mdf;User ID=sa;Password=1234"
it is working but can i use this AttachDbFilename attribute on this is it better or not?
Posted
Comments
Thanks7872 31-Oct-14 6:37am    
You said its working than what is the issue you need help with?

1 solution

The question: IS this better way to connect the Database through .mdf file? is... strange at least. If you want to attach database, there is only one way to do it.

List of available connection strings is here: http://www.connectionstrings.com/sql-server/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900