2008年7月8日
摘要: 一:导出数据 命令:bcp 案例: bcp "select * from [YLED].[dbo].[MST_エラーメッセージ] where (画面ID = 'CMG221') OR (画面ID = 'CMG222')" queryout D:\message.sql -c -S192.168.100.3 -Usa -P123456 注释: a)."select * from [YLED].[... 阅读全文
posted @ 2008-07-08 14:15 Stym--闫生 阅读(809) 评论(0) 推荐(0) 编辑
摘要: public String HtmlEncode(String txt) { txt = replace(txt, "&", "&"); txt = replace(txt, "\"", """); txt = replace(txt, "", ">"); txt = replace(txt, ... 阅读全文
posted @ 2008-07-08 14:00 Stym--闫生 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 经常使用的js来刷新页面的方式有: a). window.location.reload() b). window.history.go(0) c). document.execCommand('Refresh') 阅读全文
posted @ 2008-07-08 13:55 Stym--闫生 阅读(192) 评论(0) 推荐(0) 编辑
摘要: /*---------------移动用户数据库-----------------------*/ --=============detach和attach的使用============-- -- 打印该数据库的位置和一些详细的信息 --use JP_YLED --go --sp_helpfile --go -- 分离数据库 -- use master -- go -- sp_detac... 阅读全文
posted @ 2008-07-08 11:32 Stym--闫生 阅读(594) 评论(0) 推荐(0) 编辑
  2008年6月26日
摘要: // 调用cmd来执行。 private void Process() { Process p = new Process(); //加载CMD命令行并传递参数执行 p.StartInfo.FileName = "cmd.exe"; //这里是设置要调用的目标程序或文件,FileName 属性不 ... 阅读全文
posted @ 2008-06-26 13:05 Stym--闫生 阅读(781) 评论(0) 推荐(0) 编辑
摘要: ALTER PROCEDURE [dbo].[test] AS DECLARE @statment NVARCHAR(300) -- 构造sql语句 BEGIN SET @statment = 'SELECT ' + '1*10+20+15' + ' AS RESULT'; -- 方式一 EXEC sp_executesql @statment -- 方式二 ... 阅读全文
posted @ 2008-06-26 10:23 Stym--闫生 阅读(269) 评论(0) 推荐(0) 编辑
  2008年6月19日
摘要: // kill回车建 window.document.onkeydown = function () { var sType = event.srcElement.type; ... 阅读全文
posted @ 2008-06-19 09:12 Stym--闫生 阅读(196) 评论(0) 推荐(0) 编辑
  2008年6月16日
摘要: // ftp 文件上传,fileName:要上传的文件,fileNewname:要在服务器上保存的名称 private void Upload(string fileName, string fileNewname) { string strFileName = ""; // 获取文件的相关信息 FileInfo fileInf =... 阅读全文
posted @ 2008-06-16 18:54 Stym--闫生 阅读(1235) 评论(3) 推荐(0) 编辑
  2008年6月11日
摘要: // 屏蔽鼠标右键菜单 document.oncontextmenu = function () {event.returnValue=false;} // 屏蔽掉其他与程序无关的键 document.onkeydown = function () { //8 退格键 ... 阅读全文
posted @ 2008-06-11 13:36 Stym--闫生 阅读(363) 评论(0) 推荐(0) 编辑
  2008年4月25日
摘要: 一:项目有需要对当前系统的时间减一秒!,我查找了一下文档,发现了下面的函数! declare @sysdate datetime begin set @sysdate = getdate(); select @sysdate; select (@sysdate - 1); select dateadd(second,-1,@sysdate) select dateadd(hour,-1,@sysd... 阅读全文
posted @ 2008-04-25 18:43 Stym--闫生 阅读(553) 评论(0) 推荐(0) 编辑