* hh * 8.4.5 TADOStoredProc 组件概述 TADOStoredProc组件可以执行在数据库管理系统如SQL Server 2000定义好的存储过程. * hh * 1)TADOStoredProc组件的主要属性 (1)Connection 指定连接数据库的ADOConnection的名字 (2)Connectionstring 可直接利用字符串连接 (2)ProcedureName 指定要运行的存储过程. * hh * 2)TADOStoredProc组件的主要方法 ADOStoredProc1.ExecProc; ExecProc: 运行ADOStoredProc连接的存储过程 * hh * 编写应用程序利用TADOStoredProc组件和在SQL Server 2000定义的存储过程向数据库图书管理数据库中的学生表中插入新的记录。 【例8-13】 (1) 创建应用程序 【实现步骤】 (2) 定制窗口 * hh * * hh * 双击 * hh * 组件名 属 性 属 性 值 说 明 ADOConnection1 ConnectionString 使用ConnectionString设置对话框设置该属性,连接到数据库dbdemos.mdb。 ADOTable1 Connection ADOCon
原创力文档

文档评论(0)