Viewing 8 posts - 1 through 8 (of 8 total)
1.
Insert all the row into one temporary table as mentione abone in another post.
should keep the identity column in the #T table
2. Now start a while...
Thanks.
Reji PR,
Bangalore
😀
July 15, 2012 at 11:11 am
Hi,
why don't you use a while loop here?.
select @maxrow = max(id) from #T
SET @row = 1
While (@row < @maxrow )
Begin
select x, y,... form...
Thanks.
Reji PR,
Bangalore
😀
July 14, 2012 at 11:01 am
I am not understanding, why you are using dynamic sql string?
If My understanding is correct, you need to set the arguments in the where clause based on the parameter value....
Thanks.
Reji PR,
Bangalore
😀
January 11, 2011 at 11:27 am
BEGIN TRY
-- Some code
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
...
Thanks.
Reji PR,
Bangalore
😀
January 9, 2011 at 11:47 am
Thanks for the question.
The default value for the @date1 is NULL.
Please see below proof. If I am commenting the 'set statement, I am getting @date1 as NULL.
declare @date1 smalldatetime
--set...
Thanks.
Reji PR,
Bangalore
😀
January 4, 2011 at 11:21 am
Good question. Really appreciating. It giving importance to Union , Truncate in Transaction.
🙂
The IN operator used in the query is very nice. Thanks.
Thank You.
Reji P R
Hyderabad
Thanks.
Reji PR,
Bangalore
😀
January 4, 2011 at 10:56 am
Viewing 8 posts - 1 through 8 (of 8 total)