Viewing 15 posts - 2,536 through 2,550 (of 4,087 total)
It sounds like this would help: Cross Tabs and Pivots, Part 1 – Converting Rows to Columns[/url].
Drew
July 11, 2016 at 2:42 pm
HappyGeek (7/11/2016)
drew.allen (7/11/2016)
Since all records within a partition necessarily have the same value for each field in the PARTITION BY clause, there is no reason to include any of those...
July 11, 2016 at 2:33 pm
HappyGeek (7/11/2016)
July 11, 2016 at 1:06 pm
The two are equivalent and any XML parser should be able to handle either of them, so why "must" it be in the form "<tag></tag>"? In fact, "<tag/>" is...
July 8, 2016 at 8:20 am
Sergiy (7/7/2016)
drew.allen (7/7/2016)
Sergiy (7/6/2016)
It's actually another way around - it's you who did not provide any rationale for using CAST rather than CONVERT in any cases.
Actually, I did provide my...
July 7, 2016 at 4:07 pm
The Dixie Flatline (7/7/2016)
July 7, 2016 at 3:12 pm
The Dixie Flatline (7/7/2016)
drew.allen (7/7/2016)
If you change your INSERT to a MERGE, then you can just OUTPUT the original GUID. Of course, the MERGE introduces it's own problems.Drew
I'm not...
July 7, 2016 at 12:16 pm
If you change your INSERT to a MERGE, then you can just OUTPUT the original GUID. Of course, the MERGE introduces it's own problems.
Drew
July 7, 2016 at 10:46 am
Part of the problem is that you are conflating table properties with row properties. When you are using sys.tables and sys.columns, you are looking at table properties, but when...
July 7, 2016 at 9:33 am
Sergiy (7/6/2016)
It's actually another way around - it's you who did not provide any rationale for using CAST rather than CONVERT in any cases.
Actually, I did provide my rationale, but...
July 7, 2016 at 8:02 am
My fourth was busy. There was the Fun Badge Tour (dancing at various tourist attractions: the Gay Village, The Royal Ontario Museum, Toronto City Hall, Younge-Dundas Square, and Sugar...
July 6, 2016 at 2:58 pm
jasona.work (6/30/2016)
July 6, 2016 at 12:32 pm
That's the way JOINs work. You get a record for every match; so if each of four records matches two records, you will get eight records. If you...
July 6, 2016 at 12:15 pm
Sergiy (6/29/2016)
drew.allen (6/29/2016)
Sergiy (6/28/2016)
Your problem is here:
' where RequestDate >= ''' + CAST(@RequestDate as nvarchar(23)) + ''''1. Never use CAST is SQL, especially for date-time related data types.
I disagree....
July 6, 2016 at 10:50 am
Sergiy (6/28/2016)
Your problem is here:
' where RequestDate >= ''' + CAST(@RequestDate as nvarchar(23)) + ''''1. Never use CAST is SQL, especially for date-time related data types.
I disagree. CAST...
June 29, 2016 at 8:36 am
Viewing 15 posts - 2,536 through 2,550 (of 4,087 total)