Forum Replies Created

Viewing 15 posts - 4,381 through 4,395 (of 49,552 total)

  • RE: SQL Injection - What to look for in a string

    I did say untested, try and tweak as required.

    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 Injection - What to look for in a string

    SQThaal (11/2/2015)


    If I raise an error when @fieldName isn't alphanumeric (a-Z,0-9) and/or @Value contains semicolons and/or apostrophes, am I safe?

    No.

    You need to whitelist (detail what is allowed), not black list....

    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: SQLSERVER 2016 Licensing

    Typically that kind of thing is decided my marketing very close to launch. I doubt it's even decided yet, let alone made public.

    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: Query on a large database

    Sergiy (11/1/2015)


    Gail, I'm talking from experience.

    Yeah, well, so am I.

    Three times this year I've had to assist with the restore of a production backup to recover deleted data (2 cases)...

    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: Query on a large database

    We're going to have to agree to disagree here, on all of those points.

    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: Query on a large database

    Why?

    Why keep data that we don't need to keep in detail and only need to keep in an aggregated form?

    Why make the backups larger, the DB larger, the maintenance longer,...

    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: Query on a large database

    Sergiy (11/1/2015)


    GilaMonster (11/1/2015)


    Also fast data loads, fast deletes, aka the sliding window.

    The thing is - correct cluster index eliminates the necessity for a sliding window altogether.

    I disagree.

    Deleting 20 million rows...

    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: Query on a large database

    Jeff Moden (11/1/2015)


    The only reason to partition is to reduce index maintenance and, possibly (it worked great for me at work), to reduce backup times on temporally based tables (such...

    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: Restore Conflict (restore)

    JakDBA (11/1/2015)


    Yes thats rite,similar Logical names are not allowed. <snip>

    follow the link

    https://technet.microsoft.com/en-us/library/ms190447(v=sql.105).aspx

    You may want to check links before you post next time. That shows how to restore with...

    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: Restore Conflict (restore)

    It's not a problem, you'll be fine.

    Logical file names only have to be unique within a database, not within an instance. Two databases with the same logical names for files...

    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: Index and Optimiser question.

    ben.brugman (11/1/2015)


    Please explain to my the advantages of the INCLUDE?

    Columns included are in the leaf level only, not the key, so the index is smaller than if they were in...

    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: Query on a large database

    Well, colour me (not) surprised Jeff. 😉

    Looks like I might need to write a part 2 of the 'query performance tuning methodology' article....

    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 detected a logical consistency-based I/O error

    mamianstgio (10/31/2015)


    Is it possible this problem occurred because of no space on the disk?

    No.

    You have an IO subsystem which is not behaving correctly (writing data to disks incorrectly or writing...

    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 detected a logical consistency-based I/O error

    Restore from your last good backups, this is unfixable.

    Cause is likely a problem in your IO subsystem.

    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: 2008 trans log backup problem.

    http://www.sqlservercentral.com/Forums/Topic359034-8-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

Viewing 15 posts - 4,381 through 4,395 (of 49,552 total)