Is it possible change the intercallation of a DB? I have Modern_Spanish and
I'd like to change it to SQL_Latin1_General_CP1_CI_AS
Regards,
Diego F.Diego
See ALTER DATABASE ......commnad in the BOL
"Diego F." <diegofrNO@.terra.es> wrote in message
news:eKt9HxzlFHA.3936@.TK2MSFTNGP10.phx.gbl...
> Is it possible change the intercallation of a DB? I have Modern_Spanish
> and I'd like to change it to SQL_Latin1_General_CP1_CI_AS
> --
> Regards,
> Diego F.
>
>|||Check this out:
http://msdn.microsoft.com/library/d...br />
819v.asp
ML|||Thank you.
ALTER DATABASE db_name COLLATE ...
Regards,
Diego F.
"Diego F." <diegofrNO@.terra.es> escribi en el mensaje
news:eKt9HxzlFHA.3936@.TK2MSFTNGP10.phx.gbl...
> Is it possible change the intercallation of a DB? I have Modern_Spanish
> and I'd like to change it to SQL_Latin1_General_CP1_CI_AS
> --
> Regards,
> Diego F.
>
>|||Hi,
1=2E Firstly, you will have to bring your database into single-user mode.
2=2E Secondly, you have to check if there are any database objects like
tables, constraints etc dependent on the original collation. If yes, a
simple technique would be to script them and then drop and re-create
using the new collation.
Thirdly, to change the collation for a specific database, you can use
this command
alter database <yourdbname> collate SQL_Latin1_General_CP1_CI_AS.
If you want to modify SQL Server collation i.e. for all DB's then you
have rebuild master database using
1=2EShutdown Microsoft=AE SQL Server=99 2000, and then run Rebuildm.exe.
This is located in the Program Files\Microsoft SQL Server\80\Tools\Binn
directory.
2=2EIn the Rebuild Master dialog box, click Browse.
3=2EIn the Browse for Folder dialog box, select the \Data folder on the
SQL Server 2000 compact disc or in the shared network directory from
which SQL Server 2000 was installed, and then click OK.
4=2EClick Settings. In the Collation Settings dialog box, verify or
change settings used for the master database and all other databases.
Initially, the default collation settings are shown, but these may not
match the collation selected during setup. You can select the same
settings used during setup or select new collation settings. When done,
click OK.
5=2EIn the Rebuild Master dialog box, click Rebuild to start the process.
The Rebuild Master utility reinstalls the master database.|||Notice that this approach will not modify the objects that already
exist in the DB. Only new tables will use the new collation. If you
want to modify the tables that already exist, then you'll need to
recreate them after you modified the database's collation. If you
already have data in the tables, you'll have to BCP the data to text
files and after recreating the tables BCP it back into the tables.
Adi
Showing posts with label modern_spanish. Show all posts
Showing posts with label modern_spanish. Show all posts
Tuesday, March 20, 2012
Thursday, March 8, 2012
change collation
Hello.
I need to change the COLLATE sequence on TEMPDB database, change it from de
Latin1_General to Modern_Spanish.
I don´t have here the SQLServer CD to make a Rebuildm because I´m on a trip
and the database I have is in Modern_Spanish and the server is
Latin1_General.
What can I do ?
I tried to make an ALTER DATABASE to the database in Modern_Spanish to
change it toLatin1_General but I couldn´t because there are too many
constraints with this collation.
Thanks in advance for any help.
I need to solve it in some way because I´ve a presentation tomorrow.
--
Ricardo Lopez Celani
Unisolutions SA
rlopezNO@.SPAMunisolutions.com.arTempdb is rebuilt at reboot so you could try changing the collation of the model database.
A word of caution - tempdb will then be a different collation from the other system databases and this could cause problems if they have SPs which create temp tables and expect them to be the same collation.
>--Original Message--
>Hello.
>I need to change the COLLATE sequence on TEMPDB database, change it from de
>Latin1_General to Modern_Spanish.
>I don=B4t have here the SQLServer CD to make a Rebuildm because I=B4m on a trip
>and the database I have is in Modern_Spanish and the server is
>Latin1_General.
>What can I do ?
>I tried to make an ALTER DATABASE to the database in Modern_Spanish to
>change it toLatin1_General but I couldn=B4t because there are too many
>constraints with this collation.
>Thanks in advance for any help.
>I need to solve it in some way because I=B4ve a presentation tomorrow.
>--
>Ricardo Lopez Celani
>Unisolutions SA
>rlopezNO@.SPAMunisolutions.com.ar
>
>.
>|||[posted and mailed]
Ricardo Lopez Celani (rlopez@.unisolutions.com.ar) writes:
> I need to change the COLLATE sequence on TEMPDB database, change it from
> de Latin1_General to Modern_Spanish. I don´t have here the SQLServer CD
> to make a Rebuildm because I´m on a trip and the database I have is in
> Modern_Spanish and the server is Latin1_General. What can I do ? I tried
> to make an ALTER DATABASE to the database in Modern_Spanish to change it
> toLatin1_General but I couldn´t because there are too many constraints
> with this collation. Thanks in advance for any help. I need to solve it
> in some way because I´ve a presentation tomorrow.
This question is answered in .tools. Please do not post the same question
to several groups in individual postings. If you feel compelled to
target several groups, please cross-post.
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
I need to change the COLLATE sequence on TEMPDB database, change it from de
Latin1_General to Modern_Spanish.
I don´t have here the SQLServer CD to make a Rebuildm because I´m on a trip
and the database I have is in Modern_Spanish and the server is
Latin1_General.
What can I do ?
I tried to make an ALTER DATABASE to the database in Modern_Spanish to
change it toLatin1_General but I couldn´t because there are too many
constraints with this collation.
Thanks in advance for any help.
I need to solve it in some way because I´ve a presentation tomorrow.
--
Ricardo Lopez Celani
Unisolutions SA
rlopezNO@.SPAMunisolutions.com.arTempdb is rebuilt at reboot so you could try changing the collation of the model database.
A word of caution - tempdb will then be a different collation from the other system databases and this could cause problems if they have SPs which create temp tables and expect them to be the same collation.
>--Original Message--
>Hello.
>I need to change the COLLATE sequence on TEMPDB database, change it from de
>Latin1_General to Modern_Spanish.
>I don=B4t have here the SQLServer CD to make a Rebuildm because I=B4m on a trip
>and the database I have is in Modern_Spanish and the server is
>Latin1_General.
>What can I do ?
>I tried to make an ALTER DATABASE to the database in Modern_Spanish to
>change it toLatin1_General but I couldn=B4t because there are too many
>constraints with this collation.
>Thanks in advance for any help.
>I need to solve it in some way because I=B4ve a presentation tomorrow.
>--
>Ricardo Lopez Celani
>Unisolutions SA
>rlopezNO@.SPAMunisolutions.com.ar
>
>.
>|||[posted and mailed]
Ricardo Lopez Celani (rlopez@.unisolutions.com.ar) writes:
> I need to change the COLLATE sequence on TEMPDB database, change it from
> de Latin1_General to Modern_Spanish. I don´t have here the SQLServer CD
> to make a Rebuildm because I´m on a trip and the database I have is in
> Modern_Spanish and the server is Latin1_General. What can I do ? I tried
> to make an ALTER DATABASE to the database in Modern_Spanish to change it
> toLatin1_General but I couldn´t because there are too many constraints
> with this collation. Thanks in advance for any help. I need to solve it
> in some way because I´ve a presentation tomorrow.
This question is answered in .tools. Please do not post the same question
to several groups in individual postings. If you feel compelled to
target several groups, please cross-post.
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
Subscribe to:
Posts (Atom)