Forum Replies Created

Viewing 15 posts - 45,556 through 45,570 (of 49,552 total)

  • RE: Clustered and Non Clustered index

    That's a big topic. Worthy of a book or two.

    When use an index - Anytime you want a query to run without having to scan the entire table to find...

    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: query taking too much time

    bohra_anand (7/18/2008)


    pl see the attached file where at one time my sqlserver.exe size goes to 113 mb & in next process it goes to 200+ mb & query is not...

    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: bcp in users to sysusers table in sql 2005

    The roles that the users are assigned to. The object level permissions that the users have (if applicable)

    The first you can query from sys.database_role_members and sys.database_principals. The second you can...

    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 Processes

    You can read through the error log to get a high-level overview. The details are quite complex. I saw a section in a book I read recently and the description...

    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: bcp in users to sysusers table in sql 2005

    Maybe. Are they all members of 1 or more roles? Do all the users have the same permissions? If not, do you have a table or export file somewhere with...

    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: query taking too much time

    ALZDBA (7/18/2008)


    And sweet is the odor of victory 😎

    But sometimes no one acknowleges it ... "after all you just did your job".

    The best part was that a few months later...

    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: Suggestion on Updating Statistics

    Mostly it's if you notice queries running poorly because of out of date statistics. Normally that happens on large tables (million + rows) where the index is on an increasong...

    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: bcp in users to sysusers table in sql 2005

    Yes. Assigne them to the required roles or grant them the permissions that they should 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: bcp in users to sysusers table in sql 2005

    That depends on what your fix user script does.

    Oh, for your info. SysUsers ins't a table in SQL 2005. It's a view.

    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: Shrink Transaction Logs in SQL 2005

    rinu philip (7/20/2008)


    Think this method below would help you : 🙂

    BACKUP LOG name WITH TRUNCATE_ONLY

    USE db

    DBCC SHRINKFILE (name_Log, 1)

    Be very careful of Backup log with truncate. If you are 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: Perfmon conters for SQL Server 2000

    It depends what you're looking for. What's your (or your manager's) definition of database health?

    I'd start with things like Transactions/sec (to get the throughput), Buffer cache hit ratio and page...

    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: bcp in users to sysusers table in sql 2005

    Waseem Jaleel (7/20/2008)


    I mean, how do I retrieve info about the permission for each user using this alternate table that you (Gail Shaw) has suggested..only if I...

    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: bcp in users to sysusers table in sql 2005

    Do all the users have the same permissions? If so, create a DB role, grant the permissions to that and assign each user to the role.If not, you'll have to...

    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 Processes

    I'm not sure I understand your question. Processes within SQL, processes visible to the OS, something else entirely?

    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: bcp in users to sysusers table in sql 2005

    vidhya sagar (7/20/2008)


    (You can update the tables if you connect to server as DAC)

    You can read the system tables if you connect with the DAC. Updating them is still not...

    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 - 45,556 through 45,570 (of 49,552 total)