Viewing 15 posts - 4,936 through 4,950 (of 5,103 total)
CREATE PROCEDURE Test2 -- Modify Temp Values
AS
UPDATE #t Set x = 2
SELECT Test2Col = x FROM #t
GO
CREATE PROCEDURE Test1
AS
CREATE TABLE #t(x INT )
INSERT INTO #t VALUES...
December 9, 2003 at 10:02 am
sure!
IN BOL:
quote:
...A local temporary table created in a stored procedure is dropped automatically when the stored procedure completes. The...
December 9, 2003 at 9:46 am
besides keith suggestion make sure Col2 with Col3 have no duplicates because then you may get ramdom Col1 values!!
December 9, 2003 at 9:21 am
December 9, 2003 at 9:03 am
Part I
Yes
Part II
You will have to change the strategy a little bit because Doing all the processing inside the trigger will be a little painful performance wise
This is...
December 9, 2003 at 7:26 am
This is a tricky question because the answer is very dependent on the application.
When you have large hierarchies and it is a controlled environment (security is well defined) the...
December 9, 2003 at 6:45 am
From My suggestion you will have to modify a little the stored procedures as:
ALTER PROCEDURE Proc1 (@var1 ....
DECLARE @TrackValue varbinary(128)
SET @TrackValue = CAST( @@PROCID as binary(4) )
SET CONTEXT_INFO...
December 8, 2003 at 3:32 pm
Unfortunatly The ExcecutionResult Step Property is Read only.
To bypass that behaviour you could handle errors through VB or use an activeX Script task...
December 8, 2003 at 1:46 pm
This Example Illustrates pretty much ALL you need. The only thing missing maybe the sp_OAGetProperty method but once you read the article its VERY easy to get that functionality...
December 8, 2003 at 12:18 pm
Besides Antares686 constraint which will guarantee data quality, you could write your procedure as
insert into Table_Name VALUES (@id,@value1)
Where Table_ID <> @ID
IF @@ROWCOUNT = 0
Return = - 1 --insert...
December 8, 2003 at 10:10 am
Be careful though, if this is not tested well enough it can become security vulnerability.
HTH
December 8, 2003 at 9:45 am
Guys,
I really appreciate ALL your posting on this thread. I have learn a lot here. Hardware has allways been my WEAKEST point (never had the opportunity to work for...
December 8, 2003 at 8:40 am
This is a very tricky question my answer is test, test and test.
There are "some" cases where the cursor in the winner
December 6, 2003 at 12:58 pm
quote:
Your two "answers" seem to be for a different question from that asked by Minh.
December 6, 2003 at 9:40 am
Viewing 15 posts - 4,936 through 4,950 (of 5,103 total)