Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

SQL... I know this SHOULD work, but never does, why?

$
0
0
The start of ANY SQL query within AUTOIT starts with the connection, and that's my problem. It NEVER works.



Global $adCN

$adCN = ObjCreate("ADODB.Connection")
$DSN = "DRIVER={SQL Server};SERVER=xxx;DATABASE=xxx;UID=xxx;PWD=xxx;"
$adCN.Open($DSN)

NEVER works for me.

I put in the right data in the fields above and get this no matter what I do..


Y:\AutoIT\SQL Test\sqltest.au3 (12) : ==> The requested action with this object has failed.:
$adCN.Open($DSN)
$adCN.Open($DSN)^ ERROR

The data is all correct and I'm running Scite ON the MDB server. So? It's Win Server 2008, SQL 2005,

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>