Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO Shape problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Oracle
Divers
Thread ID:
01004899
Message ID:
01004918
Vues:
28
This download #9840 , provides a GUI to test ADO calls. It will help analyze the data and SQL.

>Hi,
>
>I have the following code to create an ADO Shape recordset. Everything is well until it tries to create the recordset. I keep getting a 'table or view does not exist' error message. Code below is the simplified version I use to make sure that the recordset gets created.
>
>oConnect = CREATEOBJECT('adodb.connection')
>
>oConnect.ConnectionString = "Provider=MSDataShape.1;Persist Security Info=False;Data Provider=OraOLEDB.Oracle.1;Data Source=DEMO;User ID=moad_test;Password=moad_test;PLSQLRSet=true"
>
>oConnect.Open
>
>oRecH = CREATEOBJECT('veRecHandler')   && class we use for record handler
>
>lcSqlCmd = 'SHAPE {SELECT * FROM "MyTable"} AS TestTable'
>oResultRS = oRecH.InitRecordSet(3, 3, 3, lcSqlCmd, oConnect)
>oResultRS.Close()
>
>
>Any help is greatly appreciated.
>
>Thanks,
>Arriyel
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform