Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 10th, 2006, 07:33 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# connecting to SQL Express

Hello

I am a totally new user to C#, coming from a VB6 background. Think of me as someone with sever VDU ([u]V</u>ery [u]D</u>umb [u]U</u>ser) syndromeI am trying to connect manually to the default installation of SQL Express installed with Visual Studio Professional. In creating the connection string as follows:

ConnecString = @"Data Source=[GD-MOBILE\SQLEXPRESS];Initial Catalog=PRISM_Test;Integrated Security=true";

the single backslash is automatically converted to two backslashes. Is there a way to prevent this, or should I be using another means of connecting to the datasbase. And not using the wizards and what nots that come with Visual Studio

Thanks
Carlos





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting SQL server express edition gauravawas C# 1 February 19th, 2008 05:03 PM
connecting to a sql 2005 express database twisted f8 Visual Basic 2005 Basics 1 September 13th, 2007 09:49 PM
connecting to SQL express cherry C# 2005 2 September 2nd, 2006 12:34 PM
Connecting to SQL Server Express venkikrao VB.NET 3 February 4th, 2006 12:00 AM
Problem connecting to SQL Express after publishing bleitner SQL Server 2005 2 January 9th, 2006 01:52 AM





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