SQL SERVER – UDF vs. Stored Procedures and Having vs. WHERE

Read my First Article in SQL Server Magazine – Oct 2007 [Articles are relocated so links are disabled]

Reference : Pinal Dave (http://blog.SQLAuthority.com)

6 thoughts on “SQL SERVER – UDF vs. Stored Procedures and Having vs. WHERE

  1. Congradulations Dave,

    Getting pulished in SQL Server Magazine is quite an accomplishment. With all the work you do for the community, you deffinately deserve it!

    – Shawn


  2. Dave,

    I will tell you what people will like most : articles about SQL Profiler. Think why? There is always long articles. Write simple and write to the point. DBA will love you.

    S G


  3. Pinal,

    Could you address the differences between UDFs and SPs with regard to DML statements like INSERT, DELETE, UPDATE, etc?

    It appears that UDFs cannot perform these operations, while SPs can.

    Is that true?



  4. Hi Pinal…
    your articles are very useful…I am an sql server database beginner.
    I read that “we can change environment variables using sp’s ,but can’t with udf’s ” from one of your article -stored procedure vs udf.
    My doubt is:
    How to set environment variables using stored procedures.i did not know how to get those env var values ti t-sql.So,please give me an example to do this.It may be useful for beginners like me..



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s