Forum Replies Created

Viewing 15 posts - 736 through 750 (of 920 total)

  • RE: Store images in database or webserver?

    I believe that the general consensus in the group is that the best practice is to store the images in a file system and the paths to the images, along with...


    And then again, I might be wrong ...
    David Webb

  • RE: Single Quote and Double Quote

    Does it think the stuff in the double quotes is a column name?  If so, the database options may be set to QUOTED_IDENTIFER ON, and that can be turned off...


    And then again, I might be wrong ...
    David Webb

  • RE: Error 2812 cannot find stored procedure

    The proc it's complaining about is the one you're explicitly executing and not a proc called by the one you're calling?

    Are you sure the database context actually points to the correct...


    And then again, I might be wrong ...
    David Webb

  • RE: Error 2812 cannot find stored procedure

    Is the procedure owned by dbo?  If not, you'll have to qualify the ownere when you call it, or change the owner to dbo. 


    And then again, I might be wrong ...
    David Webb

  • RE: Sql Server 2000 on Windows XP System

    My guess is that the data on the two systems is different.  If you remove the sub-query and run it by itself, do you get one result on the production...


    And then again, I might be wrong ...
    David Webb

  • RE: Truncate the log on a DB in Simple recovery model

    What sort of performance improvement were they expecting to get from a smaller log?  Do they know where the performance bottleneck is, or is just a guess?


    And then again, I might be wrong ...
    David Webb

  • RE: a beginner''''s question

    If by 'I don't have the database on my computer' you mean you don't have any version of the SQL Server engine installed on your computer, you won't be able to...


    And then again, I might be wrong ...
    David Webb

  • RE: Return Value Not Returning

    Could you also post the code that calls the function and the code that checks the return?


    And then again, I might be wrong ...
    David Webb

  • RE: Performance Tuning Memory Problem

    Tough to know what to do without knowing what symptoms the problems you are experiencing exhibited.  The numbers above don't necessarily point to anything without a better context.  If you were...


    And then again, I might be wrong ...
    David Webb

  • RE: query runs in fraction of time when run more than once

    It's not unusual for queries to run faster the second time.  The data is probably still in memory during the second execution and therefore all the physical IO is avoided.

    There...


    And then again, I might be wrong ...
    David Webb

  • RE: Stored Procedure Parameter Problem

    CREATE Procedure select_Proc1

    @Key3 varchar(10)

    As

    BEGIN

    IF (@key3 IS NULL)

    BEGIN

    Select key3

    From Or_Table 

    END

    ELSE

    BEGIN

    Select key3

    From Or_Table

    Where

    (key3 = @key3)

    END

    END


    And then again, I might be wrong ...
    David Webb

  • RE: How insert durning an update if no Record can be updated?

    Could you post the table DDL and the XML file (or a sample of it)?  I might have some time to play with this tomorrow.  It's been a while since...


    And then again, I might be wrong ...
    David Webb

  • RE: How insert durning an update if no Record can be updated?

    You can't have the 'END' after the OPENXML.  It breaks up the insert in an unacceptable manner.


    And then again, I might be wrong ...
    David Webb

  • RE: How insert durning an update if no Record can be updated?

     How about this?  I moved the 'END' from the middle of the insert.

    ALTER PROCEDURE [dbo].[Users_Update_Phones_2]

     

    @UserName nvarchar(256) = null

    ,@SqldocPhone

    varchar


    And then again, I might be wrong ...
    David Webb

  • RE: How insert durning an update if no Record can be updated?

    It's hard to tell without knowing what the primary key actually is (phone?  phoneid?) but here's a rough guess.

    IF (x.PhonesID = 0 OR...


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 736 through 750 (of 920 total)