Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command to Display at Bottom Of Query Window.

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
0
0
US
This is the lower left corner of a T-SQL querywindow. What I would like to do is add code that, as a loop runs, displays the remaining records to be processed. I know how to get the number buy don't know how to put it where the "Ready" label is. I've done it in Access. Is there a way to do it in SQL Server?
Capture_nejjbc.jpg
 
I don't think you can. SQL Management Studio isn't a frontend tool like Access is. Besides that, when you'd use Access as a frontend and execute queries I doubt you'd get progress info. You get the result with unknown result size unless you first do a query giving you the count and/or use cursors and a fetch loop. You may then look into PRINT and/or RAISEERROR, but you can't put that into a query.

PRINT: RAISEERROR:
Bye, Olaf.



Olaf Doschke Software Engineering
 
Thanks. I was afraid that was the situation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top