Forum Replies Created

Viewing 15 posts - 46 through 60 (of 254 total)

  • RE: Duplicate Users

    Use the obscure and hard-to-find-out-about sp_change_users_login procedure. Check in BOL for details; here's the template I use when I need it (which is often):

    -- Check over scrambled SIDs

    EXECUTE...

  • RE: Public Role

    It depends upon how the database is being used. If you have applications or users currently using the database who are gaining their access rights via the permissions assigned to...

  • RE: LOCK:TIMEOUT in Tempdb, ObjectID=0

    Definitely. Alas, I am just the Operations DBA, and have no control over what the application's actually doing in there. By and large, neither do the developers; Hibernate is...

  • RE: Public Role

    [All of this applies to SQL 2000, and 7.0 too, I think. Don't know about 2005 yet...

    You cannot disable or drop the public role. However, you can revoke...

  • RE: LOCK:TIMEOUT in Tempdb, ObjectID=0

    Thanks for the info, this points me in the right direction.

    One question, where did you learn that "Object ID of zero is the database object"? I hit BOL, Google,...

  • RE: is it possible to query a job?

    I don't know how much this will help, but here's a query I wrote long ago to do a quick informational dump on all jobs on an instance. For...

  • RE: Beware of Search Argument (SARG) Data Types

    I really wish you'd written this article a few months ago. Our system was performing poorly, and I only stumbled across the "...N'stringValue' queries leading into skipped indexes and...

  • RE: sp_xml_preparedocument inside UDF

    I did a google check on this, and it looks like Jorge posted his question on any number of sites back when. Looks like the general consensus is: you...

  • RE: sp_xml_preparedocument inside UDF

    Hey, add me to the list on this one too. (At two years and counting, it might be a bit of a wait...)

    Philip

  • RE: Users retained in DB when restoring to alternate server

    It also sounds like you're having login configuration problems. This is a bit of a complex situation, and this is only a rudimentary explanation; check out BOL for the...

  • RE: Index Statistics not there

    David,

    Thanks, that was useful. They imply that corruption may be the cause (I have run DBCC CHECKDB, it found no problems), and (re)creating a clustered index might fix it,...

  • RE: Multiple data types for the same column

    2.5 cents, 2.5 years late:

    First off, Don Becker would appear to be right--hard to tell without the detailed system requirements.

    Assuming that it's like you said, sounds like type/exclusive subtype. For...

  • RE: SQL AUDIT

    Got a bit more time now to do a quick scan.

    Steve Jones discussed several auditing techniques in a series of articles (here's the last--for obvious reasons, these articles never link...

  • RE: Index Statistics not there

    More clues: Restored a copy of the database from last week, and the statistics are there. Restore it from this week, and they're not.

    Messing around with both restored databases,...

  • RE: Index Statistics not there

    Addenda: I created some indexes on individual columns, and statistics were there. It did partial sampling, and didn't like the resulting selectivity on one column, so I ran sp_updatestats......

Viewing 15 posts - 46 through 60 (of 254 total)