Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 24th, 2006, 11:15 PM
zerbie45@gmail.com
Guest
 
Posts: n/a
Default adodbconnection - property value

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.

  #2  
Old February 25th, 2006, 10:35 AM
Paxton
Guest
 
Posts: n/a
Default Re: adodbconnection - property value


zerbie45@gmail.com wrote:[color=blue]
> 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.[/color]

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.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles