Viewing 15 posts - 1 through 15 (of 463 total)
I guess Paul is asking where is the problem?
---------------------------------------------------------------------------------
April 28, 2010 at 12:57 pm
I guess your SP needs a bit more work than that, would this help?
--Create the procedure
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[sp_GetMessageCount]
-- Add the parameters for the stored...
---------------------------------------------------------------------------------
April 25, 2010 at 7:04 am
Jeff Moden (4/19/2010)
Nabha (4/18/2010)
Yes, sorry, completely off the track. I dint know about timestamp clearly. And it looks like its down to 'seconds' that you are suggesting. Thanks Jeff.
No problem....
---------------------------------------------------------------------------------
April 19, 2010 at 11:05 am
Kris-155042 (4/18/2010)
Sorry to be such a pain but...
---------------------------------------------------------------------------------
April 18, 2010 at 11:35 pm
Jeff Moden (4/18/2010)
Nabha (4/15/2010)
---------------------------------------------------------------------------------
April 18, 2010 at 11:26 pm
I am not completely sure 'bout using timestamp in my solution as my understanding of 'timestamp' on SS2K5 looks wrong. But you have also not mentioned 'how' you are storing...
---------------------------------------------------------------------------------
April 18, 2010 at 10:07 pm
I am guessing,
wo.COMPLETEDTIME >= Convert(bigint, convert(timestamp, getdate()))
and ofcourse
wo.COMPLETEDTIME < Convert(bigint, convert(timestamp, getdate() + 1))
---------------------------------------------------------------------------------
April 15, 2010 at 4:15 am
Have a read for a comprehensive one! 🙂
http://www.sqlservercentral.com/Forums/Topic899000-338-1.aspx
---------------------------------------------------------------------------------
April 15, 2010 at 3:21 am
DECLARE @String VARCHAR(8000)
SET @String = '======Heading========== some phrase
===============bottom line==============';
SELECT LTRIM(RTRIM(Replace(Replace(replace
...
---------------------------------------------------------------------------------
April 5, 2010 at 5:24 am
Paul White NZ (4/1/2010)
If there are points available for being obscure...
SELECT {fn CURRENT_DATE()};
:w00t: huh? :hehe: (ODBC yeah?)
---------------------------------------------------------------------------------
April 3, 2010 at 11:57 am
Precisely as Graham says, its while building the d-SQL that you are having problems.
---------------------------------------------------------------------------------
March 26, 2010 at 1:52 pm
Can we see the schema of this table please?
ACCRUAL_SRP.dbo.MEI_AUTOMATION_GOAL
---------------------------------------------------------------------------------
March 26, 2010 at 9:50 am
Jus (3/25/2010)
Thats really cool..thanks a lot Nabha..
thanks and u r welcome.
ColdCoffee
Good code Nabha.. winner...
Thanks mate.:-)
---------------------------------------------------------------------------------
March 26, 2010 at 2:46 am
The Dixie Flatline (3/25/2010)
Nabha, that looks like a winner to me.
Thank you 🙂
---------------------------------------------------------------------------------
March 25, 2010 at 11:08 am
How about this?
;With CTE as
(Select *, Row_number() OVER (partition by id order by value) as row_no
FROM #rowtrans)
Select ID,
max(CASe when Row_no = 1 THEN value ELSE ''...
---------------------------------------------------------------------------------
March 25, 2010 at 10:02 am
Viewing 15 posts - 1 through 15 (of 463 total)