Article ID: 194669
Article Last Modified on 7/1/2004
Column name Description
----------- -----------
NAME Name of the stored procedure
DLL Dynamic link library to which the stored procedure in
the NAME column belongs.
* Substitute the server name
#DEFINE Connect_String 'DRIVER={SQL Server};SERVER=MY_SERVER;' + ;
'DATABASE=PUBS;UID=UserName;PWD=StrongPassword'
* Connect to SQL Server
gnConnHandle=SQLSTRINGCONN(Connect_String)
IF gnConnHandle>0
* Create a command to execute the stored procedure
SQLCommand="sp_helpextendedproc"
* Execute the stored procedure and return data to a cursor
testvar=SQLEXEC(gnConnHandle,SQLCommand,'SYS_Procs')
? testvar
* Select the cursor
SELECT SYS_Procs
BROWSE LAST
=SQLDISCONN(gnConnHandle)
ENDIF
CLOSE ALL
RETURN
Additional query words: kbVFP600 kbVFP500 kbDatabase kbvfp300b kbvfp500a
Keywords: kbhowto KB194669