Connection string question
- From: "Tony Girgenti" <tony(nospam)@lakesideos.com>
- Date: Tue, 3 Apr 2007 09:58:11 -0400
Hello.
Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0, SQL Server
Express on XP Pro,
SP2.
In my web.config file, if my connection string looks like this:
"connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename="C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\WebSites\CoyneWebSite\App_Data\CoyneWebDatabase.mdf";Integrated
Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient"/>"
Shouldn't i be able to change it to "~/App_Data/CoyneWebDatabase.mdf"?
So that when i upload my website to my host it looks for "App_Data" off of
the root of the website.
Any help would be gratefully appreciated.
Thanks,
Tony
.
- Follow-Ups:
- Re: Connection string question
- From: francesco . fantoni
- Re: Connection string question
- From: William \(Bill\) Vaughn
- Re: Connection string question
- Prev by Date: Re: Tabledefs and VB.net
- Next by Date: Re: Post Revised: A Desperate Plea for Help
- Previous by thread: Rowchanging exception don't propagate (ado.net 2)
- Next by thread: Re: Connection string question
- Index(es):
Relevant Pages
|