Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Perl DBI Insert row

by mpeppler (Vicar)
on Nov 26, 2003 at 17:35 UTC ( [id://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

Replies are listed 'Best First'.
Re: Re: Re: Perl DBI Insert row
by barrd (Canon) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://310327]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found