shanghai2004
Programmer
Hi Expert,
My SQL server default collation is Latin1_General_CS_AS. Now I need to change a database collation to Lantin1_General_CS_AS.
I execute the following SQL statements:
ALTER DATABASE TESTDB collate Latin1_General_CI_AS
I got error message:
Server: Msg 5030, level 16, state 2, Line 1
The database could not be exclusively locked to perform the opration.
Server: Msg 5072, level 16, state 1, Line 1
Alter Database failed. The default collation of database 'TESTDB' cannot be set to Latin1_General_CI_AS
I am the only person using this server and accessing the database 'TESTDB' at that time. Why did I get the error message? Do I need to start SQL server in a single user mode? Help please.
Thanks
My SQL server default collation is Latin1_General_CS_AS. Now I need to change a database collation to Lantin1_General_CS_AS.
I execute the following SQL statements:
ALTER DATABASE TESTDB collate Latin1_General_CI_AS
I got error message:
Server: Msg 5030, level 16, state 2, Line 1
The database could not be exclusively locked to perform the opration.
Server: Msg 5072, level 16, state 1, Line 1
Alter Database failed. The default collation of database 'TESTDB' cannot be set to Latin1_General_CI_AS
I am the only person using this server and accessing the database 'TESTDB' at that time. Why did I get the error message? Do I need to start SQL server in a single user mode? Help please.
Thanks