Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

view sql default for table
i'd like to grab all the defaults from a specific table but have no
idea how to do it!
i've been using sp_columns but its bringing back way to much info for
me

what i'd like is to bring back the column name and its corresponding
default...can this be done?

any help in the right direction would be much appreciated, cheers!


Report this thread to moderator Post Follow-up to this message
Old Post
drewmania001@gmail.com
01-30-06 08:23 AM


Re: view sql default for table
Use something like this:

SELECT COLUMN_NAME, COLUMN_DEFAULT
FROM INFORMATION_SCHEMA.COLUMNS
WHERE  TABLE_NAME='YourTabl
e'

Razvan


Report this thread to moderator Post Follow-up to this message
Old Post
Razvan Socol
01-30-06 08:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 05:06 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006