Viewing 6 posts - 1 through 6 (of 6 total)
No, because the original goal was to insert a row in a table. Functions cannot have side-effects and that includes inserting a row in a table.
September 28, 2002 at 1:29 pm
OK, you just use the EXEC statement like that:
EXEC pMyStoredProc
If you want to use parameters or have a little error handling, your call would look more like something like that:
DECLARE...
September 9, 2002 at 12:48 pm
What you could do to avoid redundancy and improve maintainability is putting your code in a stored proc and calling that SP from your 3 triggers. That way if you...
September 6, 2002 at 11:06 pm
The code for stored procedures is stored in the syscomments system table, the following script should do the trick:
--USE YourDatabase
--GO
SELECT
o.name, c.text
FROM
syscomments c
...
September 1, 2002 at 11:40 am
Like I said in my last post, I like to order columns in a business logical order, but primarily I had 100 tables that I needed to use with replication,...
August 29, 2002 at 8:47 am
ok, guys, it's just that I needed to do add a column in the first position for like 100 tables, so I would have liked to be able to generate...
August 29, 2002 at 8:08 am
Viewing 6 posts - 1 through 6 (of 6 total)