Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collation problem prevents constraint
Message
De
17/02/2005 10:44:59
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Collation problem prevents constraint
Divers
Thread ID:
00987942
Message ID:
00987942
Vues:
68
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)
Répondre
Fil
Voir

Click here to load this message in the networking platform