Click here to Skip to main content
15,885,366 members
Home / Discussions / Database
   

Database

 
AnswerRe: Concatenating Columns in query Pin
pmpdesign11-Oct-07 18:18
pmpdesign11-Oct-07 18:18 
QuestionPreventing access to SQL Server from other Servers Pin
ben_6349-Oct-07 14:21
ben_6349-Oct-07 14:21 
AnswerRe: Preventing access to SQL Server from other Servers Pin
Christian Graus9-Oct-07 14:35
protectorChristian Graus9-Oct-07 14:35 
GeneralRe: Preventing access to SQL Server from other Servers Pin
ben_6349-Oct-07 15:41
ben_6349-Oct-07 15:41 
QuestionPerformance gain in SELECT ... Pin
devboycpp9-Oct-07 11:25
devboycpp9-Oct-07 11:25 
AnswerRe: Performance gain in SELECT ... Pin
Colin Angus Mackay9-Oct-07 12:30
Colin Angus Mackay9-Oct-07 12:30 
GeneralRe: Performance gain in SELECT ... Pin
devboycpp10-Oct-07 10:34
devboycpp10-Oct-07 10:34 
GeneralRe: Performance gain in SELECT ... Pin
Colin Angus Mackay10-Oct-07 11:18
Colin Angus Mackay10-Oct-07 11:18 
devboycpp wrote:
If we define an index on the foreign key field , will be any performance gain ?


In this case, I doubt it. The WHERE clause already contains a reference to a column that is guaranteed to be unique (i.e. the Primary Key) and is most likely to be indexed (unless it was removed) so will go directly to that row. Foreign keys are not normally unique.

Also, adding an index can make performance worse for INSERT, UPDATE and DELETE operations.


Upcoming FREE developer events:
* Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

QuestionSQL2000 TempTable Pin
ss.mmm9-Oct-07 7:08
ss.mmm9-Oct-07 7:08 
AnswerRe: SQL2000 TempTable Pin
pmarfleet9-Oct-07 8:26
pmarfleet9-Oct-07 8:26 
QuestionI have a database is suspect Pin
Phan Van Thao9-Oct-07 5:50
Phan Van Thao9-Oct-07 5:50 
AnswerRe: I have a database is suspect Pin
Christian Graus9-Oct-07 14:37
protectorChristian Graus9-Oct-07 14:37 
QuestionHow to remove or rewrite author and log file information in summary of ssis package installation wizard? Pin
wang.z.y9-Oct-07 4:21
wang.z.y9-Oct-07 4:21 
QuestionGeneric Insert & update procedure Pin
praveenanand9-Oct-07 2:01
praveenanand9-Oct-07 2:01 
AnswerRe: Generic Insert & update procedure Pin
Colin Angus Mackay9-Oct-07 2:18
Colin Angus Mackay9-Oct-07 2:18 
GeneralRe: Generic Insert & update procedure Pin
praveenanand10-Oct-07 23:05
praveenanand10-Oct-07 23:05 
Question@@ parameter Pin
Sonia Gupta9-Oct-07 0:34
Sonia Gupta9-Oct-07 0:34 
AnswerRe: @@ parameter Pin
Pete O'Hanlon9-Oct-07 1:13
mvePete O'Hanlon9-Oct-07 1:13 
AnswerRe: @@ parameter Pin
M LN Rao9-Oct-07 20:56
M LN Rao9-Oct-07 20:56 
AnswerRe: @@ parameter Pin
joemonvarghese9-Oct-07 22:49
joemonvarghese9-Oct-07 22:49 
Questionfor loop in stored procedure Pin
Sonia Gupta8-Oct-07 23:35
Sonia Gupta8-Oct-07 23:35 
AnswerRe: for loop in stored procedure Pin
Colin Angus Mackay9-Oct-07 0:09
Colin Angus Mackay9-Oct-07 0:09 
GeneralRe: for loop in stored procedure Pin
Sonia Gupta9-Oct-07 0:32
Sonia Gupta9-Oct-07 0:32 
GeneralRe: for loop in stored procedure Pin
Sonia Gupta9-Oct-07 0:51
Sonia Gupta9-Oct-07 0:51 
GeneralRe: for loop in stored procedure Pin
Krish - KP9-Oct-07 0:58
Krish - KP9-Oct-07 0:58 

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.