2010-04-07から1日間の記事一覧

xp_cmdshell

xp_cmdshellを使用するとSQL Server から外部プログラムを呼び出すことができる 使用例は以下の通り DECLARE @Rtn int EXEC @Rtn = master.dbo.xp_cmdshell 'dir c:\' SELECT @Rtn AS [結果] なお、xp_cmdshellはデフォルトでは無効になっている xp_cmdshell…