You are here: Re: sp_fkeys stored procedue is very slow « MsSQL Server « IT news, forums, messages
Re: sp_fkeys stored procedue is very slow

Posted by keyvez on 06/01/06 17:33

I was having the same problem for months, so I decided to modify the
sys.sp_fkeys stored procedure and I found the problem, if you want a
fix, here's my modification

http://www2.keyvez.com:82/?q=node/12

keyvez@gmail.com wrote:
> I am trying to find the tables and columns that depends on 'table1'
>
> sp_fkeys @pktable_name='table1'
>
> and this takes about eight seconds, whereas if I run it for finding all
> tables and columns that 'table1' depends on
>
> sp_fkeys @fktable_name='table1'
>
> this only takes a second.
>
> How can I speed up the first stored procedure execution?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация