Wrox Programmer Forums
BOOK: Professional ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 4.5 in C# and VB by Jason N. Gaylord, Christian Wenz, Pranav Rastogi, Todd Miranda, Scott Hanselman; ISBN: 978-1-1183-1182-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 4.5 : in C# and VB 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 July 26th, 2015, 07:17 AM
Registered User
Join Date: Jun 2015
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need Help In Database Connection

I have defined
SqlConnection connection = new SqlConnection(connect method, connection )

And futher a class for connection and sub method
public string connect_method ()
return "Data Source = " ;
When I am providing IP address username and Password it is working but when I am trying to connect it locally its not working. Giving error unhandled exception error.
To connect to local I am writing a code
Date Source=(localdb)\v11.0

Can anyone help me to connect to local database using above code that is in place to data source = what I will put here.
Old August 3rd, 2015, 05:47 AM
Authorized User
Join Date: May 2015
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts

are you work In sql server express or managment

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Connection to Access Database reachsevar ASP.NET 2.0 Basics 1 November 28th, 2007 08:56 AM
Database Connection vkulasekar ADO.NET 5 March 27th, 2006 05:25 AM
Database connection sheetalshindepatil C# 2005 1 January 6th, 2006 11:49 PM
Connection to database exdter Dreamweaver (all versions) 3 September 21st, 2004 02:22 PM

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