![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to install SQL Server 2005 Express so I can use it with Visual Studio 2005 Professional to develop some practice ASP web apps. The instructions I'm following want the .mdf file created in the app_data folder of the ASP program but I can't get SQL Server to do that. If I right click on the app_data folder and say add new item, sql database it says: connections 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: http://go.microsoft.com/fwlink/?linkid=49251 That's where I got SQL Server 2005 from. I also got the SQL Server Management Studio Express and it will allow me to create the database but only in it's directory under program files etc. Any ideas? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi, I tried your process and everything worked fine at my side. My test process is as following: 1. Run "sqlcmd /SCharles-2k3\SQLEXPRESS /E" from command line to log on my SQL Server 2005 Express, and then run: sp_configure 'user instances enabled',1 Go Reconfigure Go 2. Create a new Web site from VS2005, right click the APP_DATA folder, click Add New Item..., select SQL Database, enter a database name 'TestDB', and click OK. After the process, the TestDB.mdf was created under the APP_Data folder and shown under the Data Connections folder in Server Explorer, and I could add new tables from Server Exploerer. Please first run: sp_configure 'show advanced options',1 go sp_configure go to check if the option 'user instances enabled' was enabled, if not, please enable it. If it had been enabled, I am afraid that your SQL Server 2005 Express may not be correctly installed. I recommend that you reinstall SQL Server 2005 Express to see if this issue persists. Also, you may check if installing SQL Server 2005 SP2 is helpful for your situation: SQL Server 2005 Express Edition SP2 http://msdn.microsoft.com/vstudio/express/sql/download/ If you have any other questions or concerns, please feel free to let me know. It is my pleasure to be of assistance. Best regards, Charles Wang Microsoft Online Community Support ================================================== === Get notification to my posts through email? Please refer to: http://msdn.microsoft.com/subscripti...ult.aspx#notif ications If you are using Outlook Express, please make sure you clear the check box "Tools/Options/Read: Get 300 headers at a time" to see your reply promptly. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================== ==== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ================================================== ==== This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== ==== |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |