|
Падает служба Sql Server при селекте данных из Excel-файла
|
|||
---|---|---|---|
#18+
Делаю так: Код: sql 1. 2. 3. 4. 5.
Получаю это: авторMsg 109, Level 20, State 0, Line 40 A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - Канал был закрыт.) И еще бонусом - завершается служба SQL Server. Дал все права на папку юзеру NT Service\MSSQLSERVER, под которым запускается служба. Такое запускал, не помогло: авторUSE [master] GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1 GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1 GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0' , N'AllowInProcess' , 1 GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0' , N'DynamicParameters' , 1 GO exec sp_configure 'Show Advanced Options', 1 RECONFIGURE exec sp_configure 'Ad Hoc Distributed Queries', 1 RECONFIGURE Менять 12 на 16 - пробовал, тоже не помогло. Путь к файлу проверил - правильный. Лист проверил - правильный. Что не так? ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2021, 17:53 |
|
Падает служба Sql Server при селекте данных из Excel-файла
|
|||
---|---|---|---|
#18+
В файле ERRORLOG только 2 строчки: автор2021-05-14 18:02:09.65 spid58 Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required. 2021-05-14 18:02:09.77 spid58 Using 'xpstar.dll' version '2014.120.6108' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required. ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2021, 18:05 |
|
Падает служба Sql Server при селекте данных из Excel-файла
|
|||
---|---|---|---|
#18+
newbie876454 И еще бонусом - завершается служба SQL Server. Проверьте, какая версия сервера, может, SP или фикс надо накатить. ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2021, 20:01 |
|
Падает служба Sql Server при селекте данных из Excel-файла
|
|||
---|---|---|---|
#18+
newbie876454, попробуйте для начала EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 0 EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0' , N'AllowInProcess' , 0 чтобы падение запроса не тянуло за собой падение сервера, может тогда и в логах чуть больше инфы будет для дальнейшего понимания. p.s. хрустальный шар говорит что надо глядеть в сторону настройки пермишеннов в dcom ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2021, 21:06 |
|
Падает служба Sql Server при селекте данных из Excel-файла
|
|||
---|---|---|---|
#18+
Этот драйвер довольно специфичный. Вот из документации: Microsoft Access Database Engine 2016 RedistributableThe Office System Drivers are only supported under certain scenarios, including: Desktop applications which read from and write to various files formats including Microsoft Office Access, Microsoft Office Excel and text files. To transfer data between supported file formats and a database repository, such as SQL Server. For example, to transfer data from an Excel workbook into SQL Server using the SQL Server Import and Export Wizard or SQL Server Integration Services (provided the SSIS jobs run in the context of a logged-on user with a valid HKEY_CURRENT_USER registry hive).Попробуйте запустить службу SQL Server не под NT Service\MSSQLSERVER, а под нормальной виндовой учёткой. И предварительно под ней залогиньтесь сами чтобы в реестре был создан полноценный профиль. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.05.2021, 09:15 |
|
|
start [/forum/topic.php?fid=46&msg=40070418&tid=1684712]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
158ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 307ms |
total: | 550ms |
0 / 0 |