asi
asked on
change Collation
Hello
how can i change the collation name of a specific database ?
The rebuildm.exe is changin the Master database while i want to change only a specific database .
is there a way to change it with sql statements like alter ?
What is the common collation name ? (I develop an application with DB with collation of hebrew / arabic ... now i wish to change the collation to english ) how can i do it ?
Thank you
Asi
how can i change the collation name of a specific database ?
The rebuildm.exe is changin the Master database while i want to change only a specific database .
is there a way to change it with sql statements like alter ?
What is the common collation name ? (I develop an application with DB with collation of hebrew / arabic ... now i wish to change the collation to english ) how can i do it ?
Thank you
Asi
ASKER
BCP ?
It's a command-line utility to import and export data to text files. Look it up in Books Online.
ASKER
can u be more specific regarding the parametrs of BCP (in need specific sample)
To output a table:
bcp pubs..authors2 out authors.txt -w -Sservername -Usa -Ppassword
bcp pubs..authors2 out authors.txt -w -Sservername -Usa -Ppassword
ASKER
and how :
1) " recreate it using the edit script" - what is edit script
2) "reload the data using BCP" - how ? sample ?
Thank you
Asi
1) " recreate it using the edit script" - what is edit script
2) "reload the data using BCP" - how ? sample ?
Thank you
Asi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ALTER DATABASE YourDatabaseName
COLLATE CollationName
But this will only affect tables and columns created subsequently, it won't change existing data. To do that, the easiest way is to generate the database creation script in Enterprise Manager, then find and replace all references to your existing collation with the new collation name.
First, dump all the tables using BCP.
Second, drop the database (back it up first!)
Third, recreate it using the edit script.
Fourth, reload the data using BCP.