?
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
?
441 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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 ?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

777 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