taki_net: (Default)
taki_net ([personal profile] taki_net) wrote2010-11-15 12:27 am

(заискивающе) сами мы не местные MS SQL Server глючит...

Поставил я этот продукт (MS SQL Server Express 2008 R2), пытаюсь восстановиться из бекапа БД (файла bak). Получаю диагностику:



Что это и что с ним делать, а?

[identity profile] taki-net.livejournal.com 2010-11-15 04:26 am (UTC)(link)
Вот, кажется, релевантное место:
2010-11-15 00:52:49.14 spid54 Starting up database 'clear'.
2010-11-15 00:52:51.28 spid54 Starting up database 'clear'.
2010-11-15 00:53:22.53 spid52 Configuration option 'filestream access level' changed from 0 to 2. Run the RECONFIGURE statement to install.
<{39B75A24-0837-4CEC-AFDF-B960027AE07E}>RsFxNso initialized. InstanceId = 00000001
<{50080099-5EC4-4EAF-A2A2-63C3DA97F8EB}>FsAgent is initialized
<{09C4480B-DBA4-49B7-956F-68A8B8B2445D}>FsAgent is up and running
2010-11-15 00:53:22.68 spid52 FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'SQLEXPRESS'.
2010-11-15 00:54:13.09 spid54 Ошибка: 17207, серьезность: 16, состояние: 1.
2010-11-15 00:54:13.09 spid54 STREAMFCB::Startup: Operating system error 0x80070005(Отказано в доступе.) occurred while creating or opening file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\production_2.ProductionLargeObjects'. Diagnose and correct the operating system error, and retry the operation.
2010-11-15 00:54:13.18 spid54 Ошибка: 17204, серьезность: 16, состояние: 1.
2010-11-15 00:54:13.18 spid54 FCB::Startup () failed: Could not open file c:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\production_2.ProductionLargeObjects for file number 65537. OS error: 0x80070005(Отказано в доступе.).

[identity profile] kitya.livejournal.com 2010-11-15 04:40 am (UTC)(link)
смотри тебе лог дал такой совет

Configuration option 'filestream access level' changed from 0 to 2. Run the RECONFIGURE statement to install.

сделай это RECONFIGURE

и попробуй восстановление еще раз

[identity profile] taki-net.livejournal.com 2010-11-15 06:07 am (UTC)(link)
Я вот такой код делал, когда файлстрим запустил:
EXEC sp_configure filestream_access_level, 2
RECONFIGURE

Я чего-то не понял, а какой должен быть этот левел - 0 или 2?:

[identity profile] kitya.livejournal.com 2010-11-15 06:45 am (UTC)(link)
Value

Description
0

Disables FILESTREAM support for this instance.
1

Enables FILESTREAM for Transact-SQL access.
2

Enables FILESTREAM for Transact-SQL and Win32 streaming access

попробуй перезапустить компьютер после reconfigure

[identity profile] kitya.livejournal.com 2010-11-15 06:47 am (UTC)(link)
да

слушай
дурацкий вопрос

у тебя

GO после RECONFIGURE было в строке?

иначе ничего не получится, тогда не удивительно что оно ругается.

[identity profile] taki-net.livejournal.com 2010-11-15 07:14 am (UTC)(link)
Какое go? Я запускал через менеджмент студио, нажал экзекьют.

[identity profile] kitya.livejournal.com 2010-11-15 07:18 am (UTC)(link)
я не специалист как у них точно интерфейс работает, но я бы там в окошке написал бы на всякий случай написал бы в окошке

USE Master
GO
EXEC sp_configure filestream_access_level, 2
GO
RECONFIGURE
GO

и только после этого жал бы на Execute