Forum Replies Created

Viewing 15 posts - 646 through 660 (of 920 total)

  • RE: AND and OR

    D'oh..

    Yep, makes perfect sense.  Coffee has kicked in, brain now functioning.

    Your previous 'exists' query should work, I think, or use the 'in' syntax and check for a count() of...


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

  • RE: AND and OR

    How about:

    SELECT *

    FROM clientsproducts, clients WHERE clients.clientid = clientsproducts.clientid  AND clientsproducts.product in ('xxx','yyy','zzz') 


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

  • RE: AND and OR

    Having not had my first cup of coffee this morning, I'm not sure I'm following this question.

    Since there can't be a column with multiple values in the same row, an...


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

  • RE: Variable Location on Input Table

    If you're running this on the server, are you sure the relative path name is correct and that the account running the package has permissions to it?


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

  • RE: how to split the insert to table - depend the number

    Im not somewhere I can test this, but this might be a place to start.

     

     

    create proc num_insert (@rows_in int) as

    create table #testt ( somecolumn varchar(20) NOT NULL,

                                  someothercolumn int NOT...


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

  • RE: Novice sql server sql query question

    Post the whole query you're running (or the proc text if it's a proc).


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

  • RE: Am I Old-Fashioned?

    This is a specific example of the more general debate as to whether the DBMS should be a dumb storage mechanism or an intelligent guardian of data intergrity.

    I'm of the...


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

  • RE: very simple function won''''t work

    Hmmmmm.  I did a copy and paste of the code you gave and it worked fine for me.  Are you sure that the testTable table was created with the correct...


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

  • RE: Passing a field name to a stored procedure

    If you need to use the parameter to specify columns for DML statements, you have to build the entire statement on the fly and execute it using special execution syntax.  Look...


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

  • RE: Enclosing Text in Quotes

    How are you currently doing this, or is this a new, from scratch construction?

    What is this file going to be input into?  Can you use some other delimiter that is...


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

  • RE: Is there a better way to calculate median values, other than using cursors?

    I'm not sure where I got this (or how helpful it will be) but the following sql computes a median without cursors.  The application was, if I remebmer correctly, calculating...


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

  • RE: Burnt Out

    A lot of the folks I know with technology careers, including myself, tend to be more self-contained than the average person.  It does tend to make times of stress seem more...


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

  • RE: stored proc to create a table

    Post the entire proc and the steps you are going through to alter it.


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

  • RE: Problem with large delete (sql 2000)

    Extract the 30% you want to keep.  Drop and recreate the table and the clustered index.  Bulk insert the extracted rows and rebuild the other indexes.  I'd be willing to...


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

  • RE: Multiple Criteria store proc - need a bit of help

    Post the whole proc, the ddl for the table, some sample data, and the errors you received (stick with the first syntax).

     


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

Viewing 15 posts - 646 through 660 (of 920 total)