Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Passthrough Command
Message
De
17/02/2002 20:08:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Passthrough Command
Divers
Thread ID:
00621388
Message ID:
00621388
Vues:
42
Hi,

I'm having a problem when querying one of my tables(DBF) using SQL PassThrough. The two sets of commands are shown below.


nHandle = Sqlconnect("bbfsdsn")
csql = [Select a.* from Accounting!datacenter] + Alltrim(Str(thisform.dcno))
nResult = Sqlexec(nHandle, cSQL, 'cur_result')
Select cur_result
Browse


nHandle = Sqlconnect("bbfsdsn")
csql = [Select a.* from Accounting!datacenter a where dcno = ] + Alltrim(Str(thisform.dcno))
nResult = Sqlexec(nHandle, cSQL, 'cur_result')
Select cur_result
Browse

The first set of commands works fine. The second one does not query the table with the parameter I specified. I can't tell the difference between the two. The field dcno in the second command has a data type Integer(4). Any Help will be appreciated

Thanks in advance...
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform