Viewing 15 posts - 1,816 through 1,830 (of 2,458 total)
CELKO (12/22/2014)
December 22, 2014 at 1:30 pm
I believe this could be done more efficiently using the XQuery Substring method but I could not quickly figure out how.
In the meantime, here's a solution...
-- (1) create...
December 22, 2014 at 12:16 pm
I have a partial solution, that will get you in the right direction. I created some DDL for you. This solution is based on the technique described in this article:...
December 22, 2014 at 10:53 am
No prob. Glad to help. 😎
December 22, 2014 at 9:43 am
Back up your RDL before doing this...
In Visual Studio right-click on the report and select "View Code". In the code you will see a footer section. I'm pretty sure...
December 22, 2014 at 9:00 am
Eugene Elutin (12/11/2014)
Alan.B (12/10/2014)
Wouldn't this be faster?
-- the function
CREATE FUNCTION dbo.DIGITSONLYAB(@pstring varchar(8000))
RETURNS TABLE WITH SCHEMABINDING AS
RETURN SELECT ISALLDIGITS = CASE PATINDEX('%[^0-9]%',@pstring) WHEN 0...
December 13, 2014 at 1:35 pm
I'm curious (general question to everyone)...
Wouldn't this be faster?
-- the function
CREATE FUNCTION dbo.DIGITSONLYAB(@pstring varchar(8000))
RETURNS TABLE WITH SCHEMABINDING AS
RETURN SELECT ISALLDIGITS = CASE PATINDEX('%[^0-9]%',@pstring) WHEN 0 THEN 1 ELSE...
December 10, 2014 at 1:17 pm
Using this PatReplace8K function:
CREATE FUNCTION dbo.PatReplace8K
(
@String VARCHAR(8000),
@Pattern VARCHAR(50),
@Replace VARCHAR(1)
)
/*
Created by Alan Burstein Nov(ish)/2014
With help by Eirikur Eiriksson 😉
*/
RETURNS TABLE WITH SCHEMABINDING
AS
RETURN
WITH E1(N) ...
December 10, 2014 at 12:39 pm
Sean Lange (12/9/2014)
December 9, 2014 at 3:24 pm
I put something a little more simple together.
USE tempdb
GO
-- Sample Data
IF OBJECT_ID('tempdb..items') IS NOT NULL DROP TABLE items;
CREATE TABLE items (Price int);
GO
INSERT items
SELECT ABS(CHECKSUM(newid()))%10+6--5 to 15
FROM (VALUES (NULL),(NULL),(NULL),(NULL)) t(c);
GO
--...
December 9, 2014 at 3:04 pm
Removed... (Did not see that this was an Integration Services thread). What I put together would be wrong. :doze:
December 9, 2014 at 2:35 pm
Eirikur Eiriksson (12/4/2014)
😎
DECLARE @ParamTable varchar(100) = N''; -- include...
December 8, 2014 at 8:31 pm
rocky_498 (12/4/2014)
I know, I can create SQL agent job and run that job through SP sp_start_job 'JOB Name', but How I can pass variable?
Argh, I put together a longer reply...
December 4, 2014 at 10:16 pm
-- Sample data matching what you have
DECLARE @tblCCH TABLE
(PKID int primary key,
OrderID int not null,
CCXML xml not null
);
INSERT @tblCCH
SELECT 1,31677,'<?xml version="1.0"?> <CC> <Type>4</Type> <Name><![CDATA[Lisa M. xxxxx]]></Name> <Amt>51.86</Amt>...
December 4, 2014 at 9:05 pm
You can create a SQL agent job then create a step that executes the package. SSIS Packages are one of the options under Steps for "Type"
December 4, 2014 at 8:45 pm
Viewing 15 posts - 1,816 through 1,830 (of 2,458 total)