上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 在分布式应用程序中,往往要同时操作多个数据库,使用数据库事务就不能满足业务的要求了。在COM+中,提供完整的事务处理服务。很方便处理多个数据库上的事务。Demo:COM+事务/// /// COM+事务 /// public void ComTran() { SqlConnection conn = new SqlConnection("Data Source=127.0.0.1;Initial Catalog=Northwind;Persist Security Info=True;User ID=sa;Password=123;"); SqlCommand ... 阅读全文
posted @ 2011-11-22 13:48 lenya 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-11-16 09:34 lenya 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 将下面的代码保存为.vbs 文件,把 test.bat 改成你的批处理文件,然后运行.vbs 文件--------------------------------------------------------------set GuWS=WScript.CreateObject("WScript.Shell")GuWS.Run "test.bat",vbhide 阅读全文
posted @ 2011-10-11 08:26 lenya 阅读(1494) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth(包括边线的宽)网页可见区域高:document.body.offsetHeight(包括边线的宽)网页正文全文宽:document.body.scrollWidth网页正文全文高:document.body.scrollHeight网页被卷去的高:document.body.scrollTop(IE7无效)网页被卷去的左:document.body.scrollLeft(IE7无效)网页被卷去的 阅读全文
posted @ 2011-09-16 15:43 lenya 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 步骤如下:1、在“管理”——》“数据库邮件” 中创建smtp服务器的邮件,相当于邮件客户端设置。如,邮件为12345@sina.com,服务器smtp.sina.com2、启动“sqlserver代理”,在操作员中新建操作员,如dba,并提供邮件地址,如:888@sina.com3、配置“sqlserver代理”(右键“属性”),在“警报系统”选项中,选中“启用邮件配置文件”及之下的“数据库邮件”4、选中作业,右键“属性”——》“通知”,选中“电子邮件”,选择操作员,选择“当作业失败时”。就ok了注意:要在第三步中要重启代理。另外,上两张图:(图1:新建配置文件)(图2:新建帐户) 阅读全文
posted @ 2011-09-16 13:18 lenya 阅读(306) 评论(0) 推荐(0) 编辑
摘要: C#版:using System;using System.Collections.Generic;using System.Text;namespace swapMouseButton2{ class Program { private const int SM_SWAPBUTTON = 23; [System.Runtime.InteropServices.DllImport("user32.dll")] private extern static bool SwapMouseButton(bool fSwap); [Sy... 阅读全文
posted @ 2011-08-24 08:41 lenya 阅读(176) 评论(0) 推荐(0) 编辑
摘要: HTML: ' /> ' /> CS:public partial ... 阅读全文
posted @ 2011-08-22 16:27 lenya 阅读(170) 评论(0) 推荐(0) 编辑
摘要: //String.Format,DateTime日期时间格式化集锦,备忘录DateTime dt = DateTime.Now;//2010年10月4日 17点05分string str = "";//str = string.Format("{0:y yy yyy yyyy}", dt); //10 10 2010 2010//str = String.Format("{0:M MM MMM MMMM}", dt); //10 10 十月 十月//str = String.Format("{0:d dd ddd dddd} 阅读全文
posted @ 2011-08-15 16:51 lenya 阅读(168) 评论(0) 推荐(0) 编辑
摘要: GO-- =============================================-- Author: lenya-- Create date: 2011/7/1-- Description: 通用分页存储过程-- =============================================ALTER PROCEDURE [dbo].[pr_commonPagination] @StrSql NVARCHAR(MAX) , @WhereClause VARCHAR(200) , --条件,可以为空,不加"where" @SortClau... 阅读全文
posted @ 2011-07-27 14:28 lenya 阅读(141) 评论(0) 推荐(0) 编辑
摘要: with t as( select 'Charles' parent, 'William' child union select 'Charles', 'Harry' union select 'Anne', 'Peter' union select 'Anne', 'Zara' union select 'Andrew', 'Beatrice' union select 'Andrew', 'Eugenie&# 阅读全文
posted @ 2011-06-23 15:59 lenya 阅读(242) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页