Forum Replies Created

Viewing 15 posts - 1,816 through 1,830 (of 2,458 total)

  • RE: reset running total to x amount

    CELKO (12/22/2014)


    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data...

  • RE: Use LIKE in SQL SERVER to XML record

    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...

  • RE: reset running total to x amount

    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:...

  • RE: How to resize an SSRS report with a 0 height page footer

    No prob. Glad to help. 😎

  • RE: How to resize an SSRS report with a 0 height page footer

    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...

  • RE: Digits only

    Eugene Elutin (12/11/2014)


    Alan.B (12/10/2014)


    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...

  • RE: Digits only

    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...

  • RE: How to format unformated phone numbers Please...,

    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) ...

  • RE: Question on Stored Procedure

    Sean Lange (12/9/2014)


    Alan what you posted is almost exactly what I had envisioned. I refrained from posting simply because this seems so much like homework. Let's hope the OP reads...

  • RE: Question on Stored Procedure

    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

    --...

  • RE: Using variable to evaluate part of file name?

    Removed... (Did not see that this was an Integration Services thread). What I put together would be wrong. :doze:

  • RE: sp_executesql help

    Eirikur Eiriksson (12/4/2014)


    Quick suggestion (pseudo code)

    😎

    DECLARE @ParamTable varchar(100) = N''; -- include...

  • RE: Calling SSIS Package through Store Procedure

    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...

  • RE: Extracting XML

    -- 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>...

  • RE: Calling SSIS Package through Store Procedure

    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"

Viewing 15 posts - 1,816 through 1,830 (of 2,458 total)