Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collation problem prevents constraint
Message
From
17/02/2005 10:44:59
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Collation problem prevents constraint
Miscellaneous
Thread ID:
00987942
Message ID:
00987942
Views:
63
Scenario:
Drop MyTable1

Select Into MyTable1 From MyView1 

Drop MyTable2

Select Into MyTable2 From MyView2
Adding a relationship between 2 varchar fields fails because the field has different collation.

So, in both views, I
CAST(MyField AS varchar(11)) COLLATE database_default
much good that i does me. The first table always has the offending field as database default,while the second one always has SQL_Latin1_General_CP1_CI_AS.

What's the trick that I'm missing?

TIA
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Reply
Map
View

Click here to load this message in the networking platform