Forum Discussion
whuang
Regular Contributor
Hi AlexKaras I think I still need your help regarding this. Now I can setup the SQL connection, but when I tried to execute the query below, it returned me another error: "Object doesn't support named arguments: DBConnection.CommandText".
Set DBConnection = ADO.CreateConnection
DBConnection.ConnectionString = "Provider=xxxx;Integrated Security=xxxx;Persist Security Info=False;User ID=xxxx;Initial Catalog=xxxx;Data Source=xxxx"
DBConnection.Open
DBConnection.CommandText = "My Query to Run"
DBConnection.Execute()
DBConnection.Close
whuang
6 years agoRegular Contributor
Nevermind, I figured out, it should be DBConnection.Execute(Query to run)
Related Content
- 2 years ago
- 6 years ago
- 12 years ago
Recent Discussions
- 9 hours ago