|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to attach mdf in a relative directoryI use asp.net 2.0 and SqlServer 2005 Express to develop my Web application
The database file of my applicaiton is "db.mdf", I put it in "myDB" directory under the application folder. I want to attach the mdf file when application start. How can I do that? Please see - http://blogs.msdn.com/dataaccess/archive/2005/10/28/486273.aspx
- Sahil Malik [MVP] ADO.NET 2.0 book - http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx ---------------------------------------------------------------------------- Show quote "ad" <fly***@wfes.tcc.edu.tw> wrote in message news:%235pHyXf4FHA.1148@tk2msftngp13.phx.gbl... >I use asp.net 2.0 and SqlServer 2005 Express to develop my Web application > The database file of my applicaiton is "db.mdf", I put it in "myDB" > directory under the application folder. > > I want to attach the mdf file when application start. How can I do that? > > |
|||||||||||||||||||||||