Viewing 9 posts - 1 through 10 (of 10 total)
But there are like 50 columns inside the table so I have to use Coalesce for each Column
October 6, 2011 at 1:37 pm
I am using ssis- file system task
need the query which will give me the expected result
October 5, 2011 at 2:02 pm
yeah, have to do it through cursors
September 15, 2011 at 2:56 pm
SEAN,
I have to use the cursor ,as according to the requirement, so no wayout.
September 15, 2011 at 2:40 pm
ohh my mistake , here is the query
ALTER PROCEDURE [dbo].[abc_specialty1_sp_]
@sysID bigint,
@qnxtStatus char(15),
@ReturnCode AS INT OUTPUT,
@ErrMsg nvarchar(4000)OUTPUT
AS
BEGIN TRY
BEGIN TRAN T1
SET NOCOUNT ON;
UPDATE abc_specialty_tbl
SET
code=CASE
WHEN NPVS.code IS NOT NULL
THEN...
September 15, 2011 at 2:35 pm
this the stored proc which executed by cursor
ALTER PROCEDURE [dbo].[abc_specialty1_sp_]
@sysID bigint,
@qnxtStatus char(15),
@ReturnCode AS INT OUTPUT,
@ErrMsg nvarchar(4000)OUTPUT
AS
BEGIN TRY
BEGIN TRAN T1
SET NOCOUNT ON;
UPDATE abc_specialty_tbl
SET
code=CASE
WHEN NPVS.code IS NOT NULL
THEN...
September 15, 2011 at 2:12 pm
Well, I have to call the 15 different stored proc through cursor based on conditions. This is onlt 1 of them , but all have same logic
September 15, 2011 at 2:02 pm
But i want to update only those fields which comes in as not null
September 7, 2011 at 12:34 pm
Viewing 9 posts - 1 through 10 (of 10 total)