2010年11月15日

从 xp_cmdshell 中使用 dtexec 运行SSIS包

摘要: 从 xp_cmdshell 中使用 dtexec 运行SSIS包从 xp_cmdshell 中使用 dtexec 可以从 xp_cmdshell 提示符下运行 dtexec。以下示例显示如何运行名为 UpsertData.dtsx 的包并忽略返回代码:EXEC xp_cmdshell 'dtexec /f "C:\UpsertData.dtsx"'以下示例显示如何运行相同的包并捕获返回代码:DEC... 阅读全文

posted @ 2010-11-15 14:17 Leon_He 阅读(1105) 评论(0) 推荐(1) 编辑

Excel导入Sql Server数字导入问题解决

摘要: Excel导入Sql Server数字导入问题解决1.将单元格格式设置为 常规2.导入的sql语句use testexec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure goSELECT * INTO spacefield FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source="D:\导入\spacefield.xls";Extended properti 阅读全文

posted @ 2010-11-15 14:07 Leon_He 阅读(1147) 评论(0) 推荐(1) 编辑

Mysql 中时间日期函数

摘要: Mysql中时间日期函数获取当前日期或时间--当前日期SELECT curdate( ) 2010-11-15SELECT CURRENT_DATE( ) 2010-11-15--当前时间SELECT curtime( ) 12:51:35SELECT CURRENT_TIME( ) 12:53:25 --当前日期时间SELECT now( ) 2010-11-15 13:01:40SELECT CURRENT_TIMESTAMP( ) 2010-11-15 12:52:47注意:在一个单一询问中,对诸如NOW() 的函数多次访问总是会得到同样的结果日期增减DATE_ADD(date,INTE 阅读全文

posted @ 2010-11-15 13:46 Leon_He 阅读(489) 评论(0) 推荐(0) 编辑

导航