Forum Replies Created

Viewing 15 posts - 5,881 through 5,895 (of 49,552 total)

  • RE: Err: 'Val' is not a recognize function name.

    Please don't post multiple threads for the same problem.

    No replies here please, direct replies to http://www.sqlservercentral.com/Forums/Topic1686770-3412-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Err: 'Val' is not a recognize function name.

    Please don't post multiple threads for the same problem.

    No replies here please, direct replies to http://www.sqlservercentral.com/Forums/Topic1686770-3412-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    cms9651 (5/19/2015)


    GilaMonster (5/19/2015)


    Declare @RangeStart varchar(20) = '01/01/2015 00:00:00', @RangeEnd varchar(20) = '01/01/2015 00:00:00' -- these come from the application

    WHERE toDate >= CONVERT (datetime,@RangeStart,103) and toDate < DATEADD(dd,1,CONVERT (datetime,@RangeEnd,103))

    Even if...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: database remove from AG

    Why? If the patching is going to take the DB down, just fail the AG over to a secondary.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    Declare @RangeStart varchar(20) = '01/01/2015 00:00:00', @RangeEnd varchar(20) = '01/01/2015 00:00:00' -- these come from the application

    WHERE toDate >= CONVERT (datetime,@RangeStart,103) and toDate < DATEADD(dd,1,CONVERT (datetime,@RangeEnd,103))

    Even if you don't...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    Ok, let's go back to the problem.

    What, exactly, are you trying to do? What data do you have? What should be returned by the query?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    GilaMonster (5/19/2015)


    Your upper and lower bounds of the between are the same. That means the query will only return rows where the toDAte is EXACTLY '2015-01-01 00:00:00.000' The date you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    cms9651 (5/19/2015)


    But I have tried this syntax in sql query and the output is always empty:

    AND doTableDate BETWEEN CAST('01/01/2014 00:00:00' AS DATE)

    AND CAST('01/01/2014 00:00:00' AS DATE)

    ....

    AND doTableDate >= CAST('01/01/2014 00:00:00'...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    Well the problem has the same form, same cause and same solution as the one you discussed in there.

    Your upper and lower bounds of the between are the same. That...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: [SQL Server 2008] Problem with ConvertDate

    Is this the same problem as you're discussing in the BETWEEN thread? If so, please post there and not in a new thread. Thanks

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server 2012 - High Memory Usage

    GilaMonster (5/18/2015)


    This is indeed normal behaviour for SQL, it will take all the memory it's allowed to have and not give it back.

    30GB in use is not hard, especially...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: restoring .bak file to new database using T-SQL

    You're not looking for mapped drives, you're looking for local drives, like C:, D:, E:, etc

    Maybe give the sysadmin the backup and ask him to restore it?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server recreating plans each day

    p.a.petrov (5/18/2015)


    The only thing that really coincides with the timing of the plans being regenerated is a DB maintenance job that we have: the daily index reorganizing (when fragmentation is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Tuning SQL Server query

    TheSQLGuru (5/18/2015)


    And I agree, what about the SORT makes it so bad you want to get rid of it?

    Personally I can't even see where a merge join would be coming...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server 2012 - High Memory Usage

    Almighty (5/18/2015)


    if possible run the Trace on SQL server from other client machine (not from the same server) for 1 whole day or at list for peak hour and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 5,881 through 5,895 (of 49,552 total)