Forum Replies Created

Viewing 15 posts - 5,746 through 5,760 (of 49,552 total)

  • RE: Help with date table

    Does this do what you want?

    SELECT year, monthname, MIN(startdate), MAX(enddate)

    FROM [dbo].[mhs_month_week]

    GROUP BY year, monthname

    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: Multiple conditions in where clause will cause any performance issues ?

    Test and see, with all the OR conditions that last update will have to be a table scan, but without indexes it'd have to be a table scan anyway

    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: Log shipping between SQL 2008 and 2014

    Restore the DB as NORECOVERY, restore the logs as NORECOVERY. It will work, but it's not a DR setup and the secondary database cannot be made readable. It's typically used...

    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: What is the difference between DMV, DBCC and DMF

    rajeshjaiswalraj (5/29/2015)


    Where DBCC or DMV will store. What its working.

    DMVs don't store data, they're views into SQL's internal memory structures mostly, or database structures.

    DBCC statements are very varied and there's...

    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: delete from one table based on the results of other table

    DELETE Table1 FROM Table1 INNER JOIN Table2 ....

    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: Ye Old Shrinkfile

    Steven W (5/28/2015)


    My plan is to shut down my major apps that insert a ton of data into the two DBs, perform another full backup, run shrinkfile on DBv1 using...

    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?

    Steve Jones - SSC Editor (5/28/2015)


    Is there just one? If there's a separate one for VS Online, pass it over.

    Why? It'll only show clouds.

    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: Unable to create new table on SQL Server 2014 instance with SQL Server 2012 Management Studio

    No, just that the GUI designer doesn't work up-version. Writing out and running the CREATE TABLE statement works fine

    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: Sleeping process...

    reddysiri517 (5/28/2015)


    Good day, please confirm sleeping sessions or stale session in sql server will use CPU.

    If we kill sleeping sessions,CPU will come down.

    No. Sleeping sessions are doing nothing. Since they're...

    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 expensive query II

    WhiteLotus (5/27/2015)


    I just tested the query by eliminating DISTINCT ..

    the result is :

    (45108 row(s) affected)

    Table 'project_text'. Scan count 1, logical reads 2017, physical reads 0, read-ahead reads 0, lob logical...

    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 perfomance when using Disk Span

    In that case, it'll be 6 times worst than hopeless.

    When it comes to IO throughput, the number of spindles is critical. You have 2. My laptop has that many 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: Are the posted questions getting worse?

    SQLRNNR (5/27/2015)


    GilaMonster (5/27/2015)


    Looks like I hit a few nerves with Sunday's editorial....

    Two words...

    Ugh

    Troll

    I'd reply and point out the flaw in his logic (he's got scientific method and scientific consensus 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: Why does SQL choose the "wrong" index

    Bad cardinality estimations perhaps. Can you post the problematic plan?

    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 make distributed database in SQL server 2008?

    SQL Server doesn't do scale-out (distributed systems) at all well.

    What are you trying to do and 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: Are the posted questions getting worse?

    Looks like I hit a few nerves with Sunday's editorial....

    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,746 through 5,760 (of 49,552 total)