Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create unique index between two databases

Status
Not open for further replies.

Kudel

Programmer
Joined
Dec 3, 2002
Messages
36
Location
NO
Hi all!

I have two databases that is almost like.
I have a customer field in both databases.
Each customer has a web_user_name that is unique.

I need a unique index that checks both databases.

Create unique index WUN on db1..TestA(web_user_name) and db2..TestA(web_user_name)

Any tips, tricks or hint is appreciated

-Kudel


 
You cannot create a constraint or index on two databases. You'll have to handle the uniqueness check in code. A TRIGGER may be helpful.

If you want to get the best answer for your question read faq183-874 and faq183-3179.
Terry L. Broadbent - DBA
SQL Server Page:
 
Not surprised, but thanks!

-Kudel:(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top