PC Review


Reply
Thread Tools Rate Thread

How to attach mdf in a relative directory

 
 
ad
Guest
Posts: n/a
 
      5th Nov 2005
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?


 
Reply With Quote
 
 
 
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      5th Nov 2005
Please see - http://blogs.msdn.com/dataaccess/arc...28/486273.aspx

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------

"ad" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>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?
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFileDialog and passing a relative directory automaticly to it Peted Microsoft C# .NET 1 4th Nov 2008 07:50 AM
Please help on relative directory on linked PDF files =?Utf-8?B?WVNvbmc=?= Microsoft Access Forms 0 23rd Aug 2006 07:35 AM
How to attach mdf in a relative directory ad Microsoft ASP .NET 4 6th Nov 2005 01:23 AM
Re: Relative Directory in Append Query John Nurick Microsoft Access External Data 4 24th Sep 2004 06:43 PM
Relative Directory in Append Query =?Utf-8?B?TmV3IFVzZXI=?= Microsoft Access External Data 0 22nd Sep 2004 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 PM.