473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Query Analyser 2000 vs 7.0

ISTR QA running in 7.0 would return print statements and messages as the
query ran (well, after a "GO" statement anyway). In 2000 it doesn't return
any messages until after the entire query batch has completed. In wanting to
keep an eye on progress on long batches, how can I make 2000 work more like
7.0 in this respect?
Jul 20 '05 #1
3 2383
"For example John Smith" <so*****@microsoft.com> wrote in message news:<3f***********************@news.easynet.co.uk >...
ISTR QA running in 7.0 would return print statements and messages as the
query ran (well, after a "GO" statement anyway). In 2000 it doesn't return
any messages until after the entire query batch has completed. In wanting to
keep an eye on progress on long batches, how can I make 2000 work more like
7.0 in this respect?


The PRINT output is always returned after the batch completes. If you
need to return messages during the batch execution, you could look at
RAISERROR WITH NOWAIT, depending on exactly what you need to achieve:

/* No message until the batch ends */
print 'Hello'
waitfor delay '000:00:05'
print 'Finished'
go

/* First message returned immediately */
raiserror('Hello', 16, 1) with nowait
waitfor delay '000:00:05'
print 'Finished'
go

Simon
Jul 20 '05 #2
sq*@hayes.ch (Simon Hayes) wrote in message news:<60**************************@posting.google. com>...
"For example John Smith" <so*****@microsoft.com> wrote in message news:<3f***********************@news.easynet.co.uk >...
ISTR QA running in 7.0 would return print statements and messages as the
query ran (well, after a "GO" statement anyway). In 2000 it doesn't return
any messages until after the entire query batch has completed. In wanting to
keep an eye on progress on long batches, how can I make 2000 work more like
7.0 in this respect?


The PRINT output is always returned after the batch completes. If you
need to return messages during the batch execution, you could look at
RAISERROR WITH NOWAIT, depending on exactly what you need to achieve:

/* No message until the batch ends */
print 'Hello'
waitfor delay '000:00:05'
print 'Finished'
go

/* First message returned immediately */
raiserror('Hello', 16, 1) with nowait
waitfor delay '000:00:05'
print 'Finished'
go

Simon


Try viewing the ouput in Text mode. (Instead of the Grid)
Jul 20 '05 #3
> Try viewing the ouput in Text mode. (Instead of the Grid)

That worked a treat, thanks.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: wiredog | last post by:
I am struggling rewriting my query from MS Access' IIF, Then to SQL Servers TSQL language. I am hoping some one can give me some guidance. I believe I have the first portion of the query correct...
1
by: foldface | last post by:
Hi I'm expecting the answer no here but its worth asking. If I wanted to test an arbitary program could I somehow say in query analyser, start a global transaction on this database, run my tests,...
7
by: stig | last post by:
hi. coming from postgresql, i am used to textual references to most of the things i do with the database. i feel a little lost with all the graphical. i have few questions regarding MS SQL 2000...
2
by: Prem | last post by:
Apparently the query analyser of sql server does not recognise a database with a point in it, like mail.archive.mdf I receive the following error when I use it: Server: Msg 911, Level 16,...
0
by: Jason | last post by:
Hi All, OS is Server 2003 and is SQL Server 2000 When running my query as a scheduled procedure through Enterprise Manager (using Server Agent) it takes 24 mins (Too Long).... In query Analyser...
2
by: jim.clifford | last post by:
Hello. I have a slow response with a system that I am setting up. The OS is Win 2000 Server with SQL Server 2000. My first execution of the SQL procedure is slow (about 40 seconds), while the...
3
by: KishenGajjar | last post by:
I'm trying to convert a query that runs in Query Analyser (SQL Server 2000) to work in MS Access. This will then help me modify the query further and use it to create reports and such. This query...
0
by: mnnaresh | last post by:
Hi , any one cud plz help after the installation of ms sql2000 enterprise edition on winxp sp2 iam unable to use query analyser at the inital stage of logging in with sa got the error as msg...
7
by: LaMoRt | last post by:
Hi there! Is there any way to find the user who did some transaction of update in query analyser in certain time ? The update was done manually in query analyser and is not through system....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.