Forum Replies Created

Viewing 15 posts - 43,426 through 43,440 (of 49,552 total)

  • RE: Left Join acting like Join

    If neither query does exactly what you want, post the table structure, some sample data and your expected result.

    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 understand this one...

    MrBaseball34 (10/30/2008)


    Well, that doesn't seem to work either.

    Please define 'that doesn't seem to work'. Did it throw an error? If so, what error. Does it give incorrect results? If so,...

    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: Left Join acting like Join

    The second portion of your where clause is effectively turning the join into an inner join

    select count(new.PolicyID) as New, count(ren.PolicyID) as Ren

    from Policies new left join Policies ren on new.PolicyID=ren.OldPolicyID

    where...

    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: VS2008 - just query scripts?

    Duplicate post.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic594447-391-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: How to turn on DDL Auditing?

    There's nothing similar to audit logins for anything else. If you want to track DDL changes, you'll have to use a DDL trigger or a server-side trace that's permanently running....

    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 start Sql server 2000 service, how to troubleshooting ?

    Backup and restore's the safest. If you haven't made changes to model on SQL 2000, you can ignore that one. Unless you're moving all the jobs, etc, ignore msdb as...

    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: Segmentation fault in tempdb

    Loner (10/30/2008)


    The size of tempdb is 328 MB.

    Yes, you said so earlier. What's the initial size for tempDB? The size it gets created at on a restart? (Should...

    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: Segmentation fault in tempdb

    Loner (10/30/2008)


    When I query the sysprocesses, I saw a lot of PAGEIOLATCH_SH. What is that meant?

    What were the wait resources?

    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: PROBLEM IN FINDING THE CERTIFICATION

    These two links should help

    http://www.microsoft.com/learning/mcp/mcts/sql/

    http://www.microsoft.com/learning/mcp/mcitp/dbdev/

    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: Segmentation fault in tempdb

    Loner (10/30/2008)


    The autoshrink is not turned on in tempdb but the unrestricted file growth is turned on.

    As it should be. What's the initial size for tempDB?

    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: Querying view ignores ORDER BY clause

    You are correct, an order by in a view or subquery is ignored. Order by only applies if it's in the outer select statement, unless there is a row-limiting top...

    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 increase amount of log.trc files in SQL Server 2005

    The default trace is hard coded at 5 files. The only thing you can do with it is disable it.

    I would suggest you set up your own trace. Put 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: Switching to Simple Mode for Reindex and then back to Full Recovery

    Matt Miller (10/29/2008)


    Not knowing your background, you may also start by making sure you fully understand what recovery modes are and why you would use one over the other. ...

    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 we need to use UPDATE STATISTICS ?

    ALZDBA (10/30/2008)


    GilaMonster (10/29/2008)


    ... SQL 2000? ...

    Indeed.

    Try doing DBCC indexdefrag from time to to time on those 'no downtime' systems. It is an online operation.

    This means that I'll only be...

    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 shrink temdb having lot of unallocated space internally

    Makarand Mohandas (10/29/2008)


    Another option is try to backup of the tempdb before u try truncate it or shrink it.

    You can't backup tempDB at all

    Backup database tempdb to disk =...

    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 - 43,426 through 43,440 (of 49,552 total)