Viewing 15 posts - 1,801 through 1,815 (of 2,458 total)
Option 2
I was making the assumption that "AND"/"OR" values were not in their own column. If I was wrong, here's another option:
WITH
x AS
(
SELECTyt1.c1,
yt1.c2,
yt1.c3,
yt1.c4,
xx =...
-- Itzik Ben-Gan 2001
January 26, 2015 at 8:40 am
Sample DDL is always helpful; I put some together for your this time. I think you are looking for something like this:
-- (1) Sample DDL and Sample data
DECLARE @yourtable TABLE...
-- Itzik Ben-Gan 2001
January 26, 2015 at 8:28 am
Just a quick performance note; when returning a text value from XML, you should specify the text() node for better performance.
For example, this:
[extendedinfo].value('(/ExtendedInfo/Fragmentation)[1]', 'DECIMAL(4,1)') )+'%' AS 'extendedinfo'
should be this:
[extendedinfo].value('(/ExtendedInfo/Fragmentation/text())[1]',...
-- Itzik Ben-Gan 2001
January 23, 2015 at 2:44 pm
No prob. Glad to help!
-- Itzik Ben-Gan 2001
January 23, 2015 at 2:22 pm
I believe the answer is in the article you posted. under Security Considerations it reads (emphasis mine),
...A login using SQL Server authentication cannot be authenticated outside of the Database Engine....
-- Itzik Ben-Gan 2001
January 23, 2015 at 2:19 pm
First you click anywhere on the new tablix. When you do that there is a grey outline, right-click on the top left-hand corner...

Next, click on the Tablix Properties option. Provided...
-- Itzik Ben-Gan 2001
January 23, 2015 at 12:58 pm
TheSQLGuru (1/22/2015)
pkapas (1/22/2015)
-- Itzik Ben-Gan 2001
January 22, 2015 at 2:57 pm
I am working on a project where we are using asp.net mvc. This may be an option as well. Take a look at:
http://www.codemag.com/Article/1009061
-- Itzik Ben-Gan 2001
January 22, 2015 at 10:41 am
The book that Koen mentioned is my favorite t-sql book and I second his recommendation. Anything by Ben-Gan is worth it's weight in gold Imho. I have not taken the...
-- Itzik Ben-Gan 2001
January 22, 2015 at 10:23 am
Take a look at make_parallel() by Adam Mechanic. I have had a lot of success with it and may be helpful in this situation.
http://sqlblog.com/blogs/adam_machanic/archive/2013/07/11/next-level-parallel-plan-porcing.aspx
-- Itzik Ben-Gan 2001
January 22, 2015 at 9:20 am
Great article! I would add one more thing... Redgate go to Redgate SQL In the City:-P.
-- Itzik Ben-Gan 2001
January 2, 2015 at 12:47 am
Koen Verbeeck (8/5/2013)
Great overview. I'll refer to this post every time someone asks for free training 😀
Ditto that. Me too!
-- Itzik Ben-Gan 2001
January 2, 2015 at 12:42 am
taylor_benjamin (12/29/2014)
SQL is not HTML
HTML is not SQL
I can't believe nobody else has raised a warning flag on...
-- Itzik Ben-Gan 2001
December 29, 2014 at 7:02 pm
Sorry if I am repeating what anyone else said - I have not had a chance to read through all the comments. Here's my 2 cents:
Normalize the data as it...
-- Itzik Ben-Gan 2001
December 29, 2014 at 10:01 am
Great article. We'll done sir!
I do, however, disagree a little with this line (emph. mine)...
But HTML is often not well-formed XML. Some tags are "singleton" tags--that do not require end...
-- Itzik Ben-Gan 2001
December 28, 2014 at 12:10 am
Viewing 15 posts - 1,801 through 1,815 (of 2,458 total)