Friday, June 3, 2016

Attach database With connection string used to SQL Server

//Attach database With connection string used to SQL Server

Provider=SQLNCLI10;Server=.\SQLExpress;
AttachDbFilename=|DataDirectory|mydb.mdf;Database=dbname;
Trusted_Connection=Yes;

No comments: