powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Could not attach the database because
7 сообщений из 7, страница 1 из 1
Could not attach the database because
    #32055727
Jcomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну вот доигрался.
Отатачил на одном серваке базу .. захотел на другом приатачить вот код:
Код: plaintext
1.
2.
3.
4.
USE Master
Go
EXEC sp_attach_db @dbname='AutoB',
@filename1='c:\mssql7\data\Autob_Data.mdf',
@filename2='c:\mssql7\data\Autob_Log.ldf'

Вот результат:
Код: plaintext
1.
2.
3.
4.
5.
6.
Server: Msg  1816 , Level  16 , State  1 , Line  1 
Could not attach the database because the character set, sort order, or Unicode collation for the database differs from this server.
Server: Msg  1816 , Level  16 , State  1 , Line  1 
Could not attach the database because the character set, sort order, or Unicode collation for the database differs from this server.
Warning: sort order  52  in database differs from server sort order of  106 .
Warning: sort order  52  in database differs from server sort order of  106 .


Что прикажете делать ???
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055732
Jcomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Может вся фишка в том что на одном серваке стоит сервис пак 4, а на другом нет ??
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055733
Фотография KANDed
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055734
Jcomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну почитать то я почитал .. но понять ниче не могу ...
Можно как то в одном месте и подробнее ?
Я отатачил базу. И пытаюсь еек приатачить дистрибутив сервака один. В чем суть .. и что за rebuildm.exe .. зачем он.. Как узнать именно в чем разница ? (haracter set, sort order, or Unicode collation). Помогите пропадаю.
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055737
Jcomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Я так понимаю что проблема в сорт ордер
Код: plaintext
1.
2.
Warning: sort order  52  in database differs from server sort order of  106 .



Где я погу посмотреть (поменять) сорт ордер ? Мне заново сервак переставить не трудно стаким как надо сорт ордер но где посмотреть какой он на старом серваке ??
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055752
Фотография KANDed
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
BOL:

When selecting a SQL collation in the Collations Settings screen, use the following table to make the installation of Microsoft® SQL Server™ 2000 compatible with an installation of an earlier version of SQL Server.

Note Each SQL Collation name has an equivalent string in T-SQL code. For a list of sort order identifiers and the T-SQL version, see SQL Collation Name.

In the table, the left column lists the sort order ID of an instance of SQL Server 7.0 or SQL Server 6.5. The right column lists the SQL Server 2000 collation recommended for compatibility.

Sort order ID
SQL collation name

51 Dictionary order, case-sensitive, for use with 1252 character set.
52 Dictionary order, case-insensitive, for use with 1252 character set.
53 Dictionary order, case-insensitive, uppercase preference, for use with 1252 character set.
105 Dictionary order, case-sensitive, for use with the 1251 (Cyrillic) character set.
106 Dictionary order, case-insensitive, for use with the 1251 (Cyrillic) character set.
...
Рейтинг: 0 / 0
Could not attach the database because
    #32055754
Фотография KANDed
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
sp_helpsort
...
Рейтинг: 0 / 0
7 сообщений из 7, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Could not attach the database because
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]