ADO DB Connection to SQL Server (ASP.Net)
- From: "kvrdev1" <kvrdev1@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 17:38:15 -0700
I'm attempting to connect to a SQL Server DB, using ADO, from my new ASP.NET
web application. I can use the same connect string from within a VB.Net app
(windows app) just fine, but I cannot do it from within my web app... Here
is the error I am receiving:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection.
I am using windows authentication, which works just fine within my windows
app - I'm using the web server on my local machine... Here is my connect
string and code associated with this:
sDatabaseType = "SQL Server"
sServerName = "MyServer"
sDatabaseName = "MyDatabase"sConnectString = "DRIVER={SQL
Server};SERVER=" & sServerName & ";Trusted_connection=yes;DATABASE=" &
sDatabaseName & ";"
gdcDataConnection = New ADODB.Connection
gdcDataConnection.Open(sConnectString)
I would appreciate any help that you can provide!!!!!
Thank you!-Valerie
.
- Follow-Ups:
- RE: ADO DB Connection to SQL Server (ASP.Net)
- From: .Net Believer
- Re: ADO DB Connection to SQL Server (ASP.Net)
- From: Cor Ligthert
- RE: ADO DB Connection to SQL Server (ASP.Net)
- Prev by Date: Re: GetManifestResourceStream("fullbuttonface.bmp") not working
- Next by Date: Get Domain Name from URL?
- Previous by thread: Re: GetManifestResourceStream("fullbuttonface.bmp") not working
- Next by thread: Re: ADO DB Connection to SQL Server (ASP.Net)
- Index(es):