Viewing 15 posts - 16,621 through 16,635 (of 26,484 total)
I think it's time for trip to the desert. Anyone care to join me? I'll put the hippo on a leash. 😛
March 9, 2010 at 1:02 pm
arun.prakash (3/9/2010)
_Addwhen - format is 20100303 9:41:3000
Normalized_Add_When - format should be format is 20100303 9:45 (after I run my stored procedure)
The other...
March 9, 2010 at 12:52 pm
Well, your insert statement isn't working on my server.
March 9, 2010 at 12:29 pm
Also, what column should be updated and what should it look like when completed?
March 9, 2010 at 12:24 pm
Did you test the code you posted on your system. Things don't look right once I reformat the code.
March 9, 2010 at 12:23 pm
arun.prakash (3/9/2010)
here is my set statement :
declare @ sql nvarchar(500)
set @sql='update XXNkk_Fact_PnLSummary1 set [' + @colname...
March 9, 2010 at 12:10 pm
GilaMonster (3/9/2010)
March 9, 2010 at 12:04 pm
Does the following code help you?
declare @TestTime datetime;
set @TestTime = convert(datetime, '0:14:00', 108);
select @TestTime, dateadd(ss,((datediff(ss, dateadd(dd, datediff(dd, 0, @TestTime), 0), @TestTime) + 450) / 900) * 900, dateadd(dd,datediff(dd, 0, @TestTime),...
March 9, 2010 at 11:57 am
Could you please define your rounding rulles? When to round up and when to round down.
March 9, 2010 at 11:37 am
Can't answer your question about sp_send_cdosysmail, but I would suggest looking at Database Mail.
March 9, 2010 at 11:29 am
I'd need to review the code again to be sure, but if the query is returning the appropriate data, then you should have it right.
March 9, 2010 at 11:24 am
Simple answer, yes. The only system database you can't backup is tempdb, which makes sense as it is recreated every time you restart SQL Server.
As to frequency, that would...
March 9, 2010 at 11:21 am
sturner (3/9/2010)
Jeff Moden (3/5/2010)
sturner (3/4/2010)
try this:Select* from mytable
WHERE functionDate > CONVERT(char(10),getdate(),101)
that assumes all times are 00:00:00
It also causes a costly implicit conversion. Use the method that Lutz posted instead.
Not...
March 9, 2010 at 11:17 am
lmu92 (3/9/2010)
Lynn Pettis (3/9/2010)
lmu92 (3/9/2010)
So, please follow Lynns advice and change the join fom INNER to LEFT OUTER.
I think you want a RIGHT OUTER JOIN the way the query is...
March 9, 2010 at 11:05 am
Can you tell us the versions of both the server and SQL? Is one 64-bit and the other 32-bit?
March 9, 2010 at 10:46 am
Viewing 15 posts - 16,621 through 16,635 (of 26,484 total)