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...

  • RE: AND and OR

    How about:

    SELECT *

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

  • 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...

  • 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?

  • 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...

  • RE: Novice sql server sql query question

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

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • RE: stored proc to create a table

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

  • 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...

  • 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).

     

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