1

I am just wondering which will be faster t-sql function/procedure or clr version of one? A procedure works with database data and use cursors (t-sql version).

When should I use clr and when I should use t-sql to create procedures and functions?

0

1 Answer 1

5

Simple rule-of-thumb:

  • data manipulation (SELECT, UPDATE etc.) are best left to T-SQL (but without cursors!)

  • while anything that has to do with processing (string/regex matching, date arithmetic, calling external web services etc.) is a good match for SQL-CLR

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.