摘要:从.NET 2.0开始,你可以用一行代码解决转换问题: DataReader To DataTable: Dim dr As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) Dim dt As DataTable = New DataTable() dt.Load(d...
阅读全文
摘要:Jackie Goldstein Renaissance Computer Systems 适用于: Microsoft ADO.NET 2.0 Visual Basic 编程语言 摘要:了解有关 .NET Framework DataSet 类以及与它密切相关的类中的新增 ADO.NET 2.0 功能的知识。这些更改包括对 DataSet、DataTable 和 DataView 类的功能和性...
阅读全文
摘要:临时版,尚未加注释 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Data; using System.Data.SqlClient; using System.Configuration; ...
阅读全文
摘要:存储过程: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->create proc proc_GetUserID @UserName nvarchar(50),@ID int output as begin set @ID = (sel...
阅读全文
摘要:该代码来自:动软.Net代码生成器,安装目录下BaseClass\DbHelperSQL.cs using System; using System.Collections; using System.Collections.Specialized; using System.Data; using System.Data.SqlClient; using System.Configurati...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public static SqlDataReader ExcuteReader_SQL(string sql) { SqlConnection...
阅读全文
摘要:表UserAccount结构: ID int 自增主键 UserName nvarchar(50) Password nvarchar(50) Used bit 默认值:1 存储过程: Code highlighting produced by Actipro Code...
阅读全文
摘要:原文链接:http://hi.baidu.com/crp8/blog/item/56302a1264fd9a57f919b851.html 1.获取Return返回值 程序代码 //存储过程 //Create PROCEDURE MYSQL // @a int, // @b int //AS // return @a + @b //GO SqlConnectio...
阅读全文
摘要:// =============================================================================== // Microsoft Data Access Application Block for .NET // http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm...
阅读全文