Viewing 15 posts - 2,146 through 2,160 (of 4,085 total)
Have you tried adding a ROOT directive? That seems to remove most of the xmlns prefixes, but it may not give you the structure that you need.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 25, 2016 at 11:07 am
The xlmns is being included because you've specified the XSINIL directive. If you don't want it included, you'll have to get rid of the XSINIL directive.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 25, 2016 at 7:48 am
RonMexico (11/23/2016)
The example I provided is code for a report we are taking over from another group. The first goal is to convert it to ANSI-92 style joins...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 23, 2016 at 12:38 pm
As a quick test, I decided to compare doing a direct T-SQL CAST versus using XML to do the CAST. Also, the XML is essentially doing a double cast:...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 23, 2016 at 11:42 am
I have to ask WHY are you doing your conversions through XML?
The problem is that column Y is in scientific notation, and the xml does not recognize scientific notation as...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 23, 2016 at 11:08 am
ETL is a process, not a tool. You'll need to let us know what tool you are using for your ETL process.
SELECT *
INTO TableName
FROM SourceTable
uses the same data types...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 22, 2016 at 3:49 pm
sharonmtowler (11/21/2016)
THIS WORKED LIKE A CHARM !!
It may have "worked" but it is likely to perform horribly. You should compare it to LEAD/LAG before settling on that as the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 21, 2016 at 12:31 pm
CELKO (11/21/2016)
Also the code you posted implies that you have bit flags in SQL. That was assembly language and has no place in this language.
This language is T-SQL, not...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 21, 2016 at 11:30 am
There are three issues that I see immediately.
1) In your CTE, you do not provide an alias for the ROW_NUMBER() expression.
2) You should be using LEAD/LAG instead of ROW_NUMBER() with...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 21, 2016 at 8:54 am
He didn't like the answers he got on his original thread, so he started another thread. I pointed out repeatedly that he already had the answer he was seeking...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 17, 2016 at 4:29 pm
The following two expressions are essentially equivalent.
COALESCE (ISNULL(k.Application, ''), ISNULL(n.Application, ''))
ISNULL(k.Application, '')
COALESCE evaluates the expressions in order until it finds one that is not null or it runs out of...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 17, 2016 at 2:40 pm
Reported as spam.
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 17, 2016 at 12:10 pm
John Mitchell-245523 (11/17/2016)
2. Same as 1.
3. This is a correlated subquery. I'm not sure what your...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
November 17, 2016 at 9:45 am
Viewing 15 posts - 2,146 through 2,160 (of 4,085 total)