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

Wrong default constraint shown from Object Browser in Query Analyser
I have several default constraints defined on a table.  When I use the
Object Browser and expand the constraints for this table and
right-click and then select "Script Object to New Window As Create", a
create constraint statement for a different default constraint is
displayed than the one I just right-clicked on.  For example, I click
on constraint "DF_C" and it shows me "DF_B".

The last time I encountered this, the solution was to dump contents of
the table into another, drop, recreate it, and restore the contents.

That's not a good option this time.

Is there another way to fised this or at least navigate the catalog to
find out what is "off"  about this?

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
jbtaylor16@fuse.net
10-27-05 02:24 PM


Re: Wrong default constraint shown from Object Browser in Query Analyser
(jbtaylor16@fuse.net)  writes:
> I have several default constraints defined on a table.  When I use the
> Object Browser and expand the constraints for this table and
> right-click and then select "Script Object to New Window As Create", a
> create constraint statement for a different default constraint is
> displayed than the one I just right-clicked on.  For example, I click
> on constraint "DF_C" and it shows me "DF_B".
>
> The last time I encountered this, the solution was to dump contents of
> the table into another, drop, recreate it, and restore the contents.
>
> That's not a good option this time.
>
> Is there another way to fised this or at least navigate the catalog to
> find out what is "off"  about this?

Try dropping all the constraints, and then recreate them. It's a little
difficult to say what is going on, as I cannot repro the situation.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp


Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
10-27-05 02:24 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum 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 12:36 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006