|
-
Jan 31st, 2001, 09:57 AM
#1
Is there a way to dynamically create Stored Procedure in ASP page using ADO for SQL server ?
-
Jan 31st, 2001, 01:12 PM
#2
Hyperactive Member
Kindly elaborate the application wherein you want to dynamically create stored procedures?
-
Jan 31st, 2001, 02:27 PM
#3
I meant ASP page using ADO,
say,
connection.execute ("create stored procedure"),
some how to store it in server and than to be able to
execute it from ASP page
-
Feb 1st, 2001, 04:57 AM
#4
Yes, you can do this by executing straight SQL.
Try this:
connConnection.Execute("CREATE PROCEDURE spTest AS" & vbCRLF & "Select field1, field2 from myTable")
This will create a stored procedure called spNew with the following SQL in it:
Select field1, field2 from myTable
When you open the sproc in EM, it looks like this:
CREATE PROCEDURE spTestNew AS
Select field1, field2 from content
GO
You can now execute this sproc as you would execute or use any other sproc.
HtH
Imar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|