Viewing 15 posts - 286 through 300 (of 542 total)
Jeff Moden (3/29/2012)
Eugene Elutin (3/29/2012)
What I can say, crap data structure design quickly leads to crap and stupid coding you need to do to achieve...
March 29, 2012 at 7:05 am
Eugene Elutin (3/29/2012)
What I can say, crap data structure design quickly leads to crap and stupid coding you need to do to achieve something good!...
March 29, 2012 at 5:58 am
Anders Pedersen (3/28/2012)
Just sum on the converted to minute columns however you want it summed, then add the values together.
I guess what you really want here...
March 29, 2012 at 3:16 am
Anders Pedersen (3/28/2012)
create function dbo.fcn_ConvertTimeToMinutes(@Time Time)
returns int
begin
declare @r int;
select @r = substring(CONVERT(varchar(5), @Time), 1,2)...
March 28, 2012 at 9:47 am
dwain.c (3/27/2012)
Try this and see if it helps get you past it.DECLARE @Year [nvarchar](4000)
--SET NOCOUNT ON
--SET ANSI_WARNINGS Off
If that works you can uncomment the two SET statements.
I am not able...
March 28, 2012 at 2:49 am
dwain.c (3/27/2012)
ALTER PROCEDURE [dbo].[timelord_year]
@Year [nvarchar](4000)
SET NOCOUNT ON
SET ANSI_WARNINGS Off
;WITH
cteToDateTime(DT)...
March 27, 2012 at 4:39 am
Paul,
For future posts, please see the article at the first link in my signature line below. It'll help us help you more quickly.
First, we need some test data. ...
March 27, 2012 at 2:09 am
bitbucket-25253 (3/26/2012)
Thanks for your reply....However, I have to create a new column based on this calculation and use that in a report. Your code is correct but...
March 26, 2012 at 10:06 am
Could someone please have a look at my query, I am stuck with this one for a long time now...
I have a column 'WeekHours' which has a datatype varchar and...
March 26, 2012 at 8:18 am
bitbucket-25253 (3/23/2012)
SET @min-2 = CAST(SUBSTRING(@H1,CHARINDEX(':',@H1)+1,DATALENGTH(@H1))AS INT)+CAST(SUBSTRING(@H2,CHARINDEX(':',@H2)+1,DATALENGTH(@H2))AS INT)
INSERT INTO NewColumn -- Inserted...
March 26, 2012 at 2:27 am
bitbucket-25253 (3/23/2012)
March 23, 2012 at 10:14 am
bitbucket-25253 (3/23/2012)
Looking for a better method to...
March 23, 2012 at 7:08 am
GilaMonster (2/15/2012)
Duplicate post. No replies to this thread please. Direct replies to:http://www.sqlservercentral.com/Forums/Topic1252335-391-1.aspx
This is not a duplicate post....its an altogether different query. Read the post Properly first before writing any comments.
If...
February 15, 2012 at 4:43 am
guruprasad1987 (2/15/2012)
Hi Paul ,You need to display the result 147 as 147:00:00 or 2:45:00
Thanks for your reply. I want it to display as 147:00:00...as the value is returned in hours.
February 15, 2012 at 3:56 am
bitbucket-25253 (2/6/2012)
Once you have eliminated the commas then use
DECLARE @Res VARCHAR(10)
SET @Res = 'KNL RTM'
SELECT REPLACE(@Res,' ','')
Result:
KNLRTM
Thanks Ron,
But the thing is I dont wish to join the values, instead I...
February 6, 2012 at 8:25 am
Viewing 15 posts - 286 through 300 (of 542 total)