Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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.)


Replies are listed 'Best First'.
Re: Re: Re: Perl DBI Insert row
by barrd (Monsignor) 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... :-)


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

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://310327]
[choroba]: Corion Sounds reasonable
[Corion]: choroba: Yeah - I basically have the same for regenerating README and README.mkdown already, except that I do that in Makefile.PL, but I guess one or the other thing should somehow work ;)
[ambrus]: was this bug: https://rt.cpan. org/Public/Bug/ Display.html?id= 59814
[Corion]: ambrus: Oh - that one would be much harder to automate... The SYNOPSIS section should mostly be a runnable program IMO, but I write only small snippets in my documentation for single functions/methods, and creating the appropriate environment for ...
[Corion]: ... those in an automated fashion seems somewhat hard to me. Although it should do wonders for the test coverage ;)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-02-27 12:16 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (384 votes). Check out past polls.