Sign in to follow this  
Followers 0
fbaron3

ADODB Issues

8 posts in this topic

I have a script that works fine on Win7, but moving it to Windows 2008 R2 I am running into ADODB issues when creating the object.

;SQL Connection Strings

$EPO = "DRIVER={SQL Native Client};SERVER=1.1.1.1;UID=testuser;PWD=password;Database=fb1"

$adoConn = $EPO

$db = ObjCreate("ADODB.Connection")

$rs = ObjCreate("ADODB.Recordset")

$db.Open($adoConn)

Cannot seem to find anything on installing ADODB on 2008 R2, could I just use ODBC instead? Its only querying one record..

Any suggestion would be greatly appreciated..

Share this post


Link to post
Share on other sites



Yes, go ODBC and you should get ADO (COM) support.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

I guess at this point I am confused if I can't use ADODB will I have the same issues with ODBC, all the references I have read still appear to use ADO.

Share this post


Link to post
Share on other sites

ADO is just a fancy name for new capabilities built into ODBC, merely COM scripting.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Does anyone have a good example of how to leverage COM with ODBC? I am still banging my head against the wall on this..

Share this post


Link to post
Share on other sites

You don't seem to have attracted much attention on this post. I don't have enough knowledge about 2008r2 distribution to drive you safe.

Anyway, my guess is that your server installation doesn't include an Office install for the server itself. ADO typically gets installed for MS supported DBs when installing Office (I may be wrong about that). Simple logic would tend to think that a server has no role for running Office by itself. Of course, serving Office is something else.

Double check that you don't miss an installable option on your server and hunt for information about ADO support on 2008r2. I've no idea what 'SQL native client' means in MS parlance. What actual engine are you trying to connect to?

Hint: change the title of this thread into "How to get ADO installed on 2008R2?" as I think the issue lies here (I may be wrong again).


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

fbaron3,

This link http://support.microsoft.com/kb/168335 may be of interest. It appears that you can install MDAC (which contains all needed for ADO) independently of Office products. You might also try a Google search "install ADO". Lot's of good stuff there.

Good Luck,

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Thanks for the ideas.. I decided to go different route and write it in python.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0