Re: [PHP] MSSqlServer table/field information

2005-04-23 Thread D. Wokan
Chris Boget wrote: Is there a way to programatically get information about a specific table and/or field? And also any constraints that a field has? thnx, Chris sp_help @objname='{tablename}' This will actually return several recordsets which are probably available individually in the other

Re: [PHP] MSSqlServer table/field information

2005-04-23 Thread tg-php
http://www.sqlzoo.net/howto/source/z.dir/i12meta.xml Check out the META DATA section of this page (link above). I used it to create a database 'walker' app that lets you search for table names, column names, etc. I was working on a HUGE database that wasn't documented well and nobody could gi

RE: [PHP] MSSqlServer table/field information

2005-04-23 Thread Mark Rees
Look into the INFORMATION SCHEMA views in SQL Books Online for a starting point. Mark -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 15:51 To: PHP General Subject: [PHP] MSSqlServer table/field information Is there a way to programatically get

[PHP] MSSqlServer table/field information

2005-04-23 Thread Chris Boget
Is there a way to programatically get information about a specific table and/or field? And also any constraints that a field has? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSqlServer table/field information (Solved, kinda)

2005-04-22 Thread Chris Boget
> Look into the INFORMATION SCHEMA views in SQL Books Online for a > starting point. Excellent tip! Thanks. With the help provided by everyone who replied, I came up with the following: Query to get the primary key(s) for a table sp_pkeys @table_name='' Query to get the column names for a t