Viewing 15 posts - 3,916 through 3,930 (of 4,820 total)
You created the problem when you changed the CAST to datetime from date. It was cast as date because you really don't want to capture time of day...
May 29, 2014 at 1:22 pm
Might be another "learning opportunity", but I have to mention the following segment of the code:
WHERE (dbo.TCDaily.Kind <> 'A02') OR (dbo.TCDaily.Kind <> 'J02') OR (dbo.TCDaily.Kind <> 'J04') OR (dbo.TCDaily.Kind <>...
May 29, 2014 at 1:04 pm
There isn't always a "best" or "right" way to do a given thing. Take a look at the following:
DROP TABLE #tblLeaders
DROP TABLE #tblMembers
CREATE TABLE #tblLeaders (
LeaderID int,
Leader varchar(50)
);
INSERT...
May 29, 2014 at 12:55 pm
There is no direct mapping for a field defined as DECIMAL(65,2). As I indicated previously, there's just no way for SQL Server 2008 to support 65 decimal digits...
May 29, 2014 at 12:39 pm
Just curious if you've tried my code... Let me know...
May 29, 2014 at 12:35 pm
SQL Server 2008 only supports up to 38 decimal digits, so I can't imagine there's any practical way to support 65. However, if you know that the values...
May 29, 2014 at 12:26 pm
This should be posted in the 2012 forum, not the 2008 one.
May 29, 2014 at 12:02 pm
Here's a dynamic pivot for you... albeit with nulls instead of blanks, but given that you're having numbers in the columns without blanks, nulls seem more appropriate, and it's less...
May 29, 2014 at 11:28 am
Without considerably more detail, it would be hard to know where to look. However, I'd look at the query behind the dataset in question, and be sure to...
May 29, 2014 at 10:39 am
Sean Lange (5/28/2014)
sgmunson (5/28/2014)
It's even simpler:
DECLARE @dteTo AS date = GETDATE();
There's no need for a CAST or a CONVERT, as implicit conversion works just fine for this purpose.
Is there an...
May 28, 2014 at 2:31 pm
It's even simpler:
DECLARE @dteTo AS date = GETDATE();
There's no need for a CAST or a CONVERT, as implicit conversion works just fine for this purpose.
May 28, 2014 at 2:08 pm
I'm going to go with a literal interpretation of the original poster's written words:
that he/she wants records that don't appear in BOTH of the previous year queries.
Here's my shot:
;WITH PRIOR_YEAR_DATA...
May 28, 2014 at 2:04 pm
That's quite detailed, and I'm sure it could be pursued, but the effort level at this point is somewhat high, and given that I'm already up against a deadline, there's...
February 27, 2014 at 5:08 am
It's already been tested. Against a measly million rows. It's a decryption function that is already CLR. It took far too long to be the...
February 26, 2014 at 8:00 pm
Hmmm.... that's disappointing news. We would find it impractical to build a web-service for something with such low volume, and making the assembly UNSAFE isn't going...
February 26, 2014 at 5:53 pm
Viewing 15 posts - 3,916 through 3,930 (of 4,820 total)