Forum Replies Created

Viewing 15 posts - 4,681 through 4,695 (of 49,552 total)

  • RE: Can a hacker obtain database information from an unencrypted differential backup?

    It can't be restored, but it can be opened in a hex editor and read raw. Won't be easy, but string data won't be that hard to get out. Numbers...

    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 me with the SYNTAX for the DELETE statement

    Luis Cazares (9/24/2015)


    If Gender is a non nullable column, it will work.

    I'd usually go for something like this:

    Delete T

    FROM Event_Temp_Lead_Screen T

    WHERE NOT EXISTS( SELECT 1 FROM member M...

    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 corrupted

    It's not an object that's damaged, it's an allocation page, meaning SQL can't tell what should be in a 4GB chunk of the data file.

    Restore from a clean backup, this...

    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: Commercial Software with All Tables as Heaps and Terrible Performance

    Kristen-173977 (9/23/2015)


    GilaMonster (9/23/2015)


    Functions in the select execute once per row, and they have an overhead. Data-accessing scalar functions in the select are essentially a hidden cursor inside a select 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
  • RE: Commercial Software with All Tables as Heaps and Terrible Performance

    robinwilson (9/23/2015)


    Thanks all for the information and detailed responses which is all really useful.

    Heaps

    I was told this by the software supplier:

    I accept that clustered indexes do seem like a simple...

    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: Commercial Software with All Tables as Heaps and Terrible Performance

    Kristen-173977 (9/23/2015)


    A Scalar function on an expression in a SELECT is probably OK (probably no different to actually hard-coding the logic in the SELECT).

    No it's not OK, 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
  • RE: Ecrypting the database objects - Cons and Pros

    Though profiler, XE and the various dm_exec DMVs will still contain and show the plain text of the executed statement.

    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: Commercial Software with All Tables as Heaps and Terrible Performance

    WayneS (9/23/2015)


    However, it comes at a cost - the accuracy of the data being reported is very suspect. As in, if you need accuracy then it can't be trusted.

    Interestingly, 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: Commercial Software with All Tables as Heaps and Terrible Performance

    robinwilson (9/23/2015)


    Primary Key vs Clustered Index

    Would a clustered index or a primary key (which seems to always create a clustered index anyway) be the better option generally in terms 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
  • RE: save real datatype in sql without converting to exponential

    bkshn (9/22/2015)


    I want to save real datatype!!!

    Why?

    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: Create login of sysadmin role on server having logon trigger

    Then once you're restarted in single user mode, use the DAC to connect. Connections made via the DAC don't fire login triggers.

    Start SQL in single user mode to get a...

    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: Create login of sysadmin role on server having logon trigger

    In that case, it's not the login trigger that's your problem, as a non-sysadmin account can't create a sysadmin login.

    Restart SQL in single user mode and connect with a windows...

    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: DBCC REINDEX.. vs. ALTER INDEX ALL

    chudman (9/23/2015)


    So scan density was basically physical fragmentation? Is this correct?

    No.

    SQL's not aware of physical fragmentation, of how the files are placed on the drives. Which is why I...

    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: Create login of sysadmin role on server having logon trigger

    All the sysadmin logins? Or all the SQL authentication ones?

    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: Create login of sysadmin role on server having logon trigger

    saum70 (9/23/2015)


    Connecting via DAC requires to specify User Id and password.

    No it doesn't. It requires a sysadmin login, SQL or Windows.

    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,681 through 4,695 (of 49,552 total)