Re: Collation problem
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 01/12/05
- Next message: dfate: "T-SQL Question"
- Previous message: David Portas: "RE: Select from a table passed as variable ?"
- In reply to: Rob Meade: "Collation problem"
- Next in thread: Rob Meade: "Re: Collation problem"
- Reply: Rob Meade: "Re: Collation problem"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 12:00:50 -0500
Rob,
Unfortunately changing the server collation isn't going to help you much at
this point -- as you noticed, your databases won't be updated. There is,
AFAIK, no good way to change the collation of an entire database, due to the
fact that every object maintains the database's collation -- rules,
defaults, columns, etc. The easiest way to change collation of a database,
IMO, is to script out the DDL via EM, re-create an "empty" version using the
script (be sure to change collation on all the objects to whatever you
want), and then DTS the data in from the old database.
As TEXT columns, rules, and defaults become deprecated, this will luckily be
much easier in the future, but until then we're kind of stuck...
-- Adam Machanic SQL Server MVP http://www.sqljunkies.com/weblog/amachanic -- "Rob Meade" <robert.meade@NOSPAMubht.swest.nhs.uk> wrote in message news:%23BSv0VL%23EHA.2180@TK2MSFTNGP10.phx.gbl... > Hi all, > > Ahh, the on going saga of moving databases... > > Ok - having installed SQL Server 2000 on the new server and copied across > approximately 10 database I've since learnt that we did NOT use the default > collation on the original server, instead we have case sensitive, accent > insensitive, we've looked into it a bit to decide whether we want to leave > it as it is - but this is not really what we want to do. > > So....I had a looky in the BOL, and it suggests the server collation can be > changed by rebuilding the master database, what this doesn't say (until you > start doing it) is that all user databases will be lost...this is a bit of a > problem... > > So - can anyone tell me the best approach - we need to change the collation > for the 'server' (not just one or two databases) to something else, and > ideally without having to recreate all of the databases again that we've > moved across. > > Some help/advice/info would be appreciated - kinda feeling the fool here at > the moment - only plus side is that the requirement wasn't documented - but > still it needs sorting.. > > Cheers > > Rob > >
- Next message: dfate: "T-SQL Question"
- Previous message: David Portas: "RE: Select from a table passed as variable ?"
- In reply to: Rob Meade: "Collation problem"
- Next in thread: Rob Meade: "Re: Collation problem"
- Reply: Rob Meade: "Re: Collation problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|