- 博客(8)
- 资源 (9)
- 收藏
- 关注
原创 如何用C#来部署数据库
现在好多程序,都是与数据库相关的,因此在做安装的时候,部署数据库看似是一件很复杂的事情。其实就我个人而言,部署数据库是很简单,大致的思路如下:1. 用本身的DBMS来产生数据库创建的SQL脚本;2. 接下来就是写程序来执行SQL脚本,从而达到创建数据库的目的。 以下用一个举例来说明,数据库服务器用的是SQL Server。 首先要在数据库生成好的SQL脚本最前头,加
2006-04-25 13:30:00 1052
原创 C#中操作注册表
Visual Studio .Net以前的版本,要对注册表进行修改,则需要调用系统API,而现在则不用那么麻烦,因为.Net已经把注册表相关的操作封装到一个类中,调用的时候只要只要调用此类对象相应的属性或方法即可。 以下就注册表这个类进行说明。首先,要引入注册类所在的nampespace,如下: 接下来就是对注册表的操作,则第一步要像以前操作的那样,需要设定注册表的位置,例
2006-04-25 13:22:00 1116
原创 存储过程返回值问题
1。/// /// 存储过程执行函数/// /// 存储过程名/// 参数信息集/// 需返回的参数名数组/// 存有返回值的HashTablepublic void ExecStoredProcedure(string strSpName,Hashtable ht,string[] strParameterArray){SqlCommand comm = new SqlCommand(strSp
2006-04-25 13:08:00 1871
原创 数据库操作技巧2
1.表T1 和 T2T1内容如下:学生姓名 语文老师编号 数学老师编号李小民 001 002杨小荣 003 001T2内容如下:老师编号 姓名001 史富国002 钟祥003 周民生我要用一个SQL语句查询得以下内容:学生姓名 语文老师 数学
2006-04-20 14:42:00 1289
原创 网页制作技巧1
1、 去掉IE的滚动条有时候做好的网页明明没有超出窗口,可IE却偏偏给加上滚动条,这样看上去很不舒服,其实这也是可以通过一些小技巧避免的。具体如下:”overflow-x:hidden”>… //去掉X轴方向的滚动条”overflow-y:hidden”>… //去掉Y轴方向的滚动条”overflow:hidden”>… //去掉全部的滚动条现在你看到的和你想像中的网页应该一样了吧,如果其中有什么
2006-04-20 13:28:00 1329
原创 c#.net常用的小函数集1
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 in
2006-04-20 13:18:00 915
原创 数据库操作技巧1
1.有两个表表一 AAA种类mc 库存总量s1A 997 B 1234表二 BBB种类mc 出库数量s1A 105A 213B 116B 211B 303用一条SQL语句求出A,B各剩下多少?select 种类mc,库存总量s1 -出库数
2006-04-18 08:28:00 1189
转载 TreeNode选择函数
CheckNode(TreeNode tn){ //两个方法分开写,避免冗余触发 CheckChild(tn); CheckFather(tn);}//处理子节点CheckChild(TreeNode tn){ foreach(TreeNode t in tn.Nodes) { t.Checked = true; CheckNode(t);
2006-04-17 22:10:00 1503
delphixe好用的AES加解密资源库
2020-08-21
qrcode(好用的D7二维码控件).rar
2020-07-18
DELPHI7托盘图标控件,230(好用).zip
2020-07-13
D7下好用的EhLib36(好用).rar 控件
2020-07-13
考勤机二次开发包
2012-06-27
为vs2008提供jquery智能提示
2010-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人