in reply to Re: Re: Perl DBI Insert row
in thread Perl DBI Insert row

I think sp_columns<tablename> is what you may have really meant.

Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl DBI Insert row
by mpeppler (Vicar) on Nov 26, 2003 at 18:09 UTC
    sp_columns works as well, but it gives you a lot more information for each column than is really necessary (the output runs to 20 columns on my system).

    sp_help is the generic "get me information for this database object" procedure, and will give additional information, such as indexes that exist on the table, and any triggers that are defined.

    It exists in all versions of MS-SQL and Sybase dating back to the Sybase 3.x releases in the mid-late 80s... :-)

    Michael

      Yep! You're right. I stand corrected. :)

      Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"