Viewing 15 posts - 736 through 750 (of 2,462 total)
For this you would use GROUP BY.
-- Itzik Ben-Gan 2001
May 10, 2016 at 5:11 pm
I can't see why not.
-- Itzik Ben-Gan 2001
May 10, 2016 at 1:54 pm
squvi.87 (5/9/2016)
Hi There,I require to convert single xml into multiple rows, as explained below
Thanks in advance
In the future try to include the actual XML (or table data) instead of a...
-- Itzik Ben-Gan 2001
May 10, 2016 at 9:47 am
calvo (5/9/2016)
Alan.B (5/5/2016)
-- Itzik Ben-Gan 2001
May 10, 2016 at 9:06 am
The way I troubleshoot this kind of thing is to run each section of the query individually until I get the error that is being returned when I run the...
-- Itzik Ben-Gan 2001
May 10, 2016 at 8:51 am
drew.allen (5/9/2016)
This is not valid xml, because there is no single root element. In fact, you have text that is not contained in an element at all.Drew
It's not a...
-- Itzik Ben-Gan 2001
May 9, 2016 at 11:58 am
This should do the trick. This solution uses delimitedsplit8K which is referenced in my signature. Note my comments.
USE tempdb
GO
-- ingest the text as varchar(8000) or varchar(max) is you might receive...
-- Itzik Ben-Gan 2001
May 9, 2016 at 10:47 am
TFS perhaps.
-- Itzik Ben-Gan 2001
May 8, 2016 at 9:13 pm
Try resetting the password and try again or check the username spelling.A bad username or password or the only reasons Ice ever seen that error. You could also try a...
-- Itzik Ben-Gan 2001
May 6, 2016 at 7:07 pm
jollyegeorge (5/6/2016)
I get error for 'Invalid object name 'dbo.DelimitedSplit8K'Yes it does, all the summary line has these bold values.
DelimitedSplit8K is not built in, you need to create it. For...
-- Itzik Ben-Gan 2001
May 6, 2016 at 7:01 pm
SilverBack (4/22/2016)
I can not get results they just come back blank. Any ideas by...
-- Itzik Ben-Gan 2001
May 6, 2016 at 6:45 pm
ffarouqi (5/5/2016)
Alan.B (5/4/2016)
First, the message is pretty clear. The SSIS package is failing because the login for SA, inside at least one of your SSIS connection...
-- Itzik Ben-Gan 2001
May 5, 2016 at 9:16 pm
There's the old joke, "guy goes to the doctor and says, 'Doc, it hurts when I do this...' so the doctor says, 'don't do that'."
I digress, can you post the...
-- Itzik Ben-Gan 2001
May 5, 2016 at 8:18 pm
Here's a fun solution that uses all three T-SQL set operators.
DECLARE @table1 TABLE (col1 char(3) unique);
DECLARE @table2 TABLE (col1 char(3) unique);
INSERT @table1 VALUES ('a 1'), ('b 2'), ('c 4');
INSERT @table2...
-- Itzik Ben-Gan 2001
May 5, 2016 at 8:14 pm
This solution assumes that your sequences are always going to be 6 characters long...
Taking Luis' brilliant solution and turning it into a scalar UDF like this:
CREATE FUNCTION dbo.SeqRank (@number CHAR(6))
RETURNS...
-- Itzik Ben-Gan 2001
May 5, 2016 at 7:50 pm
Viewing 15 posts - 736 through 750 (of 2,462 total)