Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Perl DBI Insert row

by mpeppler (Vicar)
on Nov 26, 2003 at 17:35 UTC ( #310327=note: print w/ replies, xml ) Need Help??


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

It's an MS-SQL database - describe <tablename> won't work (though sp_help <tablename> will.)

Michael


Comment on Re: Re: Perl DBI Insert row
Select or Download Code
Re: Re: Re: Perl DBI Insert row
by barrd (Parson) on Nov 26, 2003 at 17:39 UTC
    Thanks mpeppler,
    As is probably self evident I've never used an MS SQL variant so I'll shut up now. And again thanks for the 'heads-up', I'll avoid MS SQL related questions until actually having used one in the future :-)
Re: Re: Re: Perl DBI Insert row
by Art_XIV (Hermit) on Nov 26, 2003 at 17:57 UTC

    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"
      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"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://310327]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-07-26 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls