Forum Replies Created

Viewing 15 posts - 8,566 through 8,580 (of 8,755 total)

  • RE: Create Dynamics view

    This should get you started, cannot do this in a view though, in a stored procedure it works fine.

    😎

    USE [tempdb]

    GO

    CREATE SCHEMA [SCHEMA01] AUTHORIZATION [dbo];

    GO

    CREATE SCHEMA [SCHEMA02] AUTHORIZATION [dbo];

    GO

    CREATE SCHEMA [SCHEMA03]...

  • RE: SSIS package connecting to multiple remote servers

    Check out this article, Control Flow Task Errors – Level 9 of the Stairway to Integration Services[/url]

    😎

  • RE: Negative run_duration values in msdb..sysjobhistory

    Quick question, why the (nolock) hints?

    😎

  • RE: error with SP Execution

    Looks like something has changed, what does this query bring back?

    😎

    SELECT

    sc.configuration_id

    ,sc.name

    ,sc.value

    ,sc.minimum

    ...

  • RE: .ods files

    The .ods or OpenDocument Spreadsheet can be opened with Excel 2007 or later, OpenOffice and LibreOffice.

    It contains multiple files within a zip file, one way of importing is to rename...

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    FYI: Ran the function through the test script with the same result aggregation as I used for the article.

    😎

    SplitterName ...

  • RE: Eliminating duplicates while insert

    Here is another way, using ranking

    😎

    WITH CTE_OPT_BASE AS

    (

    select

    ROW_NUMBER() OVER

    (

    ...

  • RE: query help needed

    This should get you started 😎

    DECLARE @REF_DATE DATE = '2014-06-01';

    DECLARE @MEM_PAY_DATE TABLE

    (

    PAYMENT_ID INT NOT NULL

    ,MEMBER_ID ...

  • RE: How to Use XML Config File to Allow SSIS Pkg to Run Successfully on Development/Production Locations?

    The most usual approach is to use one file for each environment, a dev config, a testing config and a production config.

    😎

  • RE: Update table with multiline comments

    abhas (4/14/2014)


    Hi All,

    How to update column with multiline coments.

    Add "carriage return" and "line feed" characters, see the example

    😎

    SELECT 'THIS IS A COMMENT LINE 1' + CHAR(13) + CHAR(10) + 'THIS...

  • RE: How do i change a string key to an int - normal methods not working!

    isuckatsql (4/13/2014)


    did VARCHAR(20)

    SELECT top 10 CAST(did AS INT) FROM table

    Msg 245, Level 16, State 1, Line 3

    Conversion failed when converting the varchar value 'cht6p575l7ry61k1npt' to data type int.

    SELECT CONVERT(INT, did)...

  • RE: how can I update an xml by variable?

    The query just has an incorrect path, this works:

    😎

    declare @urlRedirect nvarchar(4000)

    set @urlRedirect=N'www.google.com'

    declare @userxml xml

    set @userxml=N'<user>

    <information>

    <userkey>0</userkey>

    <domainname><![CDATA[192.168.0.97]]></domainname>

    <ip>192.168.0.97:2007</ip>

    <from><![CDATA[http://192.168.0.97/default.htm]]></from>

    <time>02/08/2014 08:08:57 ?.?</time>

    <q>https://www.google.com</q>

    </information>

    <urlarea>

    <url>login.htm</url>

    </urlarea>

    <formarea>

    <user><![CDATA[sa]]></user>

    <pass><![CDATA[sa]]></pass>

    <B1><![CDATA[Submit]]></B1>

    <hascdata>false</hascdata>

    </formarea>

    <cookiearea></cookiearea>

    </user>'

    SET @Userxml.modify('replace value of (/user/urlarea/url/text())[1] with sql:variable("@urlRedirect")')

    select @userxml

  • RE: Remove Desing-time variable values from package

    One way of doing this is to edit the package in a text editor and remove the values that way.

    Before:

    <DTS:VariableValue DTS:DataType="14">120</DTS:VariableValue>

    After:

    <DTS:VariableValue DTS:DataType="14"></DTS:VariableValue>

    😎

  • RE: Can some pull off this query for me..

    a4apple (4/12/2014)


    I was thinking if there is any better approach than using the cross Join.

    Don't know if this is better, at least it is slightly different 😎

    DECLARE @Emp ...

  • RE: Convert the stored procedure to "Standard SQL Select"

    Lynn Pettis (4/12/2014)


    There is another way, look at the last Fiscal Year calculation:

    WITH SAMPLE_DATE(XDATE) AS

    (

    SELECT CONVERT(DATETIME2(0),XDATE,120) AS XDATE

    FROM (VALUES

    ...

Viewing 15 posts - 8,566 through 8,580 (of 8,755 total)