Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    2

    Unanswered: Is there sp_helptext for tables

    Hello Everybody, Please help me out:

    Is there a system stored procedure for retrieving the sql statement that created a table.

    I know i can use sp_helptext for views etc; i want the equivalent for tables.

    sp_columns is not adequate either.

    please help! thanks in advance

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    sp_help will return all the columns of a table.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    May 2007
    Posts
    2
    Quote Originally Posted by blindman
    sp_help will return all the columns of a table.
    Hi Blindman,

    I ran exec sp_help tblcustomers and i got:

    Name: tblcustomers
    Owner: dbo
    Type: user table
    Created_datetime: 4/18/2007 2:26:12 PM

    Am i missing something??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •