X
xin92002
Unregistered / Unconfirmed
GUEST, unregistred user!
1.存储过程(pro_del) 测试成功(如果需要修改请指点)if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pro_del]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[pro_del]GOSET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOcreate procedure pro_del @pj_noqishi int, @pj_nozhongzhi int as begin delete from tb_pj0 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj9 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj_mx where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj_mx0 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi endGOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GO2.利用delphi7调用该存储过程 adoconnection adostoreproc连接MS SQL数据库 (一个button按钮用于执行操作。edit1.edit2 用于给存储过程参数@pj_noqishi,@pj_nozhongzhi赋值)这个存储过程调用具体应该如何调用以及异常处理·(存储过程执行失败,存储过程调用失败)3.是否可以动态生成MS SQL 存储过程 具体代码小弟刚刚学习delphi+MS SQl 数据库的问题 还请大家 指教