powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Как подменить .dat файл, что бы не было метки suspect?
2 сообщений из 2, страница 1 из 1
Как подменить .dat файл, что бы не было метки suspect?
    #32027687
Ленск
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Мне надо подменить dat-файл, в директории DATA, но лезет suspect. Как с ним бороться?
...
Рейтинг: 0 / 0
Как подменить .dat файл, что бы не было метки suspect?
    #32027771
Надо делать так:

Шаг 1.

отсоединить старую базу данных:

sp_detach_db [@dbname =] 'dbname'
[, [@skipchecks =] 'skipchecks']

Arguments

[@dbname =] 'dbname'

Is the name of the database to be detached. dbname is sysname, with a default value of NULL.

[@skipchecks =] 'skipchecks'

skipchecks is nvarchar(10), with a default value of NULL. If true, UPDATE STATISTICS is skipped. If false, UPDATE STATISTICS is run. This option is useful for databases that are to be moved to read-only media.

Шаг 2.

скопировать файлы

Шаг 3.

присоединить новую базу данных:

sp_attach_db [@dbname =] 'dbname',
[@filename1 =] 'filename_n' [,...16]

Arguments

[@dbname =] 'dbname'

Is the name of the database to be attached to the server. The name must be unique. dbname is sysname, with a default of NULL.

[@filename1 =] 'filename_n'

Is the physical name, including path, of a database file. filename_n is nvarchar(260), with a default of NULL. There can be up to 16 file names specified. The parameter names start at @filename1 and increment to @filename16. The file name list must include at least the primary file, which contains the system tables that point to other files in the database. The list must also include any files that were moved after the database was detached.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Как подменить .dat файл, что бы не было метки suspect?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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