The reason for error 1909 was because it’s access token had expired (an Active Directory replication problem).
The workaround was …
net use \somebackupserversomebackupshare /user:domainsqlagentloginaccount
The reason for error 1909 was because it’s access token had expired (an Active Directory replication problem).
The workaround was …
net use \somebackupserversomebackupshare /user:domainsqlagentloginaccount
I found that SQL 2008 SSMS cannot connect to SQL 2005 SSIS. I needed to remote onto the Server, or install SQL 2005 locally.
In the registry the path to the SSIS config file can be overwritten.
To fix, reset this registry-key (the default for SQL 2005 on Windows 2008 is “C:Program FilesMicrosoft SQL Server90DTSBinn”) …
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSDTSServiceConfigFile]
I cobbled together this script which sits on my desktop called ‘ssms.vbs’. The disadvantage is you need to hard-code your password into the script and keep it upto date.
set WshShell = WScript.CreateObject("WScript.Shell") 'build runas command WshShell.run "runas /user:DOMAINUSERNAME %comspec%" WScript.Sleep 100 WshShell.SendKeys "PASSWORD" 'send password WshShell.SendKeys "{ENTER}" WScript.Sleep 500 'Open SSMS WshShell.SendKeys Chr(34) + "C:Program FilesMicrosoft SQL Server100ToolsBinnVSShellCommon7IDEssms.exe" + Chr(34) WshShell.SendKeys "{ENTER}" 'Close command prompt WshShell.SendKeys "exit" WshShell.SendKeys "{ENTER}" WScript.Sleep 1000 set wshshell = nothing
Most production systems these-days have xp_cmdshell disabled as a security precaution, rightly so. If you NEED to execute an operating-system command best to use this sort-of routine …
--cmdshell.sql -- DECLARE @cmd varchar(100) = 'shutdown /r' -- DECLARE @cmd varchar(100) = 'shutdown -r -f -t 0' DECLARE @cmd varchar(100) = 'Dir' -- DEBUG ... is xp_cmdshell enabled? SELECT case when value_in_use = 1 then 'YES' else 'no' end [is CMDSHELL enabled] FROM sys.configurations where name = 'xp_cmdshell' IF (SELECT value_in_use /* cmd shell is disabled */ FROM sys.configurations WHERE name = 'xp_cmdshell') = 0 BEGIN exec sp_configure 'show advanced options', 1 reconfigure -- show advanced options exec sp_configure xp_cmdshell, 1 reconfigure -- enable command-shell exec xp_cmdshell @cmd -- run the command exec sp_configure 'xp_cmdshell', 0 reconfigure -- disable command-shell exec sp_configure 'show advanced options', 0 reconfigure -- hide advanced options END ELSE /* cmd shell is enabled */ exec xp_cmdshell @cmd -- just run the command -- DEBUG ... is xp_cmdshell enabled? SELECT case when value_in_use = 1 then 'YES' else 'no' end [is CMDSHELL enabled] FROM sys.configurations where name = 'xp_cmdshell'
(NOTE: executing sp_configure by itself will show the current settings)