ThankHere is a very simple example:
using System.Collections.Specialized;
using Microsoft.SqlServer.Management.Common;
using Microsoft.SqlServer.Management.Smo;
Server svr;
StringCollection sc;
svr = new Server();
sc = new StringCollection();
sc.Add(@."c:\test.mdf");
svr.AttachDatabase("test", sc);
|||Thank you very much. I love ya.. just kidding. 
No comments:
Post a Comment