L
louqing_2
Unregistered / Unconfirmed
GUEST, unregistred user!
怎么用ADOQUERY来建立存取过程,能与查询分析器一样?
如我有存取过程:
if exists (SELECT id FROM sysobjects
WHERE (id = OBJECT_ID(N'Myp2')) AND (OBJECTPROPERTY(id, N'IsProcedure') = 1))
drop PROCEDURE Myp2
go
CREATE PROCEDURE Myp2;1
@v_rkey int
with encryption
AS
begin
.....
end
go
CREATE PROCEDURE Myp2;2
@v_rkey int
with encryption
AS
begin
.....
end
go
.....
我用如下的:
s := ////上面的SQL
...
dm.ADOQALL2.sql.text := s ;
...
dm.ADOQALL2.execsql; //运行时报错,我要怎么做?
如我有存取过程:
if exists (SELECT id FROM sysobjects
WHERE (id = OBJECT_ID(N'Myp2')) AND (OBJECTPROPERTY(id, N'IsProcedure') = 1))
drop PROCEDURE Myp2
go
CREATE PROCEDURE Myp2;1
@v_rkey int
with encryption
AS
begin
.....
end
go
CREATE PROCEDURE Myp2;2
@v_rkey int
with encryption
AS
begin
.....
end
go
.....
我用如下的:
s := ////上面的SQL
...
dm.ADOQALL2.sql.text := s ;
...
dm.ADOQALL2.execsql; //运行时报错,我要怎么做?