SQL 操作 Application ?? 我想问问,MS—SQL能不能操作IIS的Application??因为我想在自动执行一个存储过程的时候,自己更改IIS的Application,但是我在网上找了半天,也没有相关的说明, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没试过,我只知道MS_SQL可以使用Sp_OACreate等存储过程建立Dll对象的类并执行相应方法等,这个我测试成功。如果楼主能用VB之类的语言编写一个Dll可以控制IIS的Application的话,我想可以使用Sp_OACreate调用这个Dll,也许可以达到楼主的目的 LZ的想法比较新奇,可以试试下面这个扩展纯粹过程,可以调用任何外部的命令,当然也可以执行其他程序xp_cmdshell {'command_string'} [, no_output]联机文档上面一个从SQL里面自动关机的例子:CREATE PROC shutdown10ASEXEC xp_cmdshell 'net send /domain:SQL_USERS ''SQL Server shutting down in 10 minutes. No more connections allowed.', no_outputEXEC xp_cmdshell 'net pause sqlserver'WAITFOR DELAY '00:05:00'EXEC xp_cmdshell 'net send /domain: SQL_USERS ''SQL Server shutting down in 5 minutes.', no_outputWAITFOR DELAY '00:04:00'EXEC xp_cmdshell 'net send /domain:SQL_USERS ''SQL Server shutting down in 1 minute. Log off now.', no_outputWAITFOR DELAY '00:01:00'EXEC xp_cmdshell 'net stop sqlserver', no_output 多表合并问题求解,在线急等!!!! 求一个视图 请(ankor)和其他朋友再帮我解答一次我的问题 巨郁闷的一天,这个程序哪里错了?望高手指教 请教个数据库重复值的问题 请问关于查询的一个问题,请大家帮帮我! 怎么判断access数据库里面是否包含某个表的名字,或者包含那些表? 有谁做过对MSSQL2000数据库通过设定密码限时使用的事? 怪问题 在还原数据库的时候出现这样的提示 数据库事务复制问题 求
联机文档上面一个从SQL里面自动关机的例子:CREATE PROC shutdown10
AS
EXEC xp_cmdshell 'net send /domain:SQL_USERS ''SQL Server shutting down
in 10 minutes. No more connections allowed.', no_output
EXEC xp_cmdshell 'net pause sqlserver'
WAITFOR DELAY '00:05:00'
EXEC xp_cmdshell 'net send /domain: SQL_USERS ''SQL Server shutting down
in 5 minutes.', no_output
WAITFOR DELAY '00:04:00'
EXEC xp_cmdshell 'net send /domain:SQL_USERS ''SQL Server shutting down
in 1 minute. Log off now.', no_output
WAITFOR DELAY '00:01:00'
EXEC xp_cmdshell 'net stop sqlserver', no_output