Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2007, 06:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default SQLExpress, Visual Web Developer, Vista

OK,

Finally getting around to asking about hitting a SQLExpress DB from a Visual Web Developer App on Vista.

Typical sample connection strings are like:

<add name="AppConnectionString1" connectionString="Data Source=&quot;.\SQLEXPRESS&quot;;AttachDbFilename=& quot;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorksLT_Data.md f&quot;;Integrated Security=True"
        providerName="System.Data.SqlClient" />

No dice.


Moved the AdventureWorksLT_Data.mdf file to C:\Users\Public, attached it to my SQLExpress instance through Management Studio and tried to hit it with:

<add name="AppConnectionString1" connectionString="Data Source=&quot;.\SQLEXPRESS&quot;;Initial Catalog=&quot;AdventureWorks_Data.mdf&quot;;Integr ated Security=True"
        providerName="System.Data.SqlClient" />


No dice.

Aslo tried leaving AdventureWorks_Data.mdf in C:\Users\Public without attching it to SQLExpress and using AttachDbFilename=&quot;C:\Users\Public\AdventureWo rksLT_Data.mdf

No dice.

Anybody have the secret. I don't want to use the App_Data file (as in AttachDBFilename=|DataDirectory|), but hit the DB after it has been attached to SQLExpress. I suspect UAC is mucking things up again, just don't know how to get around it.

Thanks,

Bob

 
Old December 18th, 2007, 08:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

NEVER MIND!!! SORRY!!!

The sample app I was trying to run kept redirecting me to a page indicating that the DB couldn't be found when that wasn't the actual problem.

Got it all running OK.

:)







Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio VS. Visual Web Developer expr Astrocloud BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 November 23rd, 2008 03:10 PM
Web Matrix vs. Visual Web Developer Express kwilliams ASP.NET 2.0 Basics 8 July 17th, 2007 01:41 PM
Help in Visual Web Developer carswelljr Visual Studio 2005 0 September 13th, 2006 03:19 PM
Visual Web Developer cbailey77 ASP.NET 2.0 Basics 0 September 6th, 2006 11:39 AM
Visual Web Developer web server works NOT IIS!! glandgraf@gocfi.com Visual Studio 2005 2 January 28th, 2005 08:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.