Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Stored procedure run Slow from C#

Author  Topic 

olibara
Yak Posting Veteran

94 Posts

Posted - 2010-06-23 : 06:34:45
Hello

Whe have a sored procedur that run fast when Invoked by SQL Management studio

But when we invoke it frm C# it is about 10 times slower !!
What can cause this ?

Thank for your help

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-06-23 : 06:51:23
For example it is possible that there is an index on your table.
The indexed column is of type varchar.
Maybe your C# is sending a parameter as Nvarchar so the index can't be used because convert.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

olibara
Yak Posting Veteran

94 Posts

Posted - 2010-06-24 : 07:28:19
Thank you webfred I'll investigate that
Go to Top of Page
   

- Advertisement -