Forum Replies Created

Viewing 15 posts - 6,871 through 6,885 (of 8,753 total)

  • RE: Help Needed to Convert Numeric Value to CHAR(7)

    samp.silvercreek (9/23/2014)


    Eirikur Eiriksson (9/22/2014)


    More for fun, here is an alternative "solution", set to return six digits and the decimal separator.

    😎

    I like this solution because it handles the "dangling decimal point"...

  • RE: FreeText Query - Contains

    Quick thought, full text search is not going to perform (or even work) when searching for a suffix, probably better off using the LIKE operator here.

    😎

  • RE: Are the posted questions getting worse?

    Is it just me or does this smell like a spam? A quick search returned few similar postings referencing the same vendor on other sites.

    😎

  • RE: Help with slow running update.

    thomashohner (10/4/2014)


    I just did that and I am currently running a 50-55 second query vs 8+ minutes. I just don't understand why such a small thing made such a huge...

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

    vinaygambhir (10/4/2014)


    Thanks.. But the problem is I have to 1st use the below command:

    EXEC ('CALL GETENROLLMENT() ')At serverName which returns the two data sets.

    I do not know how to...

  • RE: How can I show "type" in XML using SQL Server?

    Meatloaf (9/30/2014)


    Hi,

    Also, how can I do nesting?

    Here is a quick nesting example

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(Location,Building,RoomName,Habitant )AS

    (SELECT * FROM (VALUES

    ('USA','White House','Oval Office','Mickey Mouse')

    ,('UK','Whitehall','24hour Lounce','Donald Duck')

    ) AS X(Location,Building,RoomName,Habitant)

    )

    ,LOCATION_DETAIL(Location,LocationType) AS

    (SELECT...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (10/4/2014)


    Definitely the weekend. I guess it is time to take a break from SSC.

    Yet another spam-tastic weekend:angry:

    😎

  • RE: How to perform security assessment for any application

    vsamantha35 (10/4/2014)


    Hi,

    I need some help on security. Checking if any Security experts can guide me here.

    How to do a Security assessment for an database application?

    What are things to have...

  • 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

    ...

Viewing 15 posts - 6,871 through 6,885 (of 8,753 total)