Re: connection string help
From: Chris Jackson (chrisjATmvpsDOTorgNOSPAM)
Date: 02/18/04
- Next message: NoLongerMicah: "Free icons for Undo, Redo, Save"
- Previous message: Bret Pehrson: "Re: Vote for a edit/continue function in csharp whidbey"
- In reply to: Mike: "connection string help"
- Next in thread: Mike: "Re: connection string help"
- Reply: Mike: "Re: connection string help"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Feb 2004 14:23:06 -0500
Since you are using Windows authentication, this connection string will only
work for you if the account you are running under (your ID for WinForms,
ASPNET by default for WebForms - though you can use impersonation to
authenticate with a domain account) has permissions on that server.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) -- "Mike" <csharpcoder@sbcglobal.net> wrote in message news:OZEHSMl9DHA.1816@TK2MSFTNGP12.phx.gbl... > I'm trying to connect to a SQL db, I have the db setup as a DSN on my > machine, here is my connection string that i'm trying to use. > > string dbConn = "Provider=sqloeldb;data source=Tech;Initial > Catalog=Tech;Integrate Security=SSPI;"; > > on my page I get this error; > > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access > denied. > > > and the error is pointing to > > mbConn.Open() \\line > > amd i missing something or doing something wrong? > >
- Next message: NoLongerMicah: "Free icons for Undo, Redo, Save"
- Previous message: Bret Pehrson: "Re: Vote for a edit/continue function in csharp whidbey"
- In reply to: Mike: "connection string help"
- Next in thread: Mike: "Re: connection string help"
- Reply: Mike: "Re: connection string help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|