473,382 Members | 1,447 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,382 software developers and data experts.

Query Analyzer - not printing output

Is there something that can be set in SQL to not print output to the
screen? Something like SET NOCOUNT ON, only in this case, I don't
want it to print any output except what my script specifies in PRINT
statements. Any ideas? Thank you.
Jul 20 '05 #1
3 6537

"Marcus" <mj*****@yahoo.com> wrote in message
news:7d**************************@posting.google.c om...
Is there something that can be set in SQL to not print output to the
screen? Something like SET NOCOUNT ON, only in this case, I don't
want it to print any output except what my script specifies in PRINT
statements. Any ideas? Thank you.


Not all output and messages can be avoided - can you give an example of the
output you don't want to see? You might also want to look at using OSQL.EXE
with an output file.

Simon
Jul 20 '05 #2
Hi,

set no count on

will only suppress the total recrds read by the query .But i don't
think will eliminates the visibility of the query result.
Jul 20 '05 #3
Thanks for your feedback.

I wrote a batch file to be run from query analyzer for use by would-be
developers (much like myself). In order to get the final output to
the users, I issue quite a few select statements. When they see all
the output from various select statements, they get confused.

I'm using dynamic sql to execute the select statements. Actually, if I
knew how to issue "exec('select count(*), etc. " into variables using
dynamic sql, I wouldn't have the problem of trying to suppress output.
But I can't seem to get that working.

Marcus
"Simon Hayes" <sq*@hayes.ch> wrote in message news:<3f**********@news.bluewin.ch>...
"Marcus" <mj*****@yahoo.com> wrote in message
news:7d**************************@posting.google.c om...
Is there something that can be set in SQL to not print output to the
screen? Something like SET NOCOUNT ON, only in this case, I don't
want it to print any output except what my script specifies in PRINT
statements. Any ideas? Thank you.


Not all output and messages can be avoided - can you give an example of the
output you don't want to see? You might also want to look at using OSQL.EXE
with an output file.

Simon

Jul 20 '05 #4

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

Similar topics

5
by: Warren Wright | last post by:
Hi group, I have a select statement that if run against a 1 million record database directly in query analyzer takes less than 1 second. However, if I execute the select statement in a stored...
0
by: Obscurr | last post by:
hi, I'm having trouble with a query. running it in SQL Server 7's Query Analyzer gives me the correct output, but when I put that code inside my php file it won't respond the same way. How come?...
3
by: Steve | last post by:
Hi; I have been writing a lot of quick and diryt tsql scripts to correct database issues. I've been saving the output of the scripts for future records. I have been executing them through...
3
by: Ixnay | last post by:
Hi, Does anyone out there know how to do this? I've been banging head for awhile now trying to answer this seemingly simple question. tia, Mike
1
by: MichaelC | last post by:
Hi all, I'm a newbie to SQL and I need help with investigating what ways are possible to build an interface of some sort that wraps around a SQL query script. I have a simple SQL query which...
2
by: jim_geissman | last post by:
I would like to save a query plan (estimated or actual) created in Query Analyzer -- paste it into a document, or simply print. It doesn't seem to be possible to select and copy the Execution...
1
by: damezumari | last post by:
I have a stored procedure: CREATE PROCEDURE jan.faq_mainframe (@type varchar(100)) as SELECT faq.id, faq.question, faq.answer, faq.faqtimestamp, faq.type
3
by: dba_222 | last post by:
Dear experts, I hate to ask such a seemingly dumb question. But I have spent some time trying to solve this already to no avail. When I was using my query analyzer last, a few months ago, I...
9
by: Frawls | last post by:
Hi I Am am having problems with a stored Procedure that i wrote. Basically whats happening is that the Stored procedure Runs fine when i EXECUTE it in SQL Query analyzer. But when i debug...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.