adodbconnection - property value

Z

zerbie45

I don't understand why but If I use vbscript the following code works
fine:

....connection string.....
dbConn.Open
msgbox dbConn.Property

but the corresponding code in asp:

...connection string.....
dbConn.Open
response.write dbConn.Property

returns the error "Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another" In both cases
connection to sql server is ok. I'm not very proficient with asp so it
may be a stupid question....

Thank you in advance.
 
P

Paxton

I don't understand why but If I use vbscript the following code works
fine:

...connection string.....
dbConn.Open
msgbox dbConn.Property

but the corresponding code in asp:

..connection string.....
dbConn.Open
response.write dbConn.Property

returns the error "Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another" In both cases
connection to sql server is ok. I'm not very proficient with asp so it
may be a stupid question....

Thank you in advance.

for each objProp in dbconn.Properties
response.write objProp.Name & ": " & objProp.Value & "<br>"
next

To retrieve a specific property value:

response.write dbconn.Properties("[Name]") where [Name] is the property
you want to access

/P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,144
Messages
2,570,823
Members
47,369
Latest member
FTMZ

Latest Threads

Top