Forum Replies Created

Viewing 15 posts - 43,966 through 43,980 (of 49,552 total)

  • RE: get last iserted records

    Sanaullah (10/7/2008)


    Hi,

    AS the values are changing every second the in procedure we should use

    WITH RECOMPILE, So wheen ever it is called it recompiles the query and get the last 50...

    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: Few interview questions

    Jeff Moden (10/7/2008)


    the limit on the number of indexes for a table is much less than that. (Teach a person to fish) Lookup "Maximum Capacity Specifications" in Books Online...

    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: The South African SQL Server Usergroup is Back

    Quit the 8-5 job and started consulting.

    I have hectic days where I work to midnight and I have mostly free days. It's awesome.

    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: Concurency of INSERT INTO SELECT statement

    Good point. You may need the serialisable then. Leave the xlock. It saves SQL having to convert an updlock into an xlock for the insert.

    As for the isolated, in terns...

    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: One database failing to backup , other databases fine

    Backup.. with no log shouldn't be run at all.

    You're discarding log entries and breaking the recovery chain. Practically what it means is that if the latest full backup fails...

    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: One database failing to backup , other databases fine

    Is it possible that something could be using the backup file? An anti-virus, a copy?

    Why are you doing a backup log with no log before the full backup? How often...

    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 Engine Tuning Advisor

    This is interesting.

    I ran a very simple workload in 2008's DTA against the AdventureWorks database. When I ran it to my 2008 server, I got no results. When I ran...

    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: Few interview questions

    Ahmad Osama (10/7/2008)


    1) Is it possible to have a NULL value in a foreign key field?

    Sure, providing the column is declared nullable.

    does Foreign key allows a column to be nullable.

    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: Best practive for running a DBCC CheckDB on a database that is setup for transactional Replication.....?

    Swirl80 (10/7/2008)


    but, running a repair / rebuild will take roughly 10mins as opposed to an hour to restore from previous nights backup and all the transaction logs.....and what if 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: Few interview questions

    Ahmad Osama (10/7/2008)


    Hi All,

    Here are few interview questions..

    1) Is it possible to have a NULL value in a foreign key field?

    Sure, providing the column is declared nullable.

    2) If I have...

    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: ERROR LOG

    That's the process ID (pid) of the SQL server executable. You'll find it in Task Manager.

    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: The South African SQL Server Usergroup is Back

    Well, someone had to do it. The usergroup's been dead for over a year. Now I actually have some time to do stuff like 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: Querry optimization to have better performance

    As an example:

    select c.AccountNumber, soh.OrderDate, soh.SalesOrderNumber from Sales.Customer c

    inner join Sales.SalesOrderHeader soh on c.CustomerID = soh.CustomerID

    where SalesPersonID = 282 and c.TerritoryID = 6

    select c.AccountNumber, soh.OrderDate, soh.SalesOrderNumber from Sales.Customer c...

    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: Querry optimization to have better performance

    jacob sebastian (10/7/2008)


    JOIN clause is evaluated before WHERE is evaluated. If your query contains a number of joins, you might get better performance by moving the filter to the ON...

    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: post Restore rebuilding indexes

    A restore creates the database exactly as it was at the time of backup, tables, indexes, etc. There's no rebuild necessary at all.

    What you do need to do after upgrading...

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