Forum Replies Created

Viewing 15 posts - 44,011 through 44,025 (of 49,552 total)

  • RE: Be a good Database Administrator?

    I'll add one more to the list.

    Disaster recovery

    - Know how to fix corruption

    - Know what to do when someone drops a table (though if you've done the security...

    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: alter db_id

    No.

    You can detache and reattach the DB and it may get a different database ID, but no way to set which one it gets.

    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: Please explain code used to identify currently executing SQL statements

    No, because datalength already takes unicode/non-unicode into account.

    SELECT DATALENGTH('abc') returns 3

    SELECT DATALENGTH(N'abc') returns 6, because it's a unicode string and hence requires 2 bytes/character

    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 Express as a remote distributor Transactional Replication

    The problem with express is that it doesn't have SQL Agent and hence cannot run any of the replication jobs. I don't know if it's possible to run all 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: Optimizing a Stored Procedure

    Somehow I don't think indexes are going to help. From what I can see, none of the conditions that may be in the where clause are sargable. All of 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: Best practive for running a DBCC CheckDB on a database that is setup for transactional Replication.....?

    The recommended way to fix corruption is to restore a clean backup. Repair should be a last resort when there is no good backup available.

    p.s. Rebuild your indexes after 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: SQL Server 2008 - Exam 70-453

    As far as I know, only two of the TS exams are currently available (432 and 448) The third of the TS exams (433) is in beta. I think that...

    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: get last iserted records

    DECLARE @MaxID INT

    SELECT @MaxID = Max(ID) FROM Customer

    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: Logins without auser database mapping.

    Does the script you posted here (http://www.sqlservercentral.com/Forums/Topic581019-146-1.aspx) not work?

    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: DB users which don't have an associated login in SQL server 2000

    Replace sys.databases with sysdatabases. Replace sys.server_principals with syslogins and replace sys.database_principals with sysusers

    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: Parameter Sniffing with sp_ExecuteSQL ?

    Looks like the took the 'don't use distinct' to heart too. Guess they didn't realise that a group by with no aggregations does exactly the same thing

    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: Parameter Sniffing with sp_ExecuteSQL ?

    Very quick first glance.

    There are two places with very bad estimates:

    The clustered index scan of Inv_AeX_AC_Client_Agent, which estimates 1901 rows and gets over 6000. It may be that...

    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: Parameter Sniffing with sp_ExecuteSQL ?

    Cool. I'll take a look and get back to you tomorrow or monday. It's late here.

    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: sqlserver 2005 Express

    That's odd, because merge replication doesn't use the transaction log. Transactional replication does to track changes from the publisher. According to the opentran output you posted earlier, there are definitly...

    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: DB Health Check

    Security checks: Do any of the fixed database or server roles have members that they shouldn't? Are a large number of unexplained login failures occurring?

    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 - 44,011 through 44,025 (of 49,552 total)