Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Could not attach the database because / 7 сообщений из 7, страница 1 из 1
05.10.2002, 15:01:13
    #32055727
Jcomp
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
Ну вот доигрался.
Отатачил на одном серваке базу .. захотел на другом приатачить вот код:
Код: 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
05.10.2002, 15:36:19
    #32055732
Jcomp
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
Может вся фишка в том что на одном серваке стоит сервис пак 4, а на другом нет ??
...
Рейтинг: 0 / 0
05.10.2002, 16:09:07
    #32055733
KANDed
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
...
Рейтинг: 0 / 0
05.10.2002, 16:29:21
    #32055734
Jcomp
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
Ну почитать то я почитал .. но понять ниче не могу ...
Можно как то в одном месте и подробнее ?
Я отатачил базу. И пытаюсь еек приатачить дистрибутив сервака один. В чем суть .. и что за rebuildm.exe .. зачем он.. Как узнать именно в чем разница ? (haracter set, sort order, or Unicode collation). Помогите пропадаю.
...
Рейтинг: 0 / 0
05.10.2002, 17:15:35
    #32055737
Jcomp
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
Я так понимаю что проблема в сорт ордер
Код: plaintext
1.
2.
Warning: sort order  52  in database differs from server sort order of  106 .



Где я погу посмотреть (поменять) сорт ордер ? Мне заново сервак переставить не трудно стаким как надо сорт ордер но где посмотреть какой он на старом серваке ??
...
Рейтинг: 0 / 0
05.10.2002, 22:07:09
    #32055752
KANDed
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
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
05.10.2002, 22:43:33
    #32055754
KANDed
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Could not attach the database because
sp_helpsort
...
Рейтинг: 0 / 0
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Could not attach the database because / 7 сообщений из 7, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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