APP_Data and sql server

I

Ilyas

Hi

I f I place an .mdf file inside the App_data to deploy a web app - can
I deply my site so that the database at runtime is picked up in the
App_data directory?

Would my server need to have sql server installed for this to work or
just the .net framework?

Is the above possible - if not what is the purpose of App_data?
 
M

Michael Nemtsev [MVP]

Hello Ilyas,

your MDF should store somewhere in hard drive.
u can use the App_data but in SQL server u should import that DB from you
app_data forlder to work with this database from sql server

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


I> Hi
I>
I> I f I place an .mdf file inside the App_data to deploy a web app -
I> can I deply my site so that the database at runtime is picked up in
I> the App_data directory?
I>
I> Would my server need to have sql server installed for this to work or
I> just the .net framework?
I>
I> Is the above possible - if not what is the purpose of App_data?
I>
 
G

gnewsgroup

Michael said:
Hello Ilyas,

your MDF should store somewhere in hard drive.
u can use the App_data but in SQL server u should import that DB from you
app_data forlder to work with this database from sql server

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


I> Hi
I>
I> I f I place an .mdf file inside the App_data to deploy a web app -
I> can I deply my site so that the database at runtime is picked up in
I> the App_data directory?
I>
I> Would my server need to have sql server installed for this to work or
I> just the .net framework?
I>
I> Is the above possible - if not what is the purpose of App_data?
I>

I think what he was asking is this: will his mdf db file work properly
with his web app on the production sever if the production server does
not have sql sever installed?
 
I

Ilyas

Yes

this is exactly what I am asking - wil it work?

Michael Nemtsev [ MVP ] wrote:




Hello Ilyas,
your MDF should store somewhere in hard drive.
u can use the App_data but in SQL server u should import that DB from you
app_data forlder to work with this database from sql server
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
I> Hi
I>
I> I f I place an .mdf file inside the App_data to deploy a web app -
I> can I deply my site so that the database at runtime is picked up in
I> the App_data directory?
I>
I> Would my server need to have sql server installed for this to work or
I> just the .net framework?
I>
I> Is the above possible - if not what is the purpose of App_data?
I>

I think what he was asking is this: will his mdf db file work properly
with his web app on the production sever if the production server does
not have sql sever installed?- Hide quoted text -

- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top