rabbiwan


Hello,

I would like change in my data base the collate format of my fields in my tables.

Currently there is a SQL_Latin1_General_CP1_CI_AS collate and I would like change to SQL_Latin1_General_CP1_CS_AS.

There is a procedure to transform my fields without delete my data base

Regards.




Re: Transform collate fields

Jens K. Suessmeyer


Do you just want to change some columns, or do you want to change the collation of the entire database


HTH, Jens K. Suessmeyer.

---
http://www.sqlserver2005.de
---





Re: Transform collate fields

rabbiwan

My database is in SQL_Latin1_General_CP1_CS_AS collate

But when the tables are created with a SQL's script, the fields had SQL_Latin1_General_CP1_CI_AS collate and I would like transform that to be correct with the database

thank






Re: Transform collate fields

Jens K. Suessmeyer

Hi,

if you want to sync them to the database default, use the following command:

ALTER TABLE SomeTable

ALTER COLUMN Test CHAR(10) COLLATE DATABASE_DEFAULT

HTH, Jens K. Suessmeyer.

---
http://www.sqlserver2005.de
---





Re: Transform collate fields

rabbiwan

Thank you very much for your help
 
There isn't side effect on the data when you use this transformation




Re: Transform collate fields

rabbiwan

Is there someone to give me an answer



Re: Transform collate fields

Jasmin Azemovic

rabbiwan wrote:
Thank you very much for your help
There isn't side effect on the data when you use this transformation

There si always possibilitty to lose data when changing tables atributs (data types, colloations ..) Best is to have copy of table-s and make transformation and isolated enviroment. After that you will know is there any data loss.