Click here to Skip to main content
16,006,707 members
Home / Discussions / Database
   

Database

 
JokeRe: Newbie SQL question Pin
Mycroft Holmes23-Oct-08 19:50
professionalMycroft Holmes23-Oct-08 19:50 
GeneralRe: Newbie SQL question Pin
David Crow24-Oct-08 2:38
David Crow24-Oct-08 2:38 
GeneralRe: Newbie SQL question Pin
Mycroft Holmes24-Oct-08 5:29
professionalMycroft Holmes24-Oct-08 5:29 
QuestionLinked Server performance Pin
Bassam Saoud23-Oct-08 6:53
Bassam Saoud23-Oct-08 6:53 
AnswerRe: Linked Server performance Pin
Wendelius23-Oct-08 8:24
mentorWendelius23-Oct-08 8:24 
GeneralRe: Linked Server performance Pin
Bassam Saoud23-Oct-08 8:29
Bassam Saoud23-Oct-08 8:29 
GeneralRe: Linked Server performance Pin
Wendelius23-Oct-08 8:51
mentorWendelius23-Oct-08 8:51 
GeneralRe: Linked Server performance Pin
Bassam Saoud23-Oct-08 8:52
Bassam Saoud23-Oct-08 8:52 
GeneralRe: Linked Server performance Pin
Wendelius23-Oct-08 8:56
mentorWendelius23-Oct-08 8:56 
GeneralRe: Linked Server performance Pin
PIEBALDconsult29-Oct-08 5:52
mvePIEBALDconsult29-Oct-08 5:52 
QuestionSQLServer and Lotus Notes Pin
Tim Carmichael23-Oct-08 6:28
Tim Carmichael23-Oct-08 6:28 
AnswerRe: SQLServer and Lotus Notes Pin
Mycroft Holmes23-Oct-08 11:59
professionalMycroft Holmes23-Oct-08 11:59 
QuestionSSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 5:56
professionalSIJUTHOMASP23-Oct-08 5:56 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius23-Oct-08 8:28
mentorWendelius23-Oct-08 8:28 
QuestionRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 8:50
professionalSIJUTHOMASP23-Oct-08 8:50 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius23-Oct-08 8:59
mentorWendelius23-Oct-08 8:59 
QuestionRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 10:29
professionalSIJUTHOMASP23-Oct-08 10:29 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP24-Oct-08 7:01
professionalSIJUTHOMASP24-Oct-08 7:01 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius24-Oct-08 7:32
mentorWendelius24-Oct-08 7:32 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP24-Oct-08 7:57
professionalSIJUTHOMASP24-Oct-08 7:57 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius24-Oct-08 8:01
mentorWendelius24-Oct-08 8:01 
QuestionIndex vs Param Pin
E_Gold23-Oct-08 5:55
E_Gold23-Oct-08 5:55 
AnswerRe: Index vs Param Pin
David Mujica23-Oct-08 6:31
David Mujica23-Oct-08 6:31 
Indexes provide a method of retrieving data very quickly, however you must ask yourself some questions:

1) How many rows will be returned in a typical query ? (10s,100s,1000s) If the query returns many rows it may actually be faster to perform a full-table scan rather than reading through the index. In fact the query optimizer may actually perform a full table scan instead of an index scan, even though the index is present.

2) What is the nature of the data; does it contain many unique values ? For example consider a field called, status (Active / Inactive). This may not be a good choice for an index because it doesn't have very many unique values and retrieving these values would end up causing sequential reads through the index.

3) When designing the index, ideally you would have the index contain items in the select or where clause. For example "select a,b,c from mytable where z = myValue". A good index would contain both Z and A, this way when searching through the index it finds the data that you are looking for (z) and it also has the data that you want, (a). There is no need for the optimizer to go to the main table and retrieve data, everything is available in the index. FAST !

4) The order of the values in the index make a big difference also, but I can't remember a good example.

Lots of things to think about. Post more details about the nature of your query and maybe I can be of more assistance. david
GeneralRe: Index vs Param Pin
E_Gold23-Oct-08 10:03
E_Gold23-Oct-08 10:03 
GeneralBarcode sounds like primary key Pin
David Mujica23-Oct-08 11:07
David Mujica23-Oct-08 11:07 

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.