fbaron3 Posted March 24, 2012 Share Posted March 24, 2012 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.. Link to comment Share on other sites More sharing options...
jchd Posted March 24, 2012 Share Posted March 24, 2012 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 hereRegExp tutorial: enough to get startedPCRE 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) Link to comment Share on other sites More sharing options...
fbaron3 Posted March 24, 2012 Author Share Posted March 24, 2012 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. Link to comment Share on other sites More sharing options...
jchd Posted March 25, 2012 Share Posted March 25, 2012 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 hereRegExp tutorial: enough to get startedPCRE 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) Link to comment Share on other sites More sharing options...
fbaron3 Posted March 25, 2012 Author Share Posted March 25, 2012 Does anyone have a good example of how to leverage COM with ODBC? I am still banging my head against the wall on this.. Link to comment Share on other sites More sharing options...
jchd Posted March 26, 2012 Share Posted March 26, 2012 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 hereRegExp tutorial: enough to get startedPCRE 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) Link to comment Share on other sites More sharing options...
kylomas Posted March 26, 2012 Share Posted March 26, 2012 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 Link to comment Share on other sites More sharing options...
fbaron3 Posted March 31, 2012 Author Share Posted March 31, 2012 Thanks for the ideas.. I decided to go different route and write it in python. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now