Click here to Skip to main content
15,891,943 members
Home / Discussions / Database
   

Database

 
AnswerRe: Query Help Pin
Pete O'Hanlon20-Jun-07 5:14
mvePete O'Hanlon20-Jun-07 5:14 
QuestionHow to import an SQL database off of my web host's server and onto my desktop? Pin
Nostromo7719-Jun-07 9:10
Nostromo7719-Jun-07 9:10 
AnswerRe: How to import an SQL database off of my web host's server and onto my desktop? Pin
Hulicat19-Jun-07 12:35
Hulicat19-Jun-07 12:35 
QuestionDTS ActiveX Excel Formatting Pin
dario_dee19-Jun-07 7:17
dario_dee19-Jun-07 7:17 
QuestionTOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 5:03
VK-Cadec19-Jun-07 5:03 
QuestionRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 6:36
professionalandyharman19-Jun-07 6:36 
AnswerRe: TOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 6:53
VK-Cadec19-Jun-07 6:53 
QuestionRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 7:04
professionalandyharman19-Jun-07 7:04 
Can you post the code for the stored procedure to this forum?

There are no issues with doing a "top 1" on temporary tables - apart from the fact the SQL-Server may possibly use a different query-plan each time you run it. However, your "order by" clause should have fixed that.

Is it possible that your temporary table somehow contains different data for each of the runs? I have had this caused by an update or delete statement using different query plans for different runs.
AnswerRe: TOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 7:17
VK-Cadec19-Jun-07 7:17 
GeneralRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 7:30
professionalandyharman19-Jun-07 7:30 
AnswerRe: TOP 1 in select statement with different results. Pin
Mike Dimmick20-Jun-07 1:28
Mike Dimmick20-Jun-07 1:28 
Questionmysql update Pin
WhiteGirl2319-Jun-07 3:20
WhiteGirl2319-Jun-07 3:20 
AnswerRe: mysql update Pin
GoodID19-Jun-07 19:52
GoodID19-Jun-07 19:52 
GeneralRe: mysql update Pin
WhiteGirl2319-Jun-07 21:02
WhiteGirl2319-Jun-07 21:02 
QuestionDetermining Size of Records In SQL Server Table Pin
tjg5_9919-Jun-07 3:07
tjg5_9919-Jun-07 3:07 
AnswerRe: Determining Size of Records In SQL Server Table Pin
andyharman19-Jun-07 6:56
professionalandyharman19-Jun-07 6:56 
GeneralRe: Determining Size of Records In SQL Server Table Pin
tjg5_9919-Jun-07 8:05
tjg5_9919-Jun-07 8:05 
QuestionHelp with report creation Pin
Seryoga19-Jun-07 0:40
Seryoga19-Jun-07 0:40 
QuestionReturning Value from Stored Procedures Pin
M. J. Jaya Chitra18-Jun-07 23:22
M. J. Jaya Chitra18-Jun-07 23:22 
AnswerRe: Returning Value from Stored Procedures Pin
vimal_yet18-Jun-07 23:46
vimal_yet18-Jun-07 23:46 
AnswerRe: Returning Value from Stored Procedures Pin
Xandip19-Jun-07 19:19
Xandip19-Jun-07 19:19 
GeneralRe: Returning Value from Stored Procedures Pin
M. J. Jaya Chitra19-Jun-07 19:29
M. J. Jaya Chitra19-Jun-07 19:29 
QuestionHow to find nth record in a table using sqlserver. Pin
Sophia Rekhi18-Jun-07 21:31
Sophia Rekhi18-Jun-07 21:31 
AnswerRe: How to find nth record in a table using sqlserver. Pin
iprasad00718-Jun-07 22:12
iprasad00718-Jun-07 22:12 
GeneralRe: How to find nth record in a table using sqlserver. Pin
Sophia Rekhi18-Jun-07 23:39
Sophia Rekhi18-Jun-07 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.