Results 1 to 5 of 5

Thread: [RESOLVED] Stored Procedure

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    275

    Resolved [RESOLVED] Stored Procedure

    Hi

    I need to design a stored procedure which returns the names of the all field.
    Be it in T-SQL or PL-SQL.

    Thanks in Advance

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Stored Procedure

    The SQL will be very different in both of these databases
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    275

    Re: Stored Procedure

    Give me in T-Sql please,
    That will be very kind of you

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Stored Procedure

    Thread moved to Database Development forum - which is where SQL questions belong

    You will presumably want to extend this a bit, but here is a starting point:
    Code:
    SELECT * 
    FROM Information_Schema.Columns
    You could also use the existing system Stored Proc sp_columns, eg:
    Code:
    sp_columns 'table1'

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    275

    Re: [RESOLVED] Stored Procedure

    Thanks si
    Thanks a lot

Posting Permissions

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



Click Here to Expand Forum to Full Width