Forum Replies Created

Viewing 15 posts - 316 through 330 (of 582 total)

  • RE: insert rows in another database

    What is the error? Check your login has sufficient access rights in DB2.

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Loop In a Select

    declare

    @zeno table(PK int identity primary key, x INT, y INT, total INT

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Creating table with identity field

    Or store the required starting value, then create your table with a seed of 0 and add the increment when you SELECT from the table. Is this for use in production/application...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Grouping Issue

    NOt sure if it's what you want, but try this:

    select

    IsAdvertised = coalesce

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Remove the lines from the query output

    you can do this for one value:

    "set nocount on declare @v-2 sysname select top 1 @v-2 = name from sysobjects print @v-2"

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: sp_executesql and output parameters errors

    create

    proc testprocparams @OutputParameter1 int output, @OutputParameter2 int output

    as
    select @OutputParameter1

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: SQL Server equivalent of Oracle''''s "MINUS" operator?

    You also need to identify a non-nullable column on which to do your NULL checks to implement anti-joins... hmm, need to stop posting the first thought that comes into my head.

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: SQL Server equivalent of Oracle''''s "MINUS" operator?

    Oh and by the way (clears throat) if there might be nulls SET ANSI_NULLS OFF for the joins...just a detail...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: SQL Server equivalent of Oracle''''s "MINUS" operator?

    declare @Tbl1 table(a int, b varchar(10), c varchar(10))

    declare

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Remove the lines from the query output

    print @@version

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Different query times for same query.

    post the query

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: While statement question

    And I just noticed that you use

    set @sql='exec Processcold ''' + @Dept + ''',''' + @Project + ''',''' + @State + ''',''' + @Request...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Source Safe Integration

    Ask on the SQL9 forum or SQL2K5 or whatever the latest imbecility is.

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: While statement question

    I assume that the sp Processcold changes data in the Leadrequest table. Can you post that code? I have never heard of SQL doing asynchronous execution of sps, but you can satisfy...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Horrible response time with Update Query

    The ideas are suggestions to help you diagnose the problem. If you're not sure how to do them, ask.

    First thing to try:

    select C3.Phone,
    count(*)
    from...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

Viewing 15 posts - 316 through 330 (of 582 total)