- 博客(19)
- 资源 (9)
- 问答 (2)
- 收藏
- 关注
原创 如何查看本机上MDAC的版本
由于配置ASP.NET时要安装MDAC,所以有必要知道本机上目前MDAC的版本,方法如下:檢查儲存在登錄中的版本信息雖然檢查登錄中的版本資訊並不是檢查 MDAC 版本最可靠的方法,但卻是確認這項資訊的一個簡便方式 (如果沒有遇到任何 MDAC 相關問題的話)。您可以在下列機碼中找到版本資訊: HKEY_LOCAL_MACHINE/Software/Microsoft/DataAcces
2006-09-30 11:20:00 4841 1
原创 C#中使用SQLDMO.Database.ExecuteImmediate执行SQL脚本(可用于新建表、视图)
我以前做过一个客户档案的程序(C#+SQL Server2000) 。当时是手工建立数据库(表、视图)。现在需要将程序用于另一个部门,但有小部分功能要改变(包括程序代码和数据库结构),大部分不变。于是想用代码生成空表之后再修改。 实现方法:1、在企业管理器中复制表和视图,在记事本里粘贴后就得到表和视图的脚本(SQL Server2000可以用其来生成表和视图),为了方便在程
2006-09-21 17:30:00 2051
原创 C#中对文件夹及文件信息的操作
C#中如何判断指定文件或文件夹是否存在?using System.IO;if(!File.Exists(filepath)){ 文件不存在}if(!Directory.Exists(Directorypath)){ 文件夹不存在}如何统计某一目录下文件数目? DirectoryInfo dir = new DirectoryInfo(this.txtPath.Text.Tr
2006-09-21 10:19:00 1393
原创 C#中使用SQLDMO编程,能否通过指定某一Column的值来定位记录(未解决)
已取得一个数据库表中的某一字段(Column)对象tmpCol能否通过指定它的值来定位记录比如表中有如下记录:ID A B C1 X MS 12 Y BL 33 S OR 94 E IB 6这里tmpCol对应B字段,现在我想给出其值为OR,程序就可以定位到此表的第3条记录(并可取到其它字段值)
2006-09-20 12:19:00 956
转载 VS2005中的全角BUG(C#代码)
VS2005不论在其IDE环境中还是在开发出的程序中都存在中文全角的BUG--只要想输入中文的时候输入法总是无故变成全角,以下是详细内容:IDE中的情况:起初在工具--选项--环境--区域设置 把语言设置称"中文简体".然后在vs环境中把光标移到属性需要设置的文本域是就自动转换成全角状态,而打不出中文,甚是郁闷。解决办法,很简单,语言设置改回 "与Microsoft Windows 相同",重
2006-09-20 10:35:00 1964 2
原创 DELPHI中的快捷键
转自CSDN:http://topic.csdn.net/t/20030926/09/2301515.htmlDELPHI中的快捷键一览(完全正式版) 1.SHIFT+鼠标左键 先选中任一控件,按键后可选中窗体(选中控件后按Esc效果一样) 2.Shift+F8 调试时弹出CPU窗口。 3.Shift+F1
2006-09-19 12:15:00 928
原创 C#中使用SQL Server分布式管理对象(SQL-DMO)(有改动)
我们曾经在以前的应用中多次需要得到SQL Server的详细信息,过去,我们必须使用API和效率低下的ADO的 调用才能得到,现在,我们有了一个新的方法,就是SQLDMO(SQL Distributed Management Objects,SQL分布式管 理对象),尽管它目前还不被人所知和使用,但是SQLDMO提供了许多强有力的、和利用代码从SQL Server获得 信息相类似的许多功能,为举例
2006-09-15 11:49:00 1107
转载 C#中利用ADO.NET连接和查询SQL数据库
using System.Data;using System.Data.SqlClient;...SqlConnection sqlCon = new SqlConnection("Data Source=(local);Initial Catalog=pubs;User ID=sa;Password= ");//Data Source为服务器;Initial Catalog为数据库;sqlC
2006-09-14 17:17:00 2182
原创 C#中使用SQLDMO的StoredProcedure对象(存储过程)创建数据表
....... SQLDMO.StoredProcedure strProc = new SQLDMO.StoredProcedure(); // Assign a name to stored procedure strProc.Name = "createCustomerT
2006-09-13 13:56:00 1697
原创 C#中操作鼠标对象Cursor
改变鼠标指针形状: Cursor.Current = Cursors.WaitCursor; try { .. do some work .. } finally { Cursor.Current = Cursors.Default; } 相关网址:http://www.codeproject.com/cs/miscctrl/WaitCursor.asp
2006-09-13 12:19:00 14589
转载 Delphi中如何点击DBgrid中的一行,而获取选中行的各字段的值
你点中它就已经选中了该条记录,直接取就可以了。 如你用query1连的: s:=query1.fieldbyname(name).asstring; 就是取的当前记录的值了。
2006-09-13 11:30:00 13591 1
转载 墨绿是谁?
摘自CSDN墨绿 ·万精油· 墨绿的出现,同时震惊了中日韩三国棋院,一个共同的问题是:墨绿究竟是谁? ——人民日报体育版2005年9月10日 看着《人民日报》的这篇报道,我心里充满了喜悦,自豪和得意。这世界上除我之外再没有第二个人知道墨绿的真实身份了。 一.引子 话要从大约十年前说起。由IBM科研小组研
2006-09-12 09:10:00 1829
原创 如果数据表或字段名是SQL关键字怎么办
比如最常见的USER作为表名,用SQL语句“select * from USER”查询就会出现如下错误:在关键字 USER 附近有语法错误 可以用[ ]避免出现这样的错误,即:将SQL语句改正这样“select * from [USER]”
2006-09-11 16:39:00 6711 1
原创 C#如何让SaveFileDialog框访问本地网络中其它电脑的“我的电脑”(未解决)
我在C#中用SQLDMO新建数据库,遇到了一个问题:数据库文件的保存路径问题 先选定本地网络中的一个SQL服务器(DATASRV),之后在其上新建一个数据库,创建过程中有一个参数:PhysicalName是指定数据库文件(.MDF)的存放路径,假设指定为D:/TEMP/TEST.MDF则是保存在服务器(DATASRV)的D:/TEMP/下。 用字符串的方式指定没有问题,可以在服务器的指
2006-09-10 10:48:00 1851
原创 C#中给自写函数加提示型注释
VS2005的代码编辑器的提示功能很强,在我们的程序中经常会自己写一些函数,在调用这样的自写函数时如何出现提示呢? /// /// 创建数据库。 /// /// 表示要连接的服务器名 /// 指定要创建的数据库名 /// 返回值 private string
2006-09-08 14:13:00 2124
原创 C#操作EXCEL
将 Excel 程序集作为引用添加到项目中:在“解决方案资源管理器”中找到“引用”右击,选择“添加引用”。单击“添加引用”对话框的“COM”选项卡,找到“Microsoft Excel 11 Object Library”。 双击“Microsoft Excel 11 Object Library”,然后按“确定”。 注意:Microsoft Excel 11 Object Libra
2006-09-07 08:51:00 3526 1
转载 C#主窗体和子窗体之间如何相互操作对方的控件
原文地址:http://blog.csdn.net/knight94/archive/2006/03/18/628285.aspx很多人都苦恼于如何在子窗体中操作主窗体上的控件,或者在主窗体中操作子窗体上的控件。相比较而言,后面稍微简单一些,只要在主窗体中创建子窗体的时候,保留所创建子窗体对象即可。 下面重点介绍前一种,目前常见的有两种方法,基本上大同小异:第一种,在主窗体
2006-09-04 15:44:00 4751
转载 用C#压缩和修复Access数据库
介绍 下面这段C# 代码可以用来压缩和修复Access数据库,不管它是一个简单的".mdb"还是一个".mdw"网络共享数据库,这个过程和你在用MS Access应用程序中使用的"工具-数据库实用工具-压缩和修复"时执行的操作完全一样.实例代码使用了"迟绑定"(运行中在内存中建立COM对象),这样就不需要在工程中加入COM引用了,也不需要在PC上安装MS Access应用程序.
2006-09-01 09:50:00 1025
转载 用C#创建access文件
1. ※新建工程 ※进入解决方案->引用->添加引用 选择com标签 下的microsoft ado ext.2.8..... ->选择-> OK ※编码 //命令行工程代码如下 using System; using ADOX; namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main(string[]
2006-09-01 09:44:00 2333
C++ How to Program, 10th Edition, 2016, by Paul Deitel, Harvey
2023-05-20
A Tour of C++ - Stroustrup, Bjarne - Addison Wesley Professional
2023-05-20
Getting Started with Data Warehousing
2015-03-19
Microsoft_SQL_Server_2008_A_Beginner's_Guide 英文版
2009-03-31
LINQ Unleached For C Sharp(2/2)
2008-12-05
LINQ Unleached For C Sharp(1/2)
2008-12-05
Illustrated C# 2005.pdf(1/3)
2007-10-17
IntelliJ Idea Gradle工程, 能否将本地Gradle设为默认值
2021-10-18
关于vite的npm安装命令
2021-10-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人