November 21, 2018 at 10:46 am
Hi,
I have generated one database schema and data from one server (using Generate scripts option is SQL server management studio )
and loaded same in NEW server. Loaded server collation is different.
How to change database collation of NEW server
Tried below script for change collation, but not success due to error (below)
ALTER DATABASE BlueWhale
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
ALTER DATABASE BlueWhale COLLATE SQL_Latin1_General_CP1_CI_AS
Msg 5075, Level 16, State 1, Line 154
The object 'CHK_XML_DATA_REPOPULATE_REPOPULATE' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154
The object 'UDF_DocReqMatrixCheckingForGeneral' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154
The object 'CHK_PAYSCALE_MF_ACTIVE' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154
Please advise best method to change collation
Regards
Binu
November 21, 2018 at 11:23 am
Martin Bell wrote a good article and associated script for this:
I've used it several times successfully. One note: it does not work with replicated databases.
November 21, 2018 at 5:31 pm
This was removed by the editor as SPAM
November 23, 2018 at 5:43 am
November 27, 2018 at 12:07 pm
binutb - Wednesday, November 21, 2018 10:46 AMHi,I have generated one database schema and data from one server (using Generate scripts option is SQL server management studio )
and loaded same in NEW server. Loaded server collation is different.
How to change database collation of NEW serverTried below script for change collation, but not success due to error (below)
ALTER DATABASE BlueWhale
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
ALTER DATABASE BlueWhale COLLATE SQL_Latin1_General_CP1_CI_ASMsg 5075, Level 16, State 1, Line 154
The object 'CHK_XML_DATA_REPOPULATE_REPOPULATE' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154
The object 'UDF_DocReqMatrixCheckingForGeneral' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154
The object 'CHK_PAYSCALE_MF_ACTIVE' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Msg 5075, Level 16, State 1, Line 154Please advise best method to change collation
Regards
Binu
Are the database object collations different than the database collation? , I think you may have to change the object collation first (based on error) and keep it to default and then try changing the database collation - just a suggestion.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply