Forum Replies Created

Viewing 15 posts - 6,586 through 6,600 (of 8,753 total)

  • RE: Please help - Date Overlapping

    Quick solution for educational and entertainment purposes (read "spanner in the works") using slight modification of Jack Corbett's data preparation.

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.TBL_DATES') IS NOT NULL DROP TABLE dbo.TBL_DATES;

    CREATE...

  • RE: How to show last purchased rate in all months of output? New

    Koen Verbeeck (11/12/2014)


    Eirikur Eiriksson (11/12/2014)


    Koen Verbeeck (11/12/2014)


    Eirikur Eiriksson (11/12/2014)


    Koen Verbeeck (11/12/2014)


    David Burrows (11/12/2014)


    However max(rate) over( partition by product) will not work if the rate varies +/- and the latest value...

  • RE: How to show last purchased rate in all months of output? New

    Koen Verbeeck (11/12/2014)


    Eirikur Eiriksson (11/12/2014)


    Koen Verbeeck (11/12/2014)


    David Burrows (11/12/2014)


    However max(rate) over( partition by product) will not work if the rate varies +/- and the latest value by date is needed

    In...

  • RE: Using ":" in and attribute name in an xml file

    imran 60091 (11/12/2014)


    Hi, Im running on SQL Server 2008 R2.

    Just tried this on SQL Server 2014 and it throws an error:

    Msg 9456, Level 16, State 1, Line 1

    XML parsing: line...

  • RE: How to show last purchased rate in all months of output? New

    Koen Verbeeck (11/12/2014)


    David Burrows (11/12/2014)


    However max(rate) over( partition by product) will not work if the rate varies +/- and the latest value by date is needed

    In that case an ORDER...

  • RE: How to show last purchased rate in all months of output? New

    Quick suggestion, use the row_number function

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON

    IF OBJECT_ID('dbo.test') IS NOT NULL DROP TABLE dbo.test;

    create table dbo.test

    (

    product varchar(50),

    QTY int,

    ...

  • RE: Read dynamic columns from an excel into SSIS

    duggal.priyanka06 (11/11/2014)


    Hi

    I have an excel file which has dynamic columns

    i.e. Col1, Col2, Col3 this week. next week i will have a new Col4 in the sheet. This will keep...

  • RE: sparse columns and column sets

    Further on John Corkett's post, the [COLUMN SET] bridges the gap between a normal table and an EAV type table. Standard set based approach can be used on the database...

  • RE: Very bizarre apparent bug

    Another question, is this a default or a named instance?

    😎

  • RE: Very bizarre apparent bug

    Tony Webster (11/11/2014)


    We were having trouble redefining a stored procedure, and got the test case down to this:

    CREATE PROC testproc

    AS

    SELECT 123

    -- CONVERT(varchar)

    GO

    which on one particular server gives:

    [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData...

  • RE: Sort in execution plan

    lizamungro (11/11/2014)


    I'm new to using SQL Server. I've been asked to optimize a series of scripts that queries over 4 millions records. I've managed to add indexes and remove a...

  • RE: Are the posted questions getting worse?

    BWFC (11/11/2014)


    Stuart Davies (11/11/2014)


    BWFC (11/11/2014)


    One of the people whose name I've seen attached to the kitchen cabinets spam lives just down the road from me. He's a reasonably notorious...

  • RE: Incorrect syntax near the keyword 'ELSE'

    Quick note, as LinksUp noted, the parentheses do not match, there is an extra opening one before the first instance of T0.DiscPrcnt. To prevent/detect this kind of errors, I find...

  • RE: hi...this is chandra

    chandrachamarthi8 (11/10/2014)


    Msg 2760, Level 16, State 1, Line 1

    The specified schema name "coustmer" either does not exist or you do not have permission to use it.

    i got this error ..any...

  • RE: Select specific info from XML field

    SQL_dummy-431245 (11/10/2014)


    WOW!!!

    You are the best!!

    Goes without saying:-D

    Thank you very very much!!!!

    Glad to help, just realize that this is a limited solution, only single digit joining between the different nodes, will...

Viewing 15 posts - 6,586 through 6,600 (of 8,753 total)