Home Forums SQL Server 2005 T-SQL (SS2K5) stored procedure---finding all tables that contain a specific column RE: stored procedure---finding all tables that contain a specific column

  • You're passing the value invoiceid to the procedure, but you're doing nothing with it within the procedure.

    If you want to use the parameter to filter the query, it needs to be referenced within the query somehow. Perhaps in place of the hardcoded 'order'?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass