• I don’t think that writing SQL Code should be protected by copyright laws. There is a very big difference between writing a novel or creating a movie and writing T-SQL. It would be ridiculous if one day we’ll find out that we can’t use sys.dm_db_index_physical_stats to check fragmentation because someone wrote a script that used it and decided to copyright it. On the other hand writing my own story about Harry Potter is defiantly a violation of copyright laws. If I decide to write a story there are endless subjects to write about. If I decide on a subject there are endless ways to write about it, but when I write T-SQL script there are limited numbers of logical ways to do it.

    Adi

    --------------------------------------------------------------
    To know how to ask questions and increase the chances of getting asnwers:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/