CMDAI
asked on
ACCESS to MYSQL Pass-Through Query
How can i create a dynamic pass-through query in MYSQL?
do i need to adjust my connection string?
ODBC;UID=root;PWD=test;DSN =localhost
do i need to adjust my connection string?
ODBC;UID=root;PWD=test;DSN
ASKER
For the first part i got it,
but im not so sure what u mean "the Pass Through Query has to be Server related"
I copied this from the linked "inventory table"
ODBC;DATABASE=jnbkcrop;DES CRIPTION=J NBKCorpLoc alHost;DSN =JNBKCorpL ocalHost;O PTION=0;PO RT=0;SERVE R=localhos t;;TABLE=i nventory
SQL:
SELECT ID, Title FROM jnbkcrop.inventory;
I get "Recordset is not updatable"
but im not so sure what u mean "the Pass Through Query has to be Server related"
I copied this from the linked "inventory table"
ODBC;DATABASE=jnbkcrop;DES
SQL:
SELECT ID, Title FROM jnbkcrop.inventory;
I get "Recordset is not updatable"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ahh, ok.
I was very much off on the meaning of passtrough q.
Thank's
I was very much off on the meaning of passtrough q.
Thank's
As far as the Dynamic bit then you may need to expand. You can not include parameters as everything in the Pass Through Query has to be Server related but you could modify the SQL in code.
Cheers, Andrew