Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: SQL to list the headers in a table?

    Create function [dbo].[AF_TableColumns](@table_name nvarchar(55))

    returns nvarchar(4000) as

    begin

    declare @STR nvarchar(4000)

    select @STR = cast(rtrim(ltrim(column_name)) as nvarchar(500)) + coalesce('' + @STR , '')

    from information_schema.columns

    where table_name = @table_name

    group...

Viewing post 1 (of 1 total)