Viewing 15 posts - 3,406 through 3,420 (of 7,187 total)
Raghavendra Mudugal (8/19/2014)
August 20, 2014 at 2:35 am
Steve
Yes, I was being facetious about F5! But if it's the number of rows you're worried about, it's very easy to modify my test harness. I'm sure the...
August 19, 2014 at 10:01 am
sgmunson (8/19/2014)
August 19, 2014 at 9:44 am
Eirikur Eiriksson (8/19/2014)
Quick suggestion, skip the string manipulation, use math and then format to taste.😎
Normally, I'd agree you. On this occasion, however, the string manipulation appears to beat the...
August 19, 2014 at 8:45 am
Cast as char(4), put a colon in the middle, then cast as time.
John
August 19, 2014 at 5:12 am
Chandan
It's not entirely clear what your requirement is, but if I understand correctly, I think the simplest solution is to use a CTE or add a computed column to your...
August 19, 2014 at 4:50 am
TomThomson (8/18/2014)
August 19, 2014 at 2:43 am
I recommend you investigate the reasons behind your performance issue before implementing this workaround. If you must do it, you can control the cluster from a command line -...
August 18, 2014 at 9:18 am
The important message appears to be "The device is not connected". What is your T drive - a local drive, a SAN drive, a drive with mount points, removable...
August 18, 2014 at 9:14 am
Look at the properties of the connection manager DestinationSCODatabase. What is the name of the server? What authentication mode does it use? If it uses Windows authentication,...
August 18, 2014 at 8:52 am
Prabhu
You haven't really given us enough information to help you properly. But what I would try is to list the columns in your SELECT statement instead of doing SELECT *,...
August 18, 2014 at 5:55 am
Adam
A SQL Agent job is intended to run unattended, so you can't pass parameters to it. You could create a table with date column(s) that contain the dates to...
August 15, 2014 at 9:51 am
There's all sorts of things. You're trying to use a stored procedure (OH_Message) as a function. You're trying to assign a value to a variable (@status) without a...
August 15, 2014 at 9:46 am
August 15, 2014 at 7:20 am
WITH Starts AS (
SELECT
CUSTOMERID
,TIER
,STARTDATE
,RECORDSTATUS
FROM
TEMPHISTORY
WHERE
RECORDSTATUS = 1
)
, Ends AS (
SELECT
CUSTOMERID
,TIER
,STARTDATE ENDDATE
,RECORDSTATUS
FROM
TEMPHISTORY
WHERE
RECORDSTATUS = 0
)
SELECT
s.CUSTOMERID
,s.TIER
,s.STARTDATE
,DATEADD(dd,-1,e.ENDDATE) ENDDATE
FROM
Starts s
LEFT JOIN
Ends e
ON
s.CUSTOMERID = e.CUSTOMERID AND s.TIER = e.TIER
AND
e.ENDDATE > s.STARTDATE
John
Edit: - this may not be the...
August 14, 2014 at 9:29 am
Viewing 15 posts - 3,406 through 3,420 (of 7,187 total)