Forum Replies Created

Viewing 15 posts - 2,161 through 2,175 (of 3,232 total)

  • RE: Error: 1203 ... attempting to unlock unowned resource PAG: 6:1:1560968

    There is a fix for this in SP4.  Are you sure you are on SP4?  If so, run a DBCC CHECKDB.  If it comes up with errors, fix them.  If...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Need a query to find specific tables row counts

    Run this and then run the results from the results pane (you'll have to remove the UNION ALL clause from the last statement).

     

    SELECT 'SELECT ' + CHAR(39) + Name +...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Error 156, problems with a case statement

    No, you cannot use a CASE statement in this manner.  You mentioned that you need to do this on a row-by-row basis.  Does this mean that you are using a...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Troubleshooting: Jobs not running.

    Is your new server in the same domain as the older server?  Have you tried droppind and recreating the user: AD\asrodrig?  Try running EXEC xp_Logininfo 'AD\asrodrig' and see what you...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Cannot insert duplicate key row in object ''''bla.bla.bla'''' with unique index ''''bla.bla.bla''''.

    The error itself is pretty straight forward.  The application is attempting to insert a row and the key already exists.  This leaves a couple of questions unanswered.  What does...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Cannot insert duplicate key row in object ''''bla.bla.bla'''' with unique index ''''bla.bla.bla''''.

    For starters, use Books Online and this web site.  Books Online is a great SQL Server resource and contains information on many common errors such as the duplicate key error...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Professional Development Plans

    Great article Andy.  I would add that a professional development program should not be limited to the scope of your profession.  I’m sure we’ve all heard...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Row_number() in SQL 2000 ...

    I'll have to disagree here FP.  I think the problem is solved.  Just as Jeff said (and I said in my first post), an IDENTITY column will be required for...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: unique top record

    DECLARE @Class TABLE (Class_ID int, Class_Date datetime, Location_ID int, Course_ID int)

    DECLARE @Location TABLE (Location_ID int, Display_City varchar(50), Location_City varchar(50))

    DECLARE @Course TABLE (Course_ID int, Course_Type_ID int)

    SET NOCOUNT ON

    INSERT INTO @Class

    SELECT...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Moving SQL Jobs to Another Server

    For the jobs, just right-click on Jobs in EM and generate a SQL Script.  You'll have to set your Maintenance plans up manually.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Row_number() in SQL 2000 ...

    This can also be accomplished by using a numbers or tally table to ‘expand’ the groupings out.  For this to work, you’ll need an Identity column...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    You're welcome.  As for the different approach, Set based thinking will seem different until you are used to it, at which point, procedural code will stick out like a sore...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: appending zeros to integer

    DECLARE @Ints TABLE (value int)

    SET NOCOUNT ON

    INSERT INTO @Ints

    SELECT '1' UNION ALL

    SELECT '12'

    SELECT CASE LEN(Value) WHEN 1 THEN '0' + CAST(Value as char(2)) ELSE CAST(Value as char(2)) END as...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Missing 0

    What datatype are you using?  If INT, your out of luck as you cannot append a zero to the front end of an integer, SQL Server stores 01234 as 1234...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: appending zeros to integer

    This sounds like something that should be done via code or SQL as the data is pulled out of the column.  You can set an integer value of 1 to...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 2,161 through 2,175 (of 3,232 total)