Viewing 15 posts - 1,816 through 1,830 (of 2,462 total)
Koen Verbeeck (8/5/2013)
Great overview. I'll refer to this post every time someone asks for free training 😀
Ditto that. Me too!
-- Itzik Ben-Gan 2001
January 2, 2015 at 12:42 am
taylor_benjamin (12/29/2014)
SQL is not HTML
HTML is not SQL
I can't believe nobody else has raised a warning flag on...
-- Itzik Ben-Gan 2001
December 29, 2014 at 7:02 pm
Sorry if I am repeating what anyone else said - I have not had a chance to read through all the comments. Here's my 2 cents:
Normalize the data as it...
-- Itzik Ben-Gan 2001
December 29, 2014 at 10:01 am
Great article. We'll done sir!
I do, however, disagree a little with this line (emph. mine)...
But HTML is often not well-formed XML. Some tags are "singleton" tags--that do not require end...
-- Itzik Ben-Gan 2001
December 28, 2014 at 12:10 am
CELKO (12/22/2014)
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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:...
-- Itzik Ben-Gan 2001
December 22, 2014 at 10:53 am
No prob. Glad to help. 😎
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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) ...
-- Itzik Ben-Gan 2001
December 10, 2014 at 12:39 pm
Sean Lange (12/9/2014)
-- Itzik Ben-Gan 2001
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
--...
-- Itzik Ben-Gan 2001
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:
-- Itzik Ben-Gan 2001
December 9, 2014 at 2:35 pm
Viewing 15 posts - 1,816 through 1,830 (of 2,462 total)