473,804 Members | 3,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

APP_Data and sql server

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?
Feb 21 '08 #1
3 1940
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
IHi
I>
II f I place an .mdf file inside the App_data to deploy a web app -
Ican I deply my site so that the database at runtime is picked up in
Ithe App_data directory?
I>
IWould my server need to have sql server installed for this to work or
Ijust the .net framework?
I>
IIs the above possible - if not what is the purpose of App_data?
I>
Feb 21 '08 #2
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

---
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
IHi
I>
II f I place an .mdf file inside the App_data to deploy a web app -
Ican I deply my site so that the database at runtime is picked up in
Ithe App_data directory?
I>
IWould my server need to have sql server installed for this to work or
Ijust the .net framework?
I>
IIs 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?
Feb 22 '08 #3
Yes

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

On Feb 22, 4:09*am, gnewsgroup <gnewsgr...@gma il.comwrote:
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
---
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
IHi
I>
II f I place an .mdf file inside the App_data to deploy a web app -
Ican I deply my site so that the database at runtime is picked up in
Ithe App_data directory?
I>
IWould my server need to have sql server installed for this to work or
Ijust the .net framework?
I>
IIs 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 -
Feb 25 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2659
by: Michael | last post by:
Hi, I've read Scott's article: http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx but when I try to create a new database file in App_Data with Visual Studio 2005, it shows error: Connect to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL....
2
1933
by: Victor Paraschiv | last post by:
In a webservice I need to store the credentials in a xml file.Of course the password string is hashed. The XML is stored in App_Data. Now I need to open this file for read/write. I've tryed a lot of paths but none worked. Cassini tries to open a file from "'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\App_Data\Users.xml' and IIS is not far from that. I've tryed the followind parths: "~/App_Data/Users.xml"
4
2424
by: Hugo Flores | last post by:
I created a Web Application Project in VS 2005. The site is working fine in the development computer. Then I transfer all my files and dll to the production computer. I have a login form. If I try to log in, the production computer automatically generates an App_Data folder (the development computer doesn't have this folder at all) and it also generates an error saying that I don't have SQL Server 2005, which of course I don't, I'm not...
5
14362
by: CharlesA | last post by:
hi folks I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which appears to have 100% unanimous approval on Amazon. I got the book and downloaded the code and I opened the solution. in his readme.txt he recommends that you move the database files he gives you in the App_data folder (called oddly aspnet.mdf and aspnet_log.mdf) and then attach them using sp_attach and rename them I renamed these TheBeerHouse (mdf and ldf)...
0
1636
by: PinkBishop | last post by:
Question regarding the ASP.NET 2.O Membership / Role component The following works fine on local machine and networked dev box. ASP.NET Membership protecting files and folders. I am trying to run the Membership component. I have loaded to production where host is running Win2k Server, IIS 5, ASP.NET 2.0, SQL Express
2
1891
by: itfetish | last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server to .Net framework 2.0 (it had 1.1 before) As I have been working on a web parts page on my laptop, hosting it there, working perfectly. I want to transfer it now, so I upgraded it. Created a new application pool for .net2.0 stuff, then used Visual Studio 2005 from my laptop to connect to Http://Bw-online/ProjectPoint and make a new website. Bw-online is our intranet at...
3
1954
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is it always necessary to upload to the host, the App_Data folder if my db does not reside in that folder? -- L. A. Jones
6
29499
by: Andy Fish | last post by:
Hi, From what I can gather, under Asp.Net 2.0, it is safe to put data and config files underneath the app_data in the web root and they will not be served directly to the browser from a URL. Can anyone explain just how this feature works. is app_data a reserved name for IIS and ASP.Net, or is there some jiggery pokery going on behind the scenes with file permissions or virtual roots?
6
9593
by: Mr. X. | last post by:
I have visual studio 2008. My site has a plesk on it. I want to deploy my project, and save it on the host machine. Looking for solution for folowings, please : 1st solution ======= Should ASPNETDB.MDF is necessary,
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.