Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Comparing Table Structures

How can I compare the table structures of TestServer.tblX with ProductionServer.tblX?
Is there any SQL trick or System Stored Procedure I can use?
I'd also like to compare all their indexes, keys, constraints, etc.
Thanks for your help!
[268 byte] By [Mark] at [2007-11-9 21:10:35]
# 1 Re: Comparing Table Structures
there are several products that do this for SQL server - see
http://www.mssqlserver.com/products/ but SQL Compare
(http://www.mssqlserver.com/products/sqlcompare101_p1.asp) is exactly what
you are looking for.

--
HTH,
David Satz
Principal Web Engineer
Hyperion Solutions

"Mark" <mark_yachnin@alarmnet.com> wrote in message
news:3daee06c$1@tnews.web.dev-archive.com...
>
> How can I compare the table structures of TestServer.tblX with
ProductionServer.tblX?
>
> Is there any SQL trick or System Stored Procedure I can use?
>
> I'd also like to compare all their indexes, keys, constraints, etc.
>
> Thanks for your help!
David Satz at 2007-11-11 23:52:36 >
# 2 Re: Comparing Table Structures
Or, he could just use DMO if he doesn't want that investment.

James Hokes

"David Satz" <davidNOSPAMsatz@yahoo.NOSPAM.com> wrote in message
news:3db00edb$1@tnews.web.dev-archive.com...
> there are several products that do this for SQL server - see
> http://www.mssqlserver.com/products/ but SQL Compare
> (http://www.mssqlserver.com/products/sqlcompare101_p1.asp) is exactly what
> you are looking for.
>
>
> --
> HTH,
> David Satz
> Principal Web Engineer
> Hyperion Solutions
>
> "Mark" <mark_yachnin@alarmnet.com> wrote in message
> news:3daee06c$1@tnews.web.dev-archive.com...
> >
> > How can I compare the table structures of TestServer.tblX with
> ProductionServer.tblX?
> >
> > Is there any SQL trick or System Stored Procedure I can use?
> >
> > I'd also like to compare all their indexes, keys, constraints, etc.
> >
> > Thanks for your help!
>
>
James Hokes at 2007-11-11 23:53:37 >
# 3 Re: Comparing Table Structures
I experienced this problem on a record stu=ryucture that was damaged, I need
to check the differces that made for the alterations.
One suggestion is to print the table and make comparisons.
Please send me yo0ur solutions also."Mark" <mark_yachnin@alarmnet.com> wrote:
>
>How can I compare the table structures of TestServer.tblX with ProductionServer.tblX?
>
>Is there any SQL trick or System Stored Procedure I can use?
>
>I'd also like to compare all their indexes, keys, constraints, etc.
>
>Thanks for your help!
George Esoimeme at 2007-11-11 23:54:40 >