{"id":116,"date":"2007-04-27T15:12:52","date_gmt":"2007-04-27T23:12:52","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2007\/04\/27\/the-missing-x64-jet\/"},"modified":"2007-04-27T15:12:52","modified_gmt":"2007-04-27T23:12:52","slug":"the-missing-x64-jet","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2007\/04\/27\/the-missing-x64-jet\/","title":{"rendered":"The Missing x64 JET"},"content":{"rendered":"<p>Recently I was helping a scripter out in one of the many scripting forums I frequent. He had a script that uses ADODB to parse information from a CSV file.&nbsp; It works fine on 32 bit platforms.&nbsp; But when he went to run it on an x64 platform, no luck. You&#8217;ll get an error about no provider found. And there isn&#8217;t. Microsoft did not port the 32 bit JET database drivers to the 64 bit platform, nor are there any plans to.&nbsp; The only 64 bit driver you&#8217;ll likely find installed by default is for SQL.<\/p>\n<p>If you have scripts that use code like this:<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">objConnection.Open &#8220;Provider=Microsoft.Jet.OLEDB.4.0;&#8221; &amp; _<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;Data Source=&#8221; &amp; strPathtoTextFile &amp; &#8220;;&#8221; &amp; _<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;Extended Properties=&#8221;&#8220;text;HDR=YES;FMT=CSVDelimited&#8221;&#8220;&#8221;<\/p>\n<p>objRecordset.Open &#8220;SELECT * FROM &#8221; &amp; strFile, _<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objConnection, adOpenStatic, adLockOptimistic, adCmdText<\/font><\/p>\n<p>they will not run on a 64 bit platform.&nbsp; Unless&#8230;..you run your script in 32 bit mode.&nbsp; To do this you need to use the versions of CSCRIPT.EXE or WSCRIPT.EXE that reside in %WINDIR%\\SysWOW64:<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">%windir%\\syswow64\\cscript c:\\scripts\\parsecsv.vbs<\/font><\/p>\n<p>This should work. In the SysWOW64 directory you should see a number of odbc 32 bit drivers. If you run odbcad32.exe from this directory you should see all your familiar drivers. <\/p>\n<p>So, you can still use your old scripts; they just have to be run in 32 bit mode.&nbsp; If you have other issues running your scripts on an x64 platform, please start a discussion thread at <a href=\"http:\/\/www.scriptinganswers.com\">ScriptingAnswers.com<\/a>.<\/p>\n<p>I&#8217;m just now getting into the 64 bit world myself so I expect there will be many more surprises.<\/p>\n<\/p>\n<div style=\"margin: 0px; padding: 0px; display: inline;\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:3637ba4c-67d3-417e-8f92-57a6d5377714\" class=\"wlWriterSmartContent\"><span class=\"sizeLess20\">Technorati tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Scripting\">Scripting<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/ODBC\">ODBC<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/x64\">x64<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Vista\">Vista<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/CSV\">CSV<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/VBScript\">VBScript<\/a><\/span><\/div>\n<p><\/p>\n<div style=\"margin: 0px; padding: 0px; display: inline;\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:5279f109-4b47-46c6-a1e7-5ae0af8d2d0f\" class=\"wlWriterSmartContent\"><span class=\"sizeLess20\">del.icio.us tags: <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/Scripting\">Scripting<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/ODBC\">ODBC<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/x64\">x64<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/Vista\">Vista<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/CSV\">CSV<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/VBScript\">VBScript<\/a><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was helping a scripter out in one of the many scripting forums I frequent. He had a script that uses ADODB to parse information from a CSV file.  It works fine on 32 bit platforms.  But when he went to run it on an x64 platform, no luck. You&#8217;ll get an error about no provider found.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[24],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-vbscript"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}