Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADSI Connection

Status
Not open for further replies.
Nov 14, 2000
31
AU
Hi There,

I'm trying to create a connection to Active Dir. with ADO.

The microsoft site tells me to use this syntax but I get an error with the Server.CreateObject. It says that object server is required but without it it does work either.

Any ideas?

Set cnn = Server.CreateObject("ADODB.Connection")
cnn.provider = "ADsDSOObject"

Set cmdCommand = CreateObject("ADODB.Command")
Set cmdCommand.ActiveConnection = cnn
 
Set cnn = CreateObject("ADODB.Connection")

From what I can see you do not want the server.Createobject,
only CreateObject


Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top