i wanna to attach a Database from a dynamic path to a MSSQL server by coding a project to do this ,,
what is the code i should write and will it be a Windows Application or Console Application ,, or there is no difference ??
i wanna to attach a Database from a dynamic path to a MSSQL server
Share
In the connection string you can attach a database if the database has not already been attached. To do this in C# you should be able to do the following (this is untested):
Let me know how you get on.
Regards,
Stu