Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Display the SELECT statement for any table

    Mehernosh (8/13/2013)


    Fair point HextallFanForLife.

    You can try the following if you want the Schema name to be included too.

    DECLARE @mStrColumns VARCHAR(8000) , @mStrTable VARCHAR(100)

    SET @mStrTable ='TABLE_NAME'

    --

    SELECT @mStrColumns = COALESCE(@mStrColumns + ',...

Viewing post 1 (of 1 total)