Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2008, 04:51 PM
Adam D Adam D is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Default

What do foreign keys do to performance in MS SQL Server 2005?


I am trying to figure out what performance impact having a foreign key relationship between two tables on integer fields has to stored procedures?

Any help would be appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-06-2008, 04:51 PM
shellanswerman shellanswerman is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Default

Foreign keys ding your performance during inserts, or any updates to the column containing the key. The query engine has to make sure the key exists in the other table, times each row being updated or inserted.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Your Ad Here

All times are GMT. The time now is 03:20 PM.