AdoDB: How to issue "USE DB" Command

15 views
Skip to first unread message

Jayadev U

unread,
May 3, 2026, 3:12:01 AM (yesterday) May 3
to ado-h...@googlegroups.com

Hi,

 

As per subject line, the command oConn:Execute("Use  AS4”) results in error:

 

 

The command is perfectly valid in Sql-Studio and also in SQLMIX.  This is just to ensure that ensuing operations are limited to the database used only.

 

What is the equivalent command in ADO.

 

Best,

 

Jayadev

 

 

image001.png

Francesco Perillo

unread,
May 3, 2026, 3:42:01 AM (yesterday) May 3
to ado-h...@googlegroups.com
Don't you specify database in the connection string?

--
Has recibido este mensaje porque estás suscrito al grupo "ADO Harbour" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a ado-harbour...@googlegroups.com.
Para ver este debate, visita https://groups.google.com/d/msgid/ado-harbour/000701dcdacc%24214ed3f0%2463ec7bd0%24%40gmail.com.

Jayadev U

unread,
May 3, 2026, 3:43:02 AM (yesterday) May 3
to ado-h...@googlegroups.com

Hi,

 

Sorry for the noise, please ignore.

 

I did not select the MSSQL connection prior to execution of the command, the command was trying to execute on an MSACCESS connection.

 

Best,

 

Jayadev

image001.png
Reply all
Reply to author
Forward
0 new messages