Viewing 15 posts - 8,716 through 8,730 (of 8,753 total)
Looks like JM's seal of approval, which doesn't come easily.
Well done indeed!
Thanks Dwain :Wow:
March 25, 2014 at 1:38 am
sqlserver12345 (3/25/2014)
ascii value for comma
this time the answer is 44 😎
March 25, 2014 at 1:29 am
Simple as
select char(39) + column + char(39)
March 25, 2014 at 12:47 am
Jeff Moden (3/24/2014)
dwain.c (3/24/2014)
Interesting article. I'm curious to see what comments Jeff has about it.
Eirikur asked me to review it (seems like a couple/three months ago) and I'm tickled...
March 24, 2014 at 5:19 am
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 TABLE_SCHEMA =...
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
Viewing 15 posts - 8,716 through 8,730 (of 8,753 total)