Forum Replies Created

Viewing 15 posts - 42,766 through 42,780 (of 49,552 total)

  • RE: fixed server role

    Ok, so you need the users, with their database and server roles and with the permissions that they have directly on database objects.

    One database or all?

    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: fixed server role

    So you want to display users who are members of database and/or server roles? With the roles they are members of?

    You're not interested in permissions that users may have directly...

    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: Trigger is fire event if no row is inserted

    Lynn Pettis (11/30/2008)


    declare @inscnt int; -- INSERTED row count

    select @inscnt = count(*) from INSERTED;

    if @inscnt > 0

    begin

    trigger code -- trigger code goes here

    end

    ...

    Or, preferably, since 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: Are the posted questions getting worse?

    Jonathan Kehayias (11/30/2008)


    I was completely floored when I got that kind of response the first time.

    I think I've seen just about everything. From that to the "Who are you 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: To know what are the queries are running

    Use either DBCC INPUTBUFFER or fn_get_sql in conjunction with sysprocesses. There's no simple, easy way of getting the commands on SQL 2000 though.

    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: CLR Stored procedure without visual studio?

    Jonathan Kehayias (11/30/2008)


    The approved assembly list is in the Books Online at:

    http://msdn.microsoft.com/en-us/library/ms403279.aspx

    Thanks. I'm more asking out of curiosity. I don't tend to write CLR.

    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 someone explain / point me to any article that explains how SQL Server performs joins

    You can also read this post. I don't know if there's more info than in BoL though.

    http://sqlinthewild.co.za/index.php/2007/12/30/execution-plan-operations-joins/

    The links after each section go to the blog of one of the SQL...

    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: To know what are the queries are running

    You can query the sysprocesses system table.

    As with many of the system tables, it's well documented in Books Online, including what each of the columns mean.

    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: CLR Stored procedure without visual studio?

    Jeff Moden (11/30/2008)


    I still want to know what the CLR(s) the op wants to write do. We all know that too many people give up on T-SQL way...

    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: appropriate use of triggers

    GilaMonster (11/30/2008)


    Change tracking

    Change Data Capture

    SQL Audit

    Just to be clear, those are three new features in SQL 2008 that can remove the need for triggers for auditing, depending what you want...

    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: Server is sluggish

    Per Books Online:

    sp_trace_setstatus [ @traceid = ] trace_id , [ @status = ] status

    Arguments

    [ @traceid = ] trace_id

    Is the ID of the trace to be modified. trace_id is int,...

    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 Mirroring in SQL 2008

    You don't have to specify a mirror, but you can. It was the same in SQL 2005. No changes in that area.

    Books Online SQL 2005:

    The data-access provider, whether SQL Native...

    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: Server is sluggish

    barb.wendling (11/30/2008)


    I was not able to delete the trace files after the trace was stopped. Can you explain why/how to remove these files?

    If the trace is stopped and closed (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: Selecting into a new temp table

    mike (11/29/2008)


    I cant see the temp table in management studio?

    Temp tables are local to the connection that creates them, they cannot be affected by anyone else and they are...

    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: Minatanace plan for backup

    Hmmm.....

    I know there were some issues with the maintenance plans in SP2. They were fixed in a re-release of SP2, but you've got the initial release of the service pack....

    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 - 42,766 through 42,780 (of 49,552 total)