Re: Web Applicaiton using Trusted Connections to SQL on different machine?
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 07/11/05
- Next message: Dan H: "SQL Server 2000 SP4 / Security Patches"
- Previous message: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- In reply to: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Next in thread: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Reply: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 11 Jul 2005 13:40:37 -0400
Scott Townsend wrote:
> Thank you for your reply.
>
> I'm not sure if this is really .Net Related though. I get the Error
> if I use ASP.NET code to make the connection, or if i just use ASP
> code to make the connection.
>
> My ASP code looks like this:
>
> Set enm = Server.CreateObject("adodb.connection")
> enm.Open "Driver={SQL
> Server};Server=SERVER;Trusted_Connection=yes;Database=Northwind;"
You should use the native OLE DB provider, not ODBC:
enm.open "provider=sqloledb;Integrated Security=SSPI;" & _
"Data Source=SERVER;Initial Catalog=Northwind"
> Set rsUser = enm.Execute("SELECT * FROM customers")
> Set enm = Nothing
> I get the Error on the .Execute
>
On the Execute? If it was a problem with the connection itself, the Open
statement would be throwing the error, not the Execute.
What is the error?
Bob Barrows
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
- Next message: Dan H: "SQL Server 2000 SP4 / Security Patches"
- Previous message: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- In reply to: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Next in thread: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Reply: Scott Townsend: "Re: Web Applicaiton using Trusted Connections to SQL on different machine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|