Re: Check if a table has a specific column
From: Andrew J. Kelly (sqlmvpnooospam_at_shadhawk.com)
Date: 10/10/04
- Next message: David Portas: "Re: Check if a table has a specific column"
- Previous message: Joe Celko: "Re: An Uncooperative Self UPDATE"
- In reply to: Agoston Bejo: "Check if a table has a specific column"
- Next in thread: David Portas: "Re: Check if a table has a specific column"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 10 Oct 2004 15:05:53 -0400
Taka a look at the Information schema views in BooksOnLine.
-- Andrew J. Kelly SQL MVP "Agoston Bejo" <gusz1@freemail.hu> wrote in message news:eVL1vavrEHA.376@TK2MSFTNGP14.phx.gbl... > What I'm trying to do is check if a table has a column called 'X' and if > it > hasn't then add it to the table. > How can I check (from a stored procedure) whether a column is in the > table? > >
- Next message: David Portas: "Re: Check if a table has a specific column"
- Previous message: Joe Celko: "Re: An Uncooperative Self UPDATE"
- In reply to: Agoston Bejo: "Check if a table has a specific column"
- Next in thread: David Portas: "Re: Check if a table has a specific column"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|