Viewing 15 posts - 1,801 through 1,815 (of 2,462 total)
DDL, more sample data and a better description make this easier but here is a possible solution...
-- (1) Sample Data
DECLARE @table TABLE (ID int, Seq char(2), [desc] varchar(50), DateOpen date,...
-- Itzik Ben-Gan 2001
January 29, 2015 at 10:28 am
You can lose one cross apply and further simplify the query like this:
SELECT
o.value('(del_Nr/text())[1]', 'VARCHAR(10)') as PONbr,
o.value('(del_Third_Nr/text())[1]', 'VARCHAR(10)') AS NCubeID,
...
-- Itzik Ben-Gan 2001
January 28, 2015 at 9:39 am
Michael Valentine Jones (1/26/2015)
Some of the third party backup tools...
-- Itzik Ben-Gan 2001
January 26, 2015 at 9:41 am
As far as 3rd party tools are concerned, SQL Backup Pro[/url] has worked well for me. It has a lot of other useful functionality in addition to compression.
-- Itzik Ben-Gan 2001
January 26, 2015 at 9:14 am
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
Viewing 15 posts - 1,801 through 1,815 (of 2,462 total)