Viewing 15 posts - 8,701 through 8,715 (of 8,733 total)
ChrisM@Work (3/24/2014)
DECLARE @pString VARCHAR(8000), @pDelimiter CHAR(1);
SELECT @pString = 'The,quick,brown,fox', @pDelimiter = ',';
WITH E1(N) AS (
...
March 24, 2014 at 5:13 am
Phil Parkin (3/24/2014)
Or maybe let SSIS do all the work by defining @@@ as a column delimiter.
touché
March 24, 2014 at 2:21 am
Same query as before with the addition of a conditional statement to format the output.
with Groups as (
select 1 as GroupId,'Oracle' as GroupName,0 as IdParentGroup union all
select 2 as GroupId,'Microsoft'...
March 24, 2014 at 1:37 am
Or in other words
with Groups as (
select 1 as GroupId,'Oracle' as GroupName,0 as IdParentGroup union all
select 2 as GroupId,'Microsoft' as GroupName,0 as IdParentGroup union all
select 3 as GroupId,'IBM' as GroupName,0...
March 23, 2014 at 11:38 pm
Recommend using Script Component in the Data flow. The split function is normally faster than anything in T-SQL and less complicated than most other options.
March 23, 2014 at 11:15 am
Better late than never :w00t:
Here is an example;
DECLARE @DTSXML XML = N'<?xml version="1.0"?>
<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
DTS:refId="Package"
DTS:CreationDate="11/7/2013 12:57:04 PM"
DTS:CreationName="SSIS.Package.3"
DTS:CreatorComputerName="USER-COMPUTER"
DTS:CreatorName="MyUserName"
DTS:DTSID="{10A38C50-3656-42E0-A054-87E8D9DFBD8A}"
DTS:ExecutableType="SSIS.Package.3"
...
March 23, 2014 at 4:11 am
A better way is to use the nodes method
http://technet.microsoft.com/en-us/library/ms188282.aspx
A good article on this: Ad-Hoc XML File Querying by Seth Delconte
https://www.simple-talk.com/content/article.aspx?article=1756
March 23, 2014 at 12:43 am
Could you provide the output of sp_help 'view', might shed some light on the problem.
March 22, 2014 at 10:51 pm
Luis Cazares (3/21/2014)
Eirikur Eiriksson (3/21/2014)
Splitting the string is somewhat like crossing the stream for a sip of water, when all that is needed is to get the...
March 21, 2014 at 2:27 pm
Hi,
the string has to be parsed / split for this to work. Quick solution;
grab the splitter function from
http://www.sqlservercentral.com/articles/Tally+Table/72993/
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'Customer' AND...
March 21, 2014 at 10:13 am
Two serious issues here,
the first is that the
@AcctType nvarchar
is only going to be one character in size;
DECLARE @getCnt int
DECLARE @AcctType nvarchar
SET @AcctType = 'ABC'
SELECT LEN(@AcctType)
CHLEN
1
The second is the...
March 21, 2014 at 9:33 am
Just a quick thought;
Splitting the string is somewhat like crossing the stream for a sip of water, when all that is needed is to get the position of the spaces/delimiters....
March 21, 2014 at 3:27 am
Got this one more or less ready, should be with you this weekend.
March 20, 2014 at 12:27 pm
Do you mean something like the nitty-gritty of a schema collection and typed xml?
March 19, 2014 at 3:37 pm
wallace.dave (3/10/2014)
How do you limit the usage?
Hi,
the usage would be restricted to running R from a desktop using ODBC connections and Windows authentication. The users can access the same data...
March 10, 2014 at 11:31 am
Viewing 15 posts - 8,701 through 8,715 (of 8,733 total)