Viewing 9 posts - 1 through 9 (of 9 total)
Thanks, this is what I was looking for 🙂 I do realize that every row/column will affected but I will be building other CASE statement for when Cpay_Stop IS NOT...
August 11, 2010 at 3:04 pm
Thanks David, I agree with you that the WHERE clause will right away update correctly the row. I am trying to use the CASE statement with out he Where Clause,...
August 11, 2010 at 10:47 am
I try based on your script updating a single entry that has NULL using CASE to get a better understanding but I ran into another error. Here is the code...
August 11, 2010 at 10:21 am
Thanks Celko, I will work with your suggestions and let you know
August 10, 2010 at 7:41 am
Thanks Duncan, I did try your code but did not manage the the nulls correctly, I will tinker with it further.;-)
August 10, 2010 at 7:37 am
Thanks, I am trying to determinate the right syntax to execute the code but with out a good example I am trashing around.;-)
August 10, 2010 at 7:35 am
Thanks but....
Under normal conditions that will be the case but there are different programs acting on the same table with one having to be a bit and the other string.
April 27, 2010 at 3:51 pm
You were right there was a couple of typos(the usal gotcho!).
I there a way of doing the update only to the new row and every row?
April 27, 2010 at 2:51 pm
Lynn - Here is the code, I did underscore the two items involved
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tbl_clPDB](
[clPDB_ID] [int] IDENTITY(1,1) NOT NULL,
[clPDB_DOE] [datetime] NOT NULL CONSTRAINT [DF_tbl_clPDB_clPDB_DOE]...
April 27, 2010 at 2:33 pm
Viewing 9 posts - 1 through 9 (of 9 total)