摘要: SQLServer时间日期函数详解,SQLServer,时间日期,1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.0003. datediff 返回跨两个指定日期的日期和时间边界数。 select datediff(day,'2004-09-01','2004-09-18') --返回:17 select d 阅读全文
posted @ 2012-09-13 16:26 雨天的泪水 阅读(249) 评论(0) 推荐(0)
摘要: Access类型数据库连接字符串:string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + filePath + "; Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1;\"";本地sql数据库连接字符串: <ConnectionString Name="ConnectionString" Value="Data Source=.;Initial Catalog=CustomerM 阅读全文
posted @ 2012-09-02 13:19 雨天的泪水 阅读(140) 评论(0) 推荐(0)