Viewing 5 posts - 1 through 5 (of 5 total)
CREATE PROCEDURE USP_PROC_XXXX
(
@v_Order_No VARCHAR(5)
)
AS
BEGIN
set nocount on
set Transaction Isolation Level Serializable
UPDATE OrdMain
SET
ListTotal = A.SumOfListItem
FROM
(SELECT Order_ID,SUM(ListEach) AS SumOfListItem
FROM OrdItem
GROUP BY Order_ID)
AS A
WHERE OrdMain.Order_ID = A.Order_ID
-- AND OrdMain.Order_Num =...
April 27, 2006 at 3:27 am
I dont think for = there will be any problem.
DECLARE @C CHAR(1)
SET @C = '='
SELECT 1 as TAG,
NULL as PARENT,
@C as [RESPONSE!1!SAMPLE!ELEMENT]
FOR XML EXPLICIT
Also for other characters we...
April 27, 2006 at 2:22 am
Dear Sergiy
Thanks and it was a great help.I thaught of cursors because of the processes involved before Inserting to the first...
January 25, 2006 at 5:54 pm
Sorry that I cross posted the doubt
June 28, 2005 at 12:38 am
Sorry for posting the query in the below link its written that : In the present SQL Server 2000 world if we were to take the output of a FOR XML...
June 27, 2005 at 11:01 pm
Viewing 5 posts - 1 through 5 (of 5 total)