Home Forums SQL Server 7,2000 T-SQL Help with passing a table name to a query in a SP. RE: Help with passing a table name to a query in a SP.

  • This here will be interesting to you, I guess.

    http://www.sommarskog.se/dynamic_sql.html#Common_cases

    Parameterizing to get generic code is a good approach for everything that is handled at the client, it is the wrong approach when dealing with databases.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]