Forum Replies Created

Viewing 15 posts - 6,886 through 6,900 (of 8,760 total)

  • RE: Help with slow running update.

    thomashohner (10/4/2014)


    Oddly when I remove the OR (r.Trimester >0) it runs in 50-55 seconds not the 8+ minutes.. Now very, very confused.

    Quick thought, by removing the alternative predicate from the...

  • RE: raiserror level

    TomThomson (10/4/2014)


    Eirikur Eiriksson (10/3/2014)


    Steve Jones - SSC Editor (10/2/2014)


    Note that THROW works well in some cases, RAISERROR in others.

    Learn how to use both.

    It is worth noting that the THROW...

  • RE: indexed view in sql server but i don't have a primary key

    h2sh (10/3/2014)


    hi,

    i'm trying to work with full text search , i have create a view , but unfortunately , the view doesn't have a column which have a non duplicate...

  • RE: Performance of the new (2014) Cardinality Estimator

    Alan.B (10/2/2014)


    I have a few dev boxes running 2014 and have have experienced some instances where 2014 is giving me a parallel query plan where on 2012 I get a...

  • RE: Outer Join Alternative

    Quick thought, use NULLIF or skip the ISNULL in the inner query for Actual_CurrentMonth and Budget_CurrentMonth to return NULL instead of 0, then remove those two columns from the group...

  • RE: Conversion of varchar to datetime

    Quick thought, what is the data type of the MANUFACTUREDDATE column? If the MANUFACTUREDDATE is a character column of the format MM/DD/YYYY (101) then you must always use the 101...

  • RE: ELMAH_LogError: How to update TimeUtc with GetDate() Eastern Time

    Had this handy (straight from BOL);-) should get you passed the hurdle.

    😎

    /* Relevant date time functions with BOL comments*/

    SELECT

    /* Returns the current database system timestamp as a datetime

    ...

  • RE: raiserror level

    Steve Jones - SSC Editor (10/2/2014)


    Note that THROW works well in some cases, RAISERROR in others.

    Learn how to use both.

    It is worth noting that the THROW "message" is fixed...

  • RE: Create XML file from AS400 stored procedure returning multiple datasets

    Best option would be to use T-SQL, it is simple and straight forward, here is a quick example.

    This sample uses XML AUTO, by changing to XML PATH, almost any...

  • RE: Xquery

    Here is a simpler and better performing version of the XQuery, where the XQuery does the leg-work instead of using a union in the TSQL part. The result set contains...

  • RE: XML File Encoding before insert into XML Column

    Quick questions:

    A. how are you importing the XML files?

    B. Do the files have as XML declaration tag (<?xml version="1.0" encoding="UTF-8" standalone="no" ?>)?

    C. Can you post a more complete sample...

  • RE: having trouble changing varchar to datetime

    Quick thought, you can do some string splitting and concatenation, not too pretty but works

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    GO

    DECLARE @DATETIMESTRING VARCHAR(12) = '200508310926';

    SELECT CONVERT(DATETIME,SUBSTRING(@DATETIMESTRING,1,4) + CHAR(45) +

    ...

  • RE: Transformation Suggestion for joining an extra column (SSIS).

    k.kavitha236 (10/2/2014)


    Source is excel and destination is OLE DB

    In this case, my first suggestion is to use a staging table at the destination for the aggregation. Is that an option?

    😎

  • RE: Transformation Suggestion for joining an extra column (SSIS).

    Quick question, what is the data source and destination (file,table etc.)?

    😎

  • RE: Ranking

    hakan.winther (10/2/2014)


    Sean Pearce (10/1/2014)


    Roland C (10/1/2014)


    Another badly redacted question ! It gets a little boring :doze:

    You could always submit your own question.

    I agree with you. I Think it's hard to...

Viewing 15 posts - 6,886 through 6,900 (of 8,760 total)