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

M

Michael

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....

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!
 
C

Christopher Reed

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.
 

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

Top