如何判断是否启动了SQL Server服务管理器中的Distributed Transaction Coordinator服务. exec master..xp_cmdshell 'net start msdtc'exec master..xp_cmdshell 'net stop msdtc' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 判断MSDTC是否已启动:create table #tmp (c varchar(1000))insert into #tmpexec master..xp_cmdshell 'net start'if exists (select 1 from #tmp where c like '%Distributed Transaction Coordinator%') print 'MSDTC已启动'else print 'MSDTC没启动'drop #tmp 两句SQL并一句,有问题. 外关键约束的问题 消除查询结果的某列 sql语句书写,根据查询条件和数据内的字段查询交集记录 关于主子表查询的问题,如何设计SQL查询语句,汇总子表 Money字段四舍五入只取两位小数 关于联表数据查询 如何恢复数据库,只有DATA文件夹中的.mdf文件,在线等 哪位高手分析下网上地图查询是怎么实现的? database.ExecuteSQL(sSql);这句话有什么问题? Odbc 和SqlServer问题,急 如何把第三方算法嵌入到SQL Server Analysis Services中??!!
exec master..xp_cmdshell 'net start'if exists (select 1 from #tmp where c like '%Distributed Transaction Coordinator%')
print 'MSDTC已启动'
else
print 'MSDTC没启动'drop #tmp