[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Select top 1000 * from Loan" (assume default SQL installation) and I notice that it does not come back

Posted on 2011-02-24
6
Medium Priority
?
452 Views
Last Modified: 2012-05-11
When doing...
Select top 1000 * from Loan" (assume default SQL installation) and I notice that it does not come back.
What common solution might I try next to "remedy" the problem?  
And what might be the problem?
0
Comment
Question by:tesla764
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 26

Expert Comment

by:tigin44
ID: 34971312
can you clarify? what is your problem?
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 34971317
Please explain what you mean by "it does not come back"
0
 
LVL 40

Accepted Solution

by:
lcohan earned 2000 total points
ID: 34971322
Select top 1000 * from Loan"

should give you a syntax error however


Select top 1000 * from Loan

should work but better add a where clause and with (nolock) hint like below:

Select top 1000 * from Loan with(nolock) where loan_date = ......
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:tesla764
ID: 34971437
We are on a highly transactional SQL Server, By not coming back I mean no data is returned after executing the query "Select top 1000 * from a table called Loan"
0
 
LVL 26

Expert Comment

by:tigin44
ID: 34971465

did you check the blocking processes?

issue an sp_who2 command and check the results...
0
 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 34972477
try this : Select top 1000 * from Loan With(nolock)

im assuming your not reciving any error message
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question