June 24, 2013 at 8:01 am
Hi Team,
I've a simple table USG_Data with below columns, but having 2.5 lac records.
id, Name, Address, City, Phone.
when i select count(*) from USG_Data, gettting result with count of records, but
when i select * from USG_Data am not gettting the complete result set, after displaying some records sql server displaying that execuing query....
Want to know the reason please.
June 24, 2013 at 8:08 am
If I've read that right, it sounds like the row count settings in your SSMS.
Go to "Tools" -> "Options"
In the new window, expand "Query Options" then "SQL Server" then "General" and check what is populated in the "SET ROWCOUNT" field. If it's a number other than 0, then that will be your issue.
Follow me on twitter @EvoDBACheck out my blog Natural Selection DBA[/url]
June 24, 2013 at 10:06 am
Hi,
Below are the settings in specified path....
Set Rowcount = 0
Set Textsize = 2147483647
execution time-out=0
Batch seperator=GO
June 24, 2013 at 5:01 pm
Is anyone else using the table? It could be blocking caused by an update or an oddball SELECT.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 25, 2013 at 1:34 am
Post the ddl (CREATE TABLE ...) including any indexes.
Do you get the full set of rows if you restrict to one column in the SELECT? Does NOLOCK make any difference?
SELECT ID FROM USG_Data NOLOCK
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
June 25, 2013 at 2:23 am
Hi,
there are no locks on table, selecting data by specefying NOLOCK only, still gettting the same problem.
Please suggest...!
June 25, 2013 at 2:29 am
if you run
select *
INT0 #tmp
from USG_Data
how many records are inserted?
________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
June 25, 2013 at 4:10 am
Minnu (6/25/2013)
Hi,there are no locks on table, selecting data by specefying NOLOCK only, still gettting the same problem.
Please suggest...!
Please answer!
ChrisM@Work (6/25/2013)
Post the ddl (CREATE TABLE ...) including any indexes.Do you get the full set of rows if you restrict to one column in the SELECT?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
June 25, 2013 at 7:43 am
Minnu (6/24/2013)
when i select * from USG_Data am not gettting the complete result set, after displaying some records sql server displaying that execuing query....Want to know the reason please.
Actually, this is NORMAL. You're trying to return a quarter million rows... it will display "some records" and then continue to execute until all "records" are returned. This could take a bit depending on how much memory your desktop system has, how wide the rows are, how wide the columns are, etc, etc.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply