Viewing 15 posts - 376 through 390 (of 455 total)
Hi this is not a very clean or optimized solution but should solve your problem from the requirement point of you, This is not an advised methodology to implement as...
April 17, 2004 at 7:51 am
Well you can insert the deleted data from the deleted table to the desired table, well I didnot exactly get your question though, However you may want to refer to...
April 17, 2004 at 5:46 am
Well, It is a very valid point that it is better to use dynamic SQL to bare minimum or if possible not to use at all but like in inevitable...
April 16, 2004 at 8:29 am
This gets compiled, this is exactly what David Posted but I just removed the THEN KEYWORD which was duplicated.
CREATE PROCEDURE MTDPerformance3
AS
SELECT department,
[Date],
SUM(CASE [Product] WHEN 'E-Tech' THEN...
April 15, 2004 at 4:23 am
Hi Dragon,
I could not see the error that you pasted, basically I missed a comma before holidays column in the group by clause, if you could please re post the...
April 14, 2004 at 7:48 am
Well Try This if it works
CREATE PROCEDURE MTDPerformance AS
SELECT tblInput_Output.department,
tblInput_Output.[Date],
CASE [Product]
WHEN 'E-Tech'
THEN
SUM([1st-output] + [2nd-output] + [3rd-output] + [OT-output])
else
0
END as 'E-TECH',
CASE...
April 14, 2004 at 6:33 am
What I feel is First rin the update statement statement as
update alert set text = @alertText where alertID = ( select alertid from alert where source = @source and IncidentNo...
April 9, 2004 at 7:36 am
sorry for the typing mistake
select top 10 * from sales order by [identitycolumn or Primary key or what ever the criteria] desc
Thanks
April 9, 2004 at 7:19 am
Well use select top10 * from sales order by identitycolumn desc.
Thanks
April 9, 2004 at 7:17 am
This script also does the same functionality
http://www.sqlservercentral.com/scripts/contributions/1120.asp
However Greg has pointed out that it could be done with out using a cursor with the following script
create procedure myproc...
April 9, 2004 at 7:15 am
April 9, 2004 at 6:21 am
Well this can be done using Dynamic SQL however you may want to get yourself clear if you want to go with dynamic SQL or not and it also requires...
April 8, 2004 at 10:34 am
Well COMMIT WORK and ROLLBACK WORK works similar to COMMIT TRANSACTION and ROLLBACK TRANSACTION, but if you are using multiple BEGIN TRANSACTIONS in your SP the ROLLBACK work will rollback...
April 7, 2004 at 2:31 am
Yeah the hard and fast rule for Group By is that the condition should include only database fields however you can use key words like ALL.
Thanks
April 7, 2004 at 2:20 am
Viewing 15 posts - 376 through 390 (of 455 total)