Sorry, been at meetings all day.
My thoughts on this are as follows.
The only way I can see of doing this is to make use of the isql command line utility by shelling out within a stored procedure using xp_cmdshell as follows:
CREATE PROC palmproc
AS
EXEC master..xp_cmdshell 'isql /U /P /e /n...
Does this work
delete d
from salesdetailretail d
join salesheaderretail h
on h.storenumber = d.storenumber and
h.controller = d.controller and
h.register# = d.registernum and
h.transaction# = d.transactionnum and
h.transactiondate = d.transactiondate...
The following code although very simplistic shows the general principles of creating a stored procedure within a stored procedure.
create procedure pproc
as
declare @cmd varchar (500)
select @cmd =
'create procedure newproc as select * from information_schema.columns'
exec (@cmd)
go
Hope...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.