Forum Replies Created

Viewing 15 posts - 13,501 through 13,515 (of 13,876 total)

  • RE: Bulk insert into primary key

    From what you've said, I think the temp table / table variable (each should be tried to see which is faster) is the way to go too.

  • RE: Need some help tweaking SQL select

    Can you change the back-end field types to nvarchar, rather than doing the converts?  I'm guessing not.

  • RE: subtracting one table from another

    So you actually want to DELETE the data from table A that's already in tableb?

    If so

    delete from TableA

    where tableA.ID in (select ID from tableB)

    should do the trick.  Obviously, I'm assuming...

  • RE: Need some help tweaking SQL select

    Also, getting rid of the in-line CONVERTs would speed things up.

  • RE: Bulk insert into primary key

    There's probably a fancy way, but you could always create a new ID field in table Y (identity, seed = 12000 (or whatever you need your numbering to start at),...

  • RE: DTS Hangs when Scheduled as Job

    Could this be a security issue?  If it runs when you execute it manually, yet not when it is executed by the SQL Server Agent, that is what I would...

  • RE: Cannot Attach Database Error 1105

    Can you overwrite the path with one that is valid before the error message appears?  Sorry, I should know, but I haven't done this for a while.

  • RE: DTS Problem

    Are you sure it's a 'him'?

    Only kidding ladies

  • RE: Cannot Attach Database Error 1105

    I agree with AJ Ahrens - it should recreate the log file if none exists.

    Can you post the full device 'activation error' message?

    Regards

  • RE: Problem displaying data

    But aren't your customers in tblPaxList?  When you create the ServiceRefNo self join on tblPaxList, the returned recordset will be larger than required because ServiceRefNo is not unique on tblPaxList...

  • RE: Problem displaying data

    Sorry to mess you about, but this is tough to crack without also seeing the base data.  As you've already identified, you're getting too many results as a consequence of...

  • RE: Temp Tables and Table Variables

    What error message do you get?

  • RE: Problem displaying data

    I am sure that this can be achieved without the need for the query you originally requested.

    Can you post sample details showing the query you are running, the output you...

  • RE: Problem displaying data

    This sounds like an unusual way to do things.  Can you go into more detail about what you will be using the resultset for and perhaps we will find another, more...

  • RE: need help on writing a sub-query

    So

    select product, city

    from product_cities

    where city = 'boston' or city = 'chicago' or city = 'denver'

    is not what you want?  (I know you're using IDs, but the theory's the same)...

Viewing 15 posts - 13,501 through 13,515 (of 13,876 total)