maheshmehta
IS-IT--Management
I wrote a simple Stored Proc.
Its working fine if i am working throgh command object
But if i am using simple
Conn.Execute "Exec proc_name 'paramters'"
it throughs me error
"Operation not allowed if object is closed"
The proc is like
CREATE PROCEDURE Just_Try @fieldname varchar(50), @username varchar(50)
AS
Insert into users (user_name) values('mahesh')
Select userid from users
GO
Now if i remove the Insert statement it works fine
Any help Please
Mahesh
Its working fine if i am working throgh command object
But if i am using simple
Conn.Execute "Exec proc_name 'paramters'"
it throughs me error
"Operation not allowed if object is closed"
The proc is like
CREATE PROCEDURE Just_Try @fieldname varchar(50), @username varchar(50)
AS
Insert into users (user_name) values('mahesh')
Select userid from users
GO
Now if i remove the Insert statement it works fine
Any help Please
Mahesh