Показаны сообщения с ярлыком sql. Показать все сообщения
Показаны сообщения с ярлыком sql. Показать все сообщения
воскресенье, 19 мая 2019 г.
суббота, 5 января 2019 г.
MS SQL reset sa password / add access to new admin
Copy-paste:
Here is another workaround:
Run the SQL Server Management Studio as the system account. This can be done easily with the PsExec program. Download PsExec from Sysinternals website. Extract the PsExec.exe program and save it to a folder on your computer such as C:.
Open an elevated Command Prompt and run the following command:
C:\PsExec.exe -s -i "C:\Program Files (x86)\Microsoft SQL Server\110\Tool\Binn\ManagementStudio\Ssms.exe"
It will start SQL Server Management Studio as the system account. You’ll see that the username is shown as "NT AUTHORITY\SYSTEM". Simply choose the Windows Authentication mode and click on the Connect button.
Once you connect, you can reset SA password with ease.
If this also doesn't work, the last resort is try some third-party software such as SQL Server Password Changer, or reinstall your SQL Server.
источник
Here is another workaround:
Run the SQL Server Management Studio as the system account. This can be done easily with the PsExec program. Download PsExec from Sysinternals website. Extract the PsExec.exe program and save it to a folder on your computer such as C:.
Open an elevated Command Prompt and run the following command:
C:\PsExec.exe -s -i "C:\Program Files (x86)\Microsoft SQL Server\110\Tool\Binn\ManagementStudio\Ssms.exe"
It will start SQL Server Management Studio as the system account. You’ll see that the username is shown as "NT AUTHORITY\SYSTEM". Simply choose the Windows Authentication mode and click on the Connect button.
Once you connect, you can reset SA password with ease.
If this also doesn't work, the last resort is try some third-party software such as SQL Server Password Changer, or reinstall your SQL Server.
источник
воскресенье, 17 сентября 2017 г.
MS SQL Server. DBMail error [474] Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException: Mail configuration information could not be read from the database. ---> System.InvalidCastException
Дата 17.09.2017 19:14:16
Журнал Агент SQL Server (Текущий - 17.09.2017 19:14:00)
Сообщение
[474] Unable to refresh Database Mail profile notify@extdomain.com. (reason: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException: Mail configuration information could not be read from the database. ---> System.InvalidCastException: Не удалось привести тип объекта "System.DBNull" к типу "System.Byte[]".
в Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
--- Конец трассировки внутреннего стека исключений ---
в Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 )
Для решения читать этот пост.
В SQL убрана поддержка TLS 1.0
Копипаста:
Enabling FIPS in local group policy fixed the database mail issue:
Open gpedit.msc. In the Local Group Policy Editor, double-click Windows Settings under the Computer Configuration node, and then double-click Security Settings.
Under the Security Settings node, double-click Local Policies, and then click Security Options.
In the details pane, double-click System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing.
In the System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing dialog box, click Enabled, and then click OK to close the dialog box. Close the Local Group Policy Editor.
Restart SQL Server machine for this change to take affect.
Журнал Агент SQL Server (Текущий - 17.09.2017 19:14:00)
Сообщение
[474] Unable to refresh Database Mail profile notify@extdomain.com. (reason: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException: Mail configuration information could not be read from the database. ---> System.InvalidCastException: Не удалось привести тип объекта "System.DBNull" к типу "System.Byte[]".
в Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
--- Конец трассировки внутреннего стека исключений ---
в Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 )
Для решения читать этот пост.
В SQL убрана поддержка TLS 1.0
Копипаста:
Enabling FIPS in local group policy fixed the database mail issue:
Open gpedit.msc. In the Local Group Policy Editor, double-click Windows Settings under the Computer Configuration node, and then double-click Security Settings.
Under the Security Settings node, double-click Local Policies, and then click Security Options.
In the details pane, double-click System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing.
In the System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing dialog box, click Enabled, and then click OK to close the dialog box. Close the Local Group Policy Editor.
Restart SQL Server machine for this change to take affect.
четверг, 9 февраля 2017 г.
Windows 2012r2 + SQL 2012. DistributedCOM id 10016
Ошибка:
Параметры разрешений для конкретного приложения не дают разрешения Локально Активация для приложения COM-сервера с CLSID
{FDC3723D-1588-4BA3-92D4-42C430735D7D}
и APPID
{83B33982-693D-4824-B42E-7196AE61BB05}
пользователю DOMAIN\User с ИД безопасности (S-1-5-21-1136678172-3917331980-3106282988-1147) и адресом LocalHost (с использованием LRPC), выполняемого в контейнере приложения Недоступно с ИД безопасности (Недоступно). Это разрешение безопасности можно изменить с помощью средства администрирования служб компонентов.
Решение от iain27 on 3/10/2009 at 11:37 AM
– open com permissions
Component services, computers, my computer,
DCOM config, find the MSDTSServer100
Properties
Security
Launch and Activate permissions – edit
Add the local SQL AgentUser group and enable local launch and Local activation
I think translates to:
Параметры разрешений для конкретного приложения не дают разрешения Локально Активация для приложения COM-сервера с CLSID
{FDC3723D-1588-4BA3-92D4-42C430735D7D}
и APPID
{83B33982-693D-4824-B42E-7196AE61BB05}
пользователю DOMAIN\User с ИД безопасности (S-1-5-21-1136678172-3917331980-3106282988-1147) и адресом LocalHost (с использованием LRPC), выполняемого в контейнере приложения Недоступно с ИД безопасности (Недоступно). Это разрешение безопасности можно изменить с помощью средства администрирования служб компонентов.
Решение от iain27 on 3/10/2009 at 11:37 AM
– open com permissions
Component services, computers, my computer,
DCOM config, find the MSDTSServer100
Properties
Security
Launch and Activate permissions – edit
Add the local SQL AgentUser group and enable local launch and Local activation
I think translates to:
Open Component Services, Computers, My Computer, DCOM Config, find Microsoft SQL Server Integration
Services 11.0
Properties
Security
Launch and Activate permissions – edit
Add the local SQLServerAgent and enable Local Launch and Local Activation
I'll let you know if it works.
источникProperties
Security
Launch and Activate permissions – edit
Add the local SQLServerAgent and enable Local Launch and Local Activation
I'll let you know if it works.
четверг, 15 января 2015 г.
Восстановление базы master в ms sql
Восстановить базу master по умолчанию
C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\...\setup.exe /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER/SQLSYSADMINACCOUNTS=Administrator /SAPWD="password"
Или запустить без /QUIET, тогда будет через GUI. Может понадобиться дистрибутив MS SQL.
Далее нужно запустить MS SQL в однопользовательском режиме. Зайти в службы, найти MS SQL, в параметрах выбрать тип запуска "вручную" и дописать в параметрах запуска -m
Запустится служба, открыть cmd от администратора, запустить sqlcmd
1> RESTORE DATABASE master FROM DISK = 'Z:\SQLServerBackups\master.bak' WITH REPLACE
2> GO
Когда база восстановится, служба будет автоматически остановлена. Нужно выставить параметр запуска обратно на "автоматически" и убрать параметр -m
Перезагрузить сервер, посмотреть журнал событий на косяки.
инфа отсюда, отсюда и отсюда
C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\...\setup.exe /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER/SQLSYSADMINACCOUNTS=Administrator /SAPWD="password"
Или запустить без /QUIET, тогда будет через GUI. Может понадобиться дистрибутив MS SQL.
Далее нужно запустить MS SQL в однопользовательском режиме. Зайти в службы, найти MS SQL, в параметрах выбрать тип запуска "вручную" и дописать в параметрах запуска -m
Запустится служба, открыть cmd от администратора, запустить sqlcmd
1> RESTORE DATABASE master FROM DISK = 'Z:\SQLServerBackups\master.bak' WITH REPLACE
2> GO
Когда база восстановится, служба будет автоматически остановлена. Нужно выставить параметр запуска обратно на "автоматически" и убрать параметр -m
Перезагрузить сервер, посмотреть журнал событий на косяки.
инфа отсюда, отсюда и отсюда
воскресенье, 23 ноября 2014 г.
sql. перенести tempdb.
USE master
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = 'd\:datatempdb.mdf')
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = 'e:\datatemplog.ldf')
GO
источник
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = 'd\:datatempdb.mdf')
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = 'e:\datatemplog.ldf')
GO
источник
понедельник, 4 августа 2014 г.
пятница, 25 ноября 2011 г.
CSAdminServer, id 1, error, #1950 (156), IDispatch error #3092
Вылезла ошибка на сервере с админкой каспера. база в mssql...
пятница, 3 июня 2011 г.
четверг, 24 марта 2011 г.
Подписаться на:
Сообщения (Atom)