Forum Replies Created

Viewing 15 posts - 49,441 through 49,455 (of 49,552 total)

  • RE: How to remove no owner table?

    I've had this before, though I don't know what caused it. Looking at the table list in Ent Manager the table had no owner listed. When I checked sysobjects, 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: back again to question asked on 27th Giving pain to DBA

    Might I suggest you post in the SQL Server administration or SQL Server General forums.

    More people read those and you are more likely to get an answer.

    This forum is...

    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: Question of the Day for 27 Jun 2005

    A covering index on OrderDate, OrderID should do the job.

    You'll be surprised how many people don't realise that functions prevent index usage, or don't think about indexes at 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: DBCC SHRINKFILE Problems

    My pleasure.

    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: DBCC SHRINKFILE Problems

    DBCC Shrinkfile expects the logical name of the file to be shrunk as the first parameter, not the name of the database.

    Run sp_helpdb 'MyTemp' and see what it returns as...

    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: Output Parameters for a newbie

    Just one thing. Never start a stored procedure name with sp_

    Very much recomended against due to the way SQL resolves names when executing a stored procedure.

    sp_ is the prefix 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: Output Parameters for a newbie

    You're creating a table named TRENDDATA and inserting into TRENDDATA_

    btw, did you test my code? I ran it on the sample data you posted yesterday and got results that look...

    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: Output Parameters for a newbie

    If anyone can do this without a cursor, I'd be very interested in seeing it.

    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: Output Parameters for a newbie

    Well, this caught my intrest, so I thought I'd give it a quick try. Sorry Remi. );

    This appears to work, if I've understood your requirements properly.

    CREATE PROCEDURE SumOfMaximum (@Tid 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: Querying for updated information

    That assumes that you have an identity column, a timestamp or a datetime field defaulting to getdate()

    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 2000: MS DTC Problem

    I've had some fun issues with distributed transactions to the AS/400. In my experience, they're not DTC errors, but problems with the IBM AS/400 OLE DB driver.

    Experiment with wrapping 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: Select any 5 rows in random

    What happensd is that SQL creates a temporary work table in TempDB for the columns returned from the query, plus a new column for the NewID, populates the work table...

    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: Hi i need to do a trace of a procedure that is called from another that is encrypted

    You could run profiler and capture the sp:StmtStarting event. That will show you every statement executed inside the stored proc, even if it is encrypted.

    That way, you'll be able...

    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: @@Servername, Developer Edition, XP Pro

    Hmmm, I'm running Developer (2000) as a named instance on an XP Pro machine (SP 1) and @@Servername returns the name of the instance.

    Have you tried through query analyser, or...

    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: HELP with Triggers [AGAIN]

    'Order by 1' says to order the resultset by the first column in it, in this case, the count(*)

    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 - 49,441 through 49,455 (of 49,552 total)