ASP.NET: SQL DAL Helper

asp.net

The SQL Server DAL Helper is a utility application that generates Data Access Layer (DAL) functions from stored procedures in a SQL Server database. The only characteristic of the stored procedure that the application does not automagically detect is whether or not information is returned. So, if the stored procedure does not return a result set then you must manually select the 'INSERT/UPDATE/DELETE' radiobutton and hit the 'Update Code' button. All code that is generated is Beta 2 compliant and you can use Steve Smith's pMaker function to make the parameter code more efficient. The source code for this application can be found here. Follow these steps to setup the DAL Helper on your system: 1) Place the contents of [url http://www.aspalliance.com/aldotnet/examples/DALHelper.txt]DALHelper.txt [/url]in a .aspx file 2) Modify the GlobalDBConnection variable (connection string) to point at the database you wish to use to build the DAL functions 3) Call up the newly created .aspx page in a browser and pick a stored procedure to generate a DAL function Feel free to make modifications to this code (send me a copy so I can use your neat features =)! Please send any bugs to me. 

时间: 2024-07-30 22:59:53

ASP.NET: SQL DAL Helper的相关文章

ASP+MS SQL在线修改Serv-u的密码教程

asp+|serv-u|sql|教程|在线 下面是以Serv-U 6.0和Sql Server 2000相结合的演示. 建表Sql 语句: CREATE TABLE [groupaccounts] ( [id] int IDENTITY (1,1) PRIMARY KEY, [Index] int Default 0, [Name] nVarChar(50) default '', [Notes] nVarChar(255) default '' )CREATE INDEX [Name] on

再谈ASP防止SQL Injection漏洞的问题

问题 再谈ASP防止SQL Injection漏洞的问题 /**作者:慈勤强Email: cqq1978@Gmail.com*/ 关于Asp的SQL Injection预防问题,似乎已经没什么可说的了.在我做的Asp的项目里面, 都是用自己写的函数来处理客户端提交进来的数据,我的Blog里面也贴过这个函数. 具体可以参考http://blog.csdn.net/cqq/archive/2004/09/23/113786.aspx 不过,从朋友的留言和网上其他的一些讲如何防范SQL Injecti

用ASP与SQL Server2000编程分页显示记录的通用方法

server|server2000|sql|编程|分页|显示 用ASP与SQL Server2000编程分页显示记录的通用方法 在工作中,因为需要,需要一个网络查询系统,所以进行了网页设计.以前进行网页编程时经常使用PHP语言和MySQL数据库,此次,因为限制,必须用ASP语言和SQL Server2000,所以对此进行了一些研读.发现,SQL Server和ASP配合没有象MySQL那样的   Select ... limit ... 语句从某条记录开始只取需要的记录的功能,显得比较不方便.

精华文章:ASP中SQL语句参考及记录集对象

sql|参考|对象|记录集|精华|语句 1. ASP与Access数据库连接: <%@ language=VBscript%> <% dim conn,mdbfile mdbfile=server.mappath("数据库名称.mdb") set conn=server.createobject("adodb.connection") conn.open "driver={microsoft access driver (*.mdb)};

用ASP和SQL实现基于Web的事件日历

web|日历 本文介绍如何建立基于Web的日历,同时为不熟悉Active Server Pages(ASP).SQL和ADO的开发者提供建立Web站点的过程介绍,也为有经验的开发者提供了Web站点可伸缩性方面的技巧. 随着网络应用的发展,基于Web的日历越来越受到人们的重视,对于显示诸如最后期限或日程安排之类的重要事件,或显示谁在什么时候休假,基于Web的日历都是有用的.本文描述了如何使用IIS和SQL Server内的ASP建立一个非常简单的基于Web的日历,并允许你与其他人共享你的日程表或管

Asp备份与恢复SQL Server数据库

server|备份|恢复|数据|数据库 一个用asp备份与恢复SQL Server数据库的例子代码,希望对一些朋友有用.(注意:数据库使用中可能无法恢复) <HTML><HEAD><TITLE>SQL Server 数据库的备份与恢复</TITLE><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>

用Asp备份与恢复SQL Server 数据库

server|备份|恢复|数据|数据库 一个用asp备份与恢复SQL Server数据库的例子代码,希望对一些朋友有用.(注意:数据库使用中可能无法恢复) <HTML><HEAD><TITLE>SQL Server 数据库的备份与恢复</TITLE><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>

ASP中SQL语句导致的性能问题

问题|性能|语句 今天,修改了一点上次做的办公管理系统中的文件上传的BUG,原因是ASP中SQL语句性能问题导致了RecordSet对象关闭,结果使数据入库失败.对于这个错误,我目前只能这样理解了: SQL语句 select * from TAB_FILES 打开表后,然后调用AddNew方法添加要更新的数据,表面上看没什么问题,当TAB_FILES表中记录相当多时, select * from TAB_FILES 问题就暴露了,所有被选择的数据会写入系统内存缓冲区(实际操作由RecordSet

asp在SQL SER2k中新建帐号和给帐号权限的实现(转)

asp在SQL SER2k中新建帐号和给帐号权限的实现 发布于:2002-5-12 ' 以下为在asp中增加一个sql server2000用户函数,并为建立一个数据库,给他dbo的权限 ' ****************注意:sql server的验证方式不要选仅为windows方式, ' **************** 允许远程sql server连接 ' ****************该函数已通过测试**************************** ' 有什么问题欢迎和我交流