Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,186 total)

  • RE: Permissions in Enterprise Manager

    They really can't.  The way of seeing this in EM is that IF you are the same permission-level or greater THAN you can see through the GUI IF not then...

  • RE: Reboot or Restart on SQL server ?

    1.  IF you are at the machine you can see if it gets hung after any remote connections are severed

    2.  IF the machine doesn't come back up you are there...

  • RE: Using NOT EXISTS on composite Key

    How bout something like?

    SELECT A1.HostName, A1.ApplicationName

      FROM AppUsers A1

        LEFT JOIN (SELECT HostName, ApplicationName

                     FROM AppUsers

                   WHERE IsCustodian = 1)

        A2 ON A1.HostName = A2.HostName

          AND A1.ApplicationName = A2.ApplicationName

    WHERE...

  • RE: Tricky date range check in SQL

    We use a Calendar table as well.  It has all sorts of uses for reporting and logging IF Holiday, EOQ, EOW, EOY, weekday/weekend, etc...

  • RE: The insult before Christmas

    unfortunately, I am also joining the ranks of no money for Christmas party.  I just bought Laura a VERY expensize present.  We just bout a house and move in January...

  • RE: sa Audit Trail

    change the password without telling anyone but your manager.  You will find out VERY quickly.

    Seriously though..  I don't know of anything INTERNAL to SQL that will manage this.  Possibly IMCEDA...

  • RE: SQL Server performance counters disappeared

    We had to contact MS and they wound up coming on-site.  There are app. multi different ways of performing this and they may not always work.  In our shop they...

  • RE: Help with joining views

    #1  Indexes are always good.  I have ran execution of some queries that took 10 minutes and when I changed WHERE and forced it to use the proper index took...

  • RE: The insult before Christmas

    Even scarier is going home for whatever reason and running into your friends that you remember as thin with ahir and finding a fat bald man with bad teeth and...

  • RE: Tricky date range check in SQL

    Nick,

    Look at the CONVERT function.  I prefer the following to strip TIME:  CONVERT(VARCHAR(10), GETDATE(), 101)

  • RE: Sorting with Varchar Field

    Steve is right.  Depending on how you want it ordered you may want to consider JOINING a 2nd table on this field and then ORDER BY a numeric in the...

  • RE: Where should my SP be stored?

    I would use the destination server for a couple of different reasons (which may or may not be correct)

    1. IF this is to only be used by your application why muddy...
  • RE: How to get the DTS Package name from spid?

    Something we do is have a tracking table that every DTS package writes to that contains their start/end and SPID for cross reference purposes.  We also use that table for...

  • RE: The insult before Christmas

    Ah yes, the IT department is fashionable 1x every 20 - 30 years and WE get the shaft.....

  • RE: Tricky date range check in SQL

    How bout?

    DECLARE @Date      DATETIME

    DECLARE @StartDate DATETIME

    DECLARE @EndDate   DATETIME

    DECLARE @Loop      INTEGER

    DECLARE @Cnt       INTEGER

    SET @Loop      = 1

    SET @Cnt       = 1

    SET @StartDate = '2004-11-20'

    SET @EndDate   = '2004-11-30'

    SET @Loop      = DATEDIFF(DAY, @StartDate, @EndDate)

    SET @Date     ...

Viewing 15 posts - 676 through 690 (of 1,186 total)