473,626 Members | 3,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add new SQL Database to App_Data need SQL Server Express installed?

Hi,
I've read Scott's article:
http://weblogs.asp.net/scottgu/archi...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....

Steps to reproduce:
1. Add a new Web site
2. In Solution Explorer, click right mouse button on App_Data, then
select "Add New Item..."
3. Select SQL Database, click OK. Error happen!!

Doest that mean VS2005 still need SQL Server Express 2005 for some
functionality? Is there a way to solve this problem?

Thanks!
Jan 15 '06 #1
1 2649
Yes, I believe that you need SQL Server Express installed. You need to have
the database engine to run your database, even if it's in the App_Data
directory. The same would be true with an Access database where the Jet
Engine would need to be installed.

The solution is to install SQL Server Express.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Michael" <hu**********@g mail.com> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
Hi,
I've read Scott's article:
http://weblogs.asp.net/scottgu/archi...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....

Steps to reproduce:
1. Add a new Web site
2. In Solution Explorer, click right mouse button on App_Data, then
select "Add New Item..."
3. Select SQL Database, click OK. Error happen!!

Doest that mean VS2005 still need SQL Server Express 2005 for some
functionality? Is there a way to solve this problem?

Thanks!

Jan 16 '06 #2

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

Similar topics

10
3788
by: John Bunch | last post by:
I have installed Visual Studio 2005 Team Suite Beta 2, including SQL Server 2005 Express Edition April CTP, on Windows XP Professional SP2, including IIS 5.1. The SQL Server (SQLEXRPESS) service is running under the NT AUTHORITY\NETWORK SERVICE account. This machine is named VSDev01WSWP01. I am also running SQL Server 2000 on a Windows Server 2003 computer named VSDev01SQL02. This computer contains my application's database, which I...
1
1394
by: GS | last post by:
Hello, I use SQL express database on my workstation under App_data directory for development. I also want to use it in staging enviroment where SQL 2005 full blown version is installed. Can I just copy database and use the same connection string to connect to it? Greg
3
1274
by: BobLaughland | last post by:
Hi There, I am writing an ASP .NET 2.0 web site. I have a connection string in my web.config file similar to this for connecting to my database, SERVER=125.165.165.116,1092; DATABASE=blah***; UID=Blah***; PWD=blah*****
1
1536
by: Keith | last post by:
If I understand correctly, the SQL script called "InstallMembership.sql" can be used to create a membership database that exists in the instance of SQL Server 2005 used for my main application. Having created such a database, how can I get the ASP.NET Web Site Administration Tool to reference that database instead of the one that exists in the App_Data folder SQL Server Express database? Also, how can I get the membership controls in my...
3
8615
by: Freddie | last post by:
hi, i try to get the asp.net 2.0 security controls to work with SQL Server 2005 Dev RTM, this is my connetion string in mashine.config <connectionStrings> <add name="LocalSqlServer" connectionString="data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=false;" providerName="System.Data.SqlClient" />
0
1602
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had to install some type of IIS component to run databases from Visual Studio 2003. Since then, I've installed Visual Studio 2005. I know VS 2005 has some component so that IIS is not required. Here's the two errors:
2
4117
by: Patrick F | last post by:
Hi, i have SQL Server 2005 and a database set that is called, myCompany the problem is that i cant connect from my page to it, here is from the web.config: ( i have got this connectionstring from my sqldataobject on my page) <add name="ConStr" connectionString="Data Source=localhost;Initial Catalog=myCompany;Integrated Security=True" providerName="System.Data.SqlClient" /> the strange part is that its trying to connect to a SQL express...
1
5911
by: Mrozik | last post by:
Hi! I have Web Application with forms authentication. Data and security model resides in Oracle database. I have 'login' page with MS 'Login' control. In my LoggingIn event for debug purposes I have only: FormsAuthentication.RedirectFromLoginPage( "testlogin', false); (all users are authenticated) It works fine till now - I have still error:
5
1147
by: Jonathan Wood | last post by:
I have a Web application. Initially, I created a database in the App_Data folder and then attached it to SQL Servero 2005 (not SQL Server Express). I realize now that this is now what I want. So I created a backup of the database, detached the database file, and then created a new database from the backup that is fully a part of SQL Server 2005. The new database works just fine but I'm having the following problems: 1. I can delete...
0
8199
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
8638
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...
0
8505
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
7196
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...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
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
2626
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
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
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.