Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Passthrough Command
Message
From
17/02/2002 20:08:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Passthrough Command
Miscellaneous
Thread ID:
00621388
Message ID:
00621388
Views:
49
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.
Next
Reply
Map
View

Click here to load this message in the networking platform