01 2017 档案

摘要:有时候,我们想要快速获取数据库中某个表的结构,或者是对应的SQL文。 DDL: 生成用的SQL文 执行结果: 如果将中间的SQL文稍加改造,则可以做成批量Create SQL的语句。 你也可以参考:http://stackoverflow.com/questions/706664/generate- 阅读全文
posted @ 2017-01-27 13:38 tomclock 阅读(560) 评论(0) 推荐(0)
摘要:According to the documentation, timestamp is a synonym for rowversion - it's automatically generated and guaranteed1 to be unique. datetime isn't - it 阅读全文
posted @ 2017-01-27 11:05 tomclock 阅读(238) 评论(0) 推荐(0)
摘要:using System; using System.Data; using System.Data.SqlClient; using System.Text; namespace ConsoleApplication1 { static class Test8 { static SqlConnection cn; static SqlTran... 阅读全文
posted @ 2017-01-25 08:53 tomclock 阅读(252) 评论(1) 推荐(0)
摘要:private void DownLoadFile(string file) { try { string fileName = new FileInfo(file).Name; Stream stm = new FileStream(file, FileMode.Open, FileAccess. 阅读全文
posted @ 2017-01-19 16:09 tomclock 阅读(193) 评论(0) 推荐(0)
摘要:Class Program { Void Main(){ CopyFileToEDIServer("C:\Logs\NIS_20160930.log") } private void CopyFileToEDIServer(string path) { RemoteInfo remote = new 阅读全文
posted @ 2017-01-17 12:58 tomclock 阅读(959) 评论(1) 推荐(0)