Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

newbie - empty result set for all queries?
I am a newbie and have installed SQL Server myself on my home machine,
where I'm having problems.  When I run the Query Analyzer, I get an
empty result set for all queries, with the message, "The command(s)
completed successfully."  So, for instance, if I were to go to
Northwind and type "SELECT * from Employees", which we KNOW isn't
empty, all I see is "The command(s) completed successfully."  How do I
get query results?

I thought maybe the problem was permissions.  I'm logged into my local
server, which is the computer on which I'm running.  The owner is just
"ZIPPY/Owner", ZIPPY being my machine name; since I'm the only one who
uses the computer, I don't even log in, I just take the default "Owner"
account.  I start up the SQL analyzer with Windows credentials.

Anyone have a clue what I'm doing wrong?


Report this thread to moderator Post Follow-up to this message
Old Post
shelah
09-19-05 02:23 PM


Re: newbie - empty result set for all queries?
shelah (shelah2@verizon.net)  writes:
> I am a newbie and have installed SQL Server myself on my home machine,
> where I'm having problems.  When I run the Query Analyzer, I get an
> empty result set for all queries, with the message, "The command(s)
> completed successfully."  So, for instance, if I were to go to
> Northwind and type "SELECT * from Employees", which we KNOW isn't
> empty, all I see is "The command(s) completed successfully."  How do I
> get query results?

You are not even getting an empty result set. Apparently you are in some
sort of noexec mode where the query is sent to SQL Server for validation
only.

There are a couple of ways to get this behaviour. First make sure that
you press the green arrow to run the query. The blue tick is for validation
only.

If the problem is not that simple, check Tools->Options->Connection
properties. If any of SET NOEXEC ON or SET PARSEONLY ON are checked,
uncheck them.

If this does not help, send these commands to SQL Server:

SET PARSEONLY OFF
SET NOEXEC OFF
SET FMTONLY OFF

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp


Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
09-19-05 02:23 PM


Re: newbie - empty result set for all queries?
Thank you, that was an enormous help.  You were right; I was clicking
the check and not the green arrow.  A great relief to know that I have a
usable database and don't have to do some wierd chown gyrations.


*** Sent via Developersdex http://www.droptable.com ***

Report this thread to moderator Post Follow-up to this message
Old Post
Shelah Horvitz
09-19-05 02:23 PM


Re: newbie - empty result set for all queries?
thanks it was a great help even to me
Erland Sommarskog  wrote:
> shelah (shelah2@verizon.net) writes: 
>
> You are not even getting an empty result set. Apparently you are in some
> sort of noexec mode where the query is sent to SQL Server for validation
> only.
>
> There are a couple of ways to get this behaviour. First make sure that
> you press the green arrow to run the query. The blue tick is for validatio
n
> only.
>
> If the problem is not that simple, check Tools->Options->Connection
> properties. If any of SET NOEXEC ON or SET PARSEONLY ON are checked,
> uncheck them.
>
> If this does not help, send these commands to SQL Server:
>
> SET PARSEONLY OFF
> SET NOEXEC OFF
> SET FMTONLY OFF
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp


Report this thread to moderator Post Follow-up to this message
Old Post
lakshmipathy
09-23-05 12:23 PM


Re: newbie - empty result set for all queries?
To avoid this in the future just hit F5

http://sqlservercode.blogspot.com/


Report this thread to moderator Post Follow-up to this message
Old Post
SQL
09-23-05 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 02:33 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006