Viewing 15 posts - 406 through 420 (of 898 total)
One way could be to use an INSTEAD OF trigger
The below mentioned link could be of help to you
http://msdn.microsoft.com/en-us/library/ms175521%28v=sql.105%29.aspx
November 13, 2012 at 11:33 pm
CELKO (11/6/2012)
November 7, 2012 at 1:50 am
vs.satheesh (11/6/2012)
Table Name:SalaryDetail
id name salary
1 arun ...
November 7, 2012 at 1:46 am
muthukrishnan.e (11/2/2012)
SELECT @r = ISNULL(@r+'/', '')
+ t2.col4 + ' - ' + 'Rs. '...
November 2, 2012 at 5:48 am
Probably something like this..
UPDATE#temp_ticket
SETclub_group_joined = CASE
WHEN club_group_id_col = @lClub_group_joined_test
THEN STRING(club_group_id_col, ',', CONVERT(date, club_group_joined_datetime))
ELSE NULL
END
WHEREclub_group_joined_datetime IS NOT NULL
November 2, 2012 at 5:44 am
After a unique clustered index is created on the view, the view's result set is materialized immediately and persisted in physical storage in the database, saving the overhead of performing...
October 23, 2012 at 5:41 am
Good QOTD.
This will clear quite a few misconceptions people have about Table Variables.
October 19, 2012 at 12:56 am
patelmohamad (10/17/2012)
Kingston Dhasian (10/17/2012)
You can insert the results from a Stored Procedure into a temporary table and work on the temporary...
October 17, 2012 at 12:27 am
No. You cannot use a Stored Procedure like a UDF.
You can insert the results from a Stored Procedure into a temporary table and work on the temporary table further.
October 17, 2012 at 12:17 am
phamm (10/15/2012)
October 16, 2012 at 1:12 am
Well, nobody can help with this limited amount of information
Please describe your issue and give us some sample data and the expected results as per your sample data
It would be...
October 16, 2012 at 12:51 am
You can use a Modulo operator to remove the hard coding of values
DELETEtemp
FROM(
SELECTROW_NUMBER() OVER(PARTITION BY x.cStudentId,x.dtEnrollmentDate ORDER BY dtEnrollmentDate asc ) AS DSeq, x.*
FROM#temp1 x
) temp
WHERE ( DSeq % 5...
October 9, 2012 at 1:41 am
kapil190588 (10/2/2012)
can anyone explain me why select len(@a) as 'declared' gives output as 1
The answer to this is available in the explanation to the question( also shown below )
When n...
October 3, 2012 at 12:47 am
Viewing 15 posts - 406 through 420 (of 898 total)