Forum Replies Created

Viewing 15 posts - 3,751 through 3,765 (of 49,552 total)

  • RE: Are the posted questions getting worse?

    ChrisM@Work (1/27/2016)


    Two databases on the same "instance" isn't allowed or the two databases can't reference each other using three-part naming?

    With Azure SQL DB, there's no such thing as 'instances'....

    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 database restore at lower version

    BrainDonor (1/26/2016)


    You can't use replication to keep the old version up-to-date, because they're more than two versions apart. I don't know if the same restriction would apply to mirroring.

    Mirroring requires...

    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: max server memory

    Probably, yes.

    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 in full recovery?

    Summarised consultant comment: "The system is written badly, so you'll have to accept lots of data loss if there's a disaster"

    The full vs simple decision is one of data loss....

    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?

    Ed Wagner (1/25/2016)


    Several countries also have laws restricting where PII on their citizens can be stored.

    We do, and that was the reason behind my 'data out of the country'...

    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 restrict SQL Server to use limited cores

    If it's a licensing requirement, disable the extra cores in the BIOS. I know that's what you have to do for Enterprise if you don't want to use all cores,...

    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 - VLFs

    No. One at a time. The LSN is an always-increasing value, so if SQL starts using a VLF, it can't go back and write to an earlier one.

    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?

    Bandwidth, latency and data out of the country (for 1 and 3)

    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: WITH Recompile VS Option Recompile , With Recompile performs worse?

    Eirikur Eiriksson (1/25/2016)


    This kind of code is not likely to benefit from recompilation as it is, suggest you look into either dynamic SQL or conditional execution of more optimizable...

    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: WITH Recompile VS Option Recompile , With Recompile performs worse?

    You have a catch-all query there. The WITH RECOMPILE does not give the same effects w.r.t. that query as option recompile does. option recompile relaxes the optimiser's requirements for the...

    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: Turn ALLOW_PAGE_LOCKS = ON for all indexes

    Add a filter for OBJECTPROPERTYEX(object_id, 'IsUserObject') = 1, or change the join to sys.tables to an inner join.

    As it is, you're getting all the system tables as well as the...

    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: TSQL SYNTAX HELP PLEASE!!!!

    IT2012 (1/24/2016)


    (I know that the statement is testing whether the variable @phrase_type is null

    That's not what it's doing. It's part of what it will do, but not all it will...

    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: Corruption on the same table 3 times in a month.

    Corruption, especially repeated corruption, is very likely an IO subsystem problem. It's not necessarily the disks, it could be anything from SQL all the way down to the disks, switch,...

    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: Can't ALTER COLUMN to NOT NULL and ADD PRIMARY KEY in the same SQL Batch?

    hlrx (1/22/2016)


    For example, this compiles and runs fine in one batch:

    [font="Courier New"]CREATE TABLE test1 (col1 INT NOT NULL)

    ALTER TABLE test1 ALTER COLUMN col1 INT NULL

    INSERT test1 VALUES (NULL)

    GO[/font]

    Yes it does,...

    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 2012 evaluation

    https://www.google.com/?q=sql+2012+evaluation

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