Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBCC via SQLPT - How to get the results/msgs ??
Message
From
21/07/2004 14:48:03
 
 
To
21/07/2004 13:37:13
Scott Barker
Barker Systems Consulting Ltd.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00926652
Message ID:
00926708
Views:
13
This message has been marked as the solution to the initial question of the thread.
Use the "WITH TABLERESULTS" option.

DBCC CHECKDB WITH TABLERESULTS

>Hi there.
>
>I'm having trouble figuring out how to get the results/messages back from a sql passthrough call that does a DBCC on the SQL server. When I run the lcCmd shown below, it executes successfully, but the DBCC_Res cursor is not generated. (which I kinda' figured it might not be)
>
>
>lcCmd = [DBCC CHECKDB ('TestDB')]
>lnResult = sqlexec(lnHandle, lcCmd, 'DBCC_Res')
>
>So, is there an @@ variable I can retrieve on the very next sql call or something???
>
>TIA, Scott :-D
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform