Viewing 15 posts - 9,991 through 10,005 (of 15,381 total)
jeremy.bruker (11/26/2012)
November 26, 2012 at 8:23 am
freecoder (11/26/2012)
[TIDM] [varchar] (9) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CLIENTCODE] int NULL ,
) ON [PRIMARY]
INSERT #holding
(TIDM,CLIENTCODE)
values ('ABC',1234),
('BCD',1234),
('BCD',1234),
('LMF',1234),
('DEC',1234),
('ADE',1234),
('LGJ',1234),
('PCD',1234),
('ABC',1234)
so i want a list of clientcode who dont hold a particular...
November 26, 2012 at 8:19 am
boobalanmca07 (11/26/2012)
how to use now() function in sql server
There is not a NOW function in sql server. You can instead use SYSDATETIME() or GETDATE().
November 26, 2012 at 8:10 am
Something along these lines.
SELECT Base_State, SUM(case when type = 'PP' then 1 else 0 end) as PP,
SUM(Case when type = 'JP' then 1 else 0 end) as JP
FROM #UserMain a
left...
November 26, 2012 at 8:02 am
Glad you found a way to make it work. I had a very different idea in my head about how to do this which I think would be far simpler....
November 21, 2012 at 2:38 pm
pamozer (11/21/2012)
Actually, that might be the answer. I'll play around with it.thanks
You are welcome. Hope something in there works for you.
November 21, 2012 at 1:50 pm
Agreed.
You could maybe tweak it slightly to avoid being forced to create your alter code as dynamic sql. Just have your template generate a placeholder proc and then always alter...
November 21, 2012 at 1:28 pm
John Esraelo-498130 (11/21/2012)
That's perfectly fine if you do not have an answer.
I don't want to get an argument over this but it is not that I don't have an answer....
November 21, 2012 at 12:46 pm
Oh my bad...i think my brain has already decided to call it quits this week. You are replicating the proc. As you have likely discovered you can't quite do what...
November 21, 2012 at 12:39 pm
pamozer (11/21/2012)
If Exists(Select * from sys.objects where name='sproc')
Alter Procedure...
November 21, 2012 at 12:19 pm
John Esraelo-498130 (11/21/2012)
_JobNum_JobName _DivName _PMNames_HrsUsed_DollUsed_JobCost
12680Mission BeachKing County Johnnie ...
November 21, 2012 at 12:02 pm
Hi and welcome to SSC. It is certainly possible to do this. Unfortunately we need some more details to be able to provide much help. We need ddl (create table...
November 21, 2012 at 11:56 am
richard.noordam (11/21/2012)
November 21, 2012 at 9:25 am
briancampbellmcad (11/21/2012)
November 21, 2012 at 7:14 am
Viewing 15 posts - 9,991 through 10,005 (of 15,381 total)