Forum Replies Created

Viewing 15 posts - 256 through 270 (of 302 total)

  • RE: nested transaction

    I've had some awful problems due to improper transaction handling. Things got lot better couple years ago when we fixed it all as described below.  You can get trickier & implement partial...

  • RE: Cursor declaration.....

    Gary, can you elaborate further why cursor variable is preferable to local cursor as Lars wrote?  Aren't both similarly limited in scope? 

  • RE: Spaceused on 6.5 version

    Wrote this long time ago, could probably do better job now but we still use it (still managing over 100 6.5 servers).  Has a hard-coded hackish calculation of log-space used for...

  • RE: please double check my code

    First need to fix previous post para #5 "if exists" to "if not exists" ... that's pretty embarassing.

    I have never explicitly tried to log SQL errors directly into a...

  • RE: SQL Server 2000 Table Hints

    Nice article, I especially near the end where real world experience is discussed.  I personally would like to see real world comparison between nolock and readpast, but maybe that's another...

  • RE: sp to update existing or insert new row -- it this a good way to do it?

     1.  The name prefix xp_ is typically used for extended stored procs (not written in T-SQL), I would not use it here.

     2.  After AS, add "set nocount on" line

     3.  I...

  • RE: Cursors - need to help to explain why to not use them

    I have similar purge/archive routines.  In dev environment I can run these as single large delete, and they run twice as fast as when cursoring thru and deleting 1 row...

  • RE: A query with too many joints...

    I agree w/Andrew Murphy.  You should either eliminate all tables from GEOGRAPHY to EXTENDED_ACC_SET_TYPE--they're not contributing anything, given the outer joins; or else change these joins to inner joins so...

  • RE: Difference between sysprotects and syspermissions?

    from http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops3.mspx

    sysprotects is a "dynamically created psuedo-table" while syspermissions is a real table.  Perhaps it is THE real table underlying sysprotects?

  • RE: NO LOCK vs FOR BROWSE

    Never used it in real life, but your link & BOL both explain this is to support scrollable client cursor in dblib apps.  I doubt you're using dblib for ASP/SQL app, I...

  • RE: please double check my code

    0.  At top, between AS and DECLARE, add line with "set nocount on"

    1.  cursor declaration:  depending on your coding stds, definitely add either "FOR READ ONLY" (ANSI) or FAST_FORWARD (TSQL). ...

  • RE: Can one use a Cursor in an UDF

    I have never wanted to do this before, but now curious.  Just made both a scalar and table-valued function that declares, opens, traverses, and deallcoates a simple cursor.  Both worked...

  • RE: Recurvice SP and Cursor

    Problem is global cursors.  Can fix with TSQL cursor declare syntax instead of ANSI-92:

                declare c0 cursor local fast_forward for ...

    Or you can change the DB option CURSOR_DEFAULT value to local to set this for...

  • RE: Hosting error message

    The problem really might be incorrect syntax near the AND if the connections on your hosted site wind up using different ANSI connection options than when you ran all this...

  • RE: Worst Practice - Not Qualifying Objects With The Owner

    I have accepted this recommendation due to the performance impact, and don't argue that. 

    But I find that this has killed for me the utility of object-ownership in general.  Has anyone made good use of object...

Viewing 15 posts - 256 through 270 (of 302 total)