Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 January 25th, 2007, 12:34 AM
Authorized User
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection string for MSDE

Hi,

        I need the connection string in .Net 1.1v, c#, for connecting my database which is in MSDE[Microsoft Database Engine].

[u]My Existing code for connection string:</u>
<add key="BWFM_ConnStr" value="server=MSDENEW; user id=sa; password=buildfolio1819; database=ORQSample;instancename=MSDENEW;"/>


[u]The Error I am getting is:</u>

Keyword not supported: 'instancename'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Keyword not supported: 'instancename'.



Thanks in advance..........
Karhtik
__________________
Karthik
[Nothing is impossible]
 
Old January 25th, 2007, 01:35 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to karthiklsimha
Default

Hi Karthik,
Try this...

<add key="BWFM_ConnStr" value="Password=buildfolio1819;User ID=sa;Initial Catalog=ORQSample;Data Source=[ServerName\MachineName]\MSDENEW"/>

In the above replace [ServerName\MachineName] with the Machine Name where MSDE (Microsoft SQL Server Desktop Engine) is installed. If you are trying to access MSDE installed in the local machine then use

Source=.\MSDENEW


Regards,
Karthik Simha





Similar Threads
Thread Thread Starter Forum Replies Last Post
MSDE connection problem (Newbie) rahzan SQL Server 2000 2 June 29th, 2004 08:32 AM
MSDE Connection not working Phil Williams MySQL 3 March 18th, 2004 04:11 AM
ASP.NET MSDE Connection string problems Bagheer Classic ASP Databases 0 August 27th, 2003 08:02 PM
connection string to MSDE(SQL) database from ASP johngilbart BOOK: Beginning ASP 3.0 9 June 13th, 2003 06:09 PM





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