Click here to Skip to main content
16,004,836 members
Home / Discussions / Database
   

Database

 
GeneralSaving file in SQL Server Pin
dabuskol25-Mar-05 19:48
dabuskol25-Mar-05 19:48 
GeneralRe: Saving file in SQL Server Pin
turbochimp25-Mar-05 20:12
turbochimp25-Mar-05 20:12 
GeneralSELECT TOP Pin
vuthaianh25-Mar-05 12:10
vuthaianh25-Mar-05 12:10 
GeneralRe: SELECT TOP Pin
turbochimp25-Mar-05 17:49
turbochimp25-Mar-05 17:49 
GeneralSimplify a T-SQL Pin
WDI25-Mar-05 7:41
WDI25-Mar-05 7:41 
GeneralRe: Simplify a T-SQL Pin
Michael Potter25-Mar-05 8:24
Michael Potter25-Mar-05 8:24 
GeneralRe: Simplify a T-SQL Pin
WDI25-Mar-05 9:10
WDI25-Mar-05 9:10 
GeneralRe: Simplify a T-SQL Pin
Michael Potter25-Mar-05 11:34
Michael Potter25-Mar-05 11:34 
The error might be in the engine - I use MS SQL 2000 - or it may be that there is typo since I didn't create any test tables.

Only examining the execution plan between the two queries and testing will tell you which one is faster. Indexes also help.

My experience is that IN (or NOT IN) statments tend to generate more table scans whereas JOIN makes use of indexes better. Given your set of criteria, an index on [TypeID, ID] could generate a faster query.
GeneralRe: Simplify a T-SQL Pin
Tony Lewis25-Mar-05 9:41
Tony Lewis25-Mar-05 9:41 
GeneralRe: Simplify a T-SQL Pin
andyharman28-Mar-05 4:32
professionalandyharman28-Mar-05 4:32 
GeneralDateTime Pin
vuthaianh25-Mar-05 5:24
vuthaianh25-Mar-05 5:24 
GeneralRe: DateTime Pin
Colin Angus Mackay25-Mar-05 6:29
Colin Angus Mackay25-Mar-05 6:29 
QuestionSQL problem ? Pin
Guinness4Strength25-Mar-05 4:28
Guinness4Strength25-Mar-05 4:28 
QuestionMultiple insert in single roundtrip with Sqlcommand, Possible??? Pin
abcxyz8225-Mar-05 4:11
abcxyz8225-Mar-05 4:11 
AnswerRe: Multiple insert in single roundtrip with Sqlcommand, Possible??? Pin
ToddHileHoffer25-Mar-05 4:35
ToddHileHoffer25-Mar-05 4:35 
GeneralRe: Multiple insert in single roundtrip with Sqlcommand, Possible??? Pin
Colin Angus Mackay25-Mar-05 6:32
Colin Angus Mackay25-Mar-05 6:32 
AnswerRe: Multiple insert in single roundtrip with Sqlcommand, Possible??? Pin
_J_25-Mar-05 7:19
_J_25-Mar-05 7:19 
AnswerRe: Multiple insert in single roundtrip with Sqlcommand, Possible??? Pin
_J_25-Mar-05 11:19
_J_25-Mar-05 11:19 
QuestionHow to ROLLBACK TRANSACTION on client level Pin
_J_25-Mar-05 3:32
_J_25-Mar-05 3:32 
AnswerRe: How to ROLLBACK TRANSACTION on client level Pin
Luis Alonso Ramos25-Mar-05 12:21
Luis Alonso Ramos25-Mar-05 12:21 
AnswerRe: How to ROLLBACK TRANSACTION on client level Pin
turbochimp25-Mar-05 18:02
turbochimp25-Mar-05 18:02 
GeneralRe: How to ROLLBACK TRANSACTION on client level Pin
_J_25-Mar-05 23:56
_J_25-Mar-05 23:56 
Generalreturning table from a stored procedure Pin
balkang25-Mar-05 2:52
balkang25-Mar-05 2:52 
GeneralRe: returning table from a stored procedure Pin
_J_25-Mar-05 3:00
_J_25-Mar-05 3:00 
GeneralRe: returning table from a stored procedure Pin
balkang25-Mar-05 23:25
balkang25-Mar-05 23:25 

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.