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

  • Well, your procedure (as you posted it) doesn't have any input parameters, hence trying to pass one is going to give an error.

    You don't need a variable called @ColumnName, you need to change the procedure so that it accepts an input parameter, of type varchar, called @ColumnName

    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