Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Know how many record
Message
 
To
05/04/2006 14:50:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01110734
Message ID:
01110736
Views:
11
>when i do that (sql server 2005 express)
>
>SQLCOMMAND = "SELECT IDENT,HSCODE,DESC1,DESC2 FROM TB_HS_MESS WHERE IDCLIENT = " + ALLTRIM(STR(l_Custno)) + " ORDER BY hscode"
>
>
>
>STORE sqlexec(hConn ,SQLCOMMAND,'CUR_HSCODE') TO L_N
>
>
>the value of l_n is always 1
>
>
>
>
>how can i know the real number of records ?????
>thanks

You are happy that you always get 1 as a result. 1 means that everything is OK. Number of records you can get from:
STORE sqlexec(hConn ,SQLCOMMAND,'CUR_HSCODE') TO L_N
IF l_n > 0
   ? RecCount([CUR_HSCODE])
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform