Tibor
Thu Dec 04 03:18:19 CST 2003
IF you want to look at a diagram of the views, check out:
http://www.dbmaint.com/info_schema.asp
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Chris Coho, Jr." <ccoho@jrwald.com> wrote in message news:eFq02rcuDHA.2072@TK2MSFTNGP10.phx.gbl...
> excellent, thanks guys, that helps a ton
>
> I may look through thos information_schema tables to see what other goodies
> they can show me!
>
> "Ray Higdon" <rayhigdon@higdonconsulting.com> wrote in message
> news:edBgSlcuDHA.2464@TK2MSFTNGP12.phx.gbl...
> > You can do
> >
> >
> > select column_name,column_default
> > from information_schema.columns
> > where table_name = 'tablename'
> >
> > HTH
> >
> > --
> > Ray Higdon MCSE, MCDBA, CCNA
> > --
> > "Chris Coho, Jr." <ccoho@jrwald.com> wrote in message
> > news:OXP4FdcuDHA.2060@TK2MSFTNGP10.phx.gbl...
> > > Hi, i'm working on an asp project that will work similar to enterprise
> > > manager for remotely managing some aspects of a sql database. What i'm
> > > stuck on is how (in vbscript or with SQL commands) can i find out what
> the
> > > default value (if any) is for a given column of a given table? I know
> > there
> > > are some stored procedures and sql command i'm using to find whether
> > columns
> > > are primary keys, identities, nullable, what there size is, etc, but i
> > can't
> > > figure out how to find a columns default value.
> > >
> > > thanks in advance
> > >
> > >
> >
> >
>
>