Avatar of ksfok
ksfok

asked on 

Publish ASP.NET 2 web site with SqlEXpress in App_Data

I have a dev database with memberships and roles created in SqlServer 2005 developer. Now I need to deploy the said database with an ASP.NET 2.0 web site to a remote web server where no production SqlServer license is available. Can I create an App_Data folder in the dev web site, detach the said database mdf/log, place the mdf/log in the App_Data folder, and publish the site as with a SqlExpress datbase? Please advise. Thanks.
ASP.NET

Avatar of undefined
Last Comment
Dustin Hopkins
ASKER CERTIFIED SOLUTION
Avatar of Dustin Hopkins
Dustin Hopkins
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ksfok
ksfok

ASKER

Please confirm or answer the following about SQLExpress:

1) The database must be placed in App_Data.
2) Can multiple databases be placed in App_Data?
3) How can I declare connection strings in Web.config?
4) How many connections are allowed?

Thanks
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of ksfok
ksfok

ASKER

I know how to declare connectionstring for a database on a sqlserver instance, but forgot how to do it for a database stored in App_Data. Please help. Thanks.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of ksfok
ksfok

ASKER

Please kindly confirm this:

Driver={SQL Native Client};Server=.\SQLExpress;

Is the above to be entered exactly as it is in the connectionstring without a SQLExpress instance installed as in my case? Anything else to do additionally?

Thanks.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo