Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 6,036 total)

  • RE: Stored procedures and Creating tables. (Problem).

    Create and delete static tables on fly is one of the worst possible ways to do things in SQL Server.

    There are many other ways to do what you're doing, which...

  • RE: "Cannot resolve the collation conflict..." issue in the where clause

    NineIron (7/18/2016)


    Here's my query.........I have dealt successfully with collating issues before but, they have been in the joins between tables. I don't know where to place the "collate database_default" in...

  • RE: problem converting date on procedure.

    Lynn Pettis (7/8/2016)


    Sergiy (7/7/2016)


    Lynn Pettis (7/7/2016)


    But I think this argument has gone on long enough, and it is time to stop.

    Long enough - by which standard?

    :hehe:

    By the standanrd that you...

  • RE: problem converting date on procedure.

    Lynn Pettis (7/7/2016)


    But I think this argument has gone on long enough, and it is time to stop.

    Long enough - by which standard?

    :hehe:

  • RE: SSIS - Flat file data error

    Jeff Moden (7/7/2016)


    It is amazing, though, that such "multi million dollar" companies can't or won't get something so simple right. Forcing other companies to create work arounds is what...

  • RE: CAST as numeric rounding issue

    It may be not entirely SQL2014 fault

    I've set up a quick test in 2014 instance:CREATE TABLE #NUMBER_TEST

    (

    UNDEFINED NUMERIC (20,4)

    )

    INSERT INTO #NUMBER_TEST

    SELECT -98.786 UNION

    SELECT -98.785 UNION

    SELECT -98.784 UNION

    SELECT...

  • RE: problem converting date on procedure.

    drew.allen (7/7/2016)


    If the two are otherwise indistinguishable,

    They are not.

    I provided an example where CAST is not doing its job properly. and can add more.

    which is true in the vast...

  • RE: problem converting date on procedure.

    drew.allen (7/7/2016)


    Sergiy (7/6/2016)


    It's actually another way around - it's you who did not provide any rationale for using CAST rather than CONVERT in any cases.

    Actually, I did provide my rationale,...

  • RE: problem converting date on procedure.

    Lynn Pettis (7/6/2016)


    Really? You couldn't see the sarcasm just dripping from my statements? Sad, just sad.

    Well, would not say "dripping".

    none of which I have or will read

    -...

  • RE: problem converting date on procedure.

    Lynn Pettis (7/6/2016)


    How about a page from Mr. Celko's book (none of which I have or will read), because CAST is the ANSI standard and CONVERT isn't.

    You should always write...

  • RE: problem converting date on procedure.

    drew.allen (7/6/2016)


    I've already acknowledged that datetime data was an exception.

    There are more.

    You can easily filnd them if you look up for the article "CASR and CONVERT" in BOL.

    That...

  • RE: Aggregating Correlated Sub-Queries

    Will some of these work for you?

    COUNT(case when [>7 Days] = 1 Then invoiceid else NULL end) as [Total >7 Days]

    ,COUNT(case when [>7 Days] = 1 Then NULL ELSE...

  • RE: xp_cmdshell BCP

    You do not use @DATABASE anywhere in @BCP query.

    The database must have been set up as default for the user on that SQL 2005 instance, therefore the query worked there.

    Now...

  • RE: query performance tuning

    From the plan I can see the column [Date Time Beginning (EST)] belongs to table [bids_raw_da_miso]

    But I don't see this table anywhere in the query.

    And if you select by range...

  • RE: not able to find why/where this error is comming.

    Jeff Moden (7/4/2016)


    Sergiy (7/4/2016)


    rajemessage 14195 (7/3/2016)


    please tel me some key words , show that i will search in my stored prcedure

    TRY -- CATCH ?

    Or just BEGIN TRANSACTION?

    Most likely...

Viewing 15 posts - 1,306 through 1,320 (of 6,036 total)