Forum Replies Created

Viewing 15 posts - 3,541 through 3,555 (of 49,552 total)

  • RE: Multi-valued Parameter Query issue

    It's a table valued function, so join to it. Instead of WHERE IN, join to the function on the column that you're filtering by.

    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: Multi-valued Parameter Query issue

    Google: DelimitedSplit8k

    Use the function in the article

    btw, it's working exactly as expected in all cases (but maybe not how you hoped though)

    FieldOnTableCallType IN (@prmCallType) is equivalent to FieldOnTableCallType =...

    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: Select OrderID in

    The first one forces a data type conversion before SQL can compare. The second does not.

    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: write stored procedure using case when

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

    http://www.sqlservercentral.com/Forums/Topic1762934-392-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: Running a batch file from a sql server agent job

    Check the path variable for the SQL Agent service account. Path variables are profile specific, and SQL Agent doesn't use your login to run.

    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: Are the posted questions getting worse?

    Like Fantasy and crime/detective stories?

    If so, Rivers of London (also published under the name "Midnight Riot" in the US).

    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: Interesting Data Centers

    Gary Varga (2/22/2016)


    Given that there are even cloud sandboxes for most things now it does beg the question why anyone would not use cloud hosts.

    Bandwidth. Latency.

    My current company...

    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: Switch out partition from Non Partition to Partitioned Table, different database

    A partition switch can only be done within the same database.

    You'll need to create non-partitioned tables in the same DB as the partitioned table (same filegroup as the destination...

    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: Transaction log becomes FULL very quickly

    http://www.sqlservercentral.com/articles/Transaction+Logs/72488/

    My first guess would be full recovery model, no log backups.

    This may also be useful

    http://www.sqlservercentral.com/articles/Administration/64582/

    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: How to create database from .mdf file only

    Which, while true, has nothing to do with the original question in this 4-year old thread.

    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: Help with DB corruption on SQL 2012

    Rebuilding a clustered index may fix it, if the error is in the allocation pages as it appeared to be.

    If you run CheckDB WITH NO_INFOMSGS, does it return any errors?

    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: set Identity_Insert In Trigger works?

    LittleTony (2/19/2016)


    GilaMonster (2/19/2016)


    The cause is detailed in the error message.

    "An explicit value for identity column in table dbo.N8_SPEC_STAT_DELETED can only be specified when a column list is used and IDENTITY_INSERT...

    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: set Identity_Insert In Trigger works?

    The cause is detailed in the error message.

    "An explicit value for identity column in table dbo.N8_SPEC_STAT_DELETED can only be specified when a column list is used and IDENTITY_INSERT is ON"

    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: Using Parameters in a Query is Killing Performance

    Can you post execution plans of the fast and the slow versions please? Actual plans if possible.

    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: Creating Filtered Index with OR Statement

    And keep in mind that for a query to use a filtered index, the filter in the query WHERE clause has to match or be an easily determined subset of...

    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 - 3,541 through 3,555 (of 49,552 total)