Forum Replies Created

Viewing 15 posts - 48,931 through 48,945 (of 49,566 total)

  • RE: SQL 2005 (x64) linking to SQL 2000 (x86) problem

    ODBC? Since you say the DSN worked. Not ideal, I know, but as a work around....

  • RE: SQL 2005 (x64) linking to SQL 2000 (x86) problem

    Try using the SQL OLE DB driver, instead of the SQL Native Access Client driver. I don't know how well the native client works to SQL 2000.

    Nice to see another...

  • RE: SQL Dump Exception

    If all else fails, contact Microsoft PSS. They'll be able to read the stack dume and (hopefully) find the cause and a solution.

  • RE: Sysprocesses

    In 2005 it's better to use the dm views sys.dm_exec_sessions and sys.dm_exec_requests than sysprocesses. They're a lot better documented for starts

  • RE: Error handling deadlock issue

    Thanks for the suggestion, yes, whenever I checked the queryplan from the QA, the remote query always showed 100% cost.

    That's normal. Remote queries are intensive. what I meant by bad...

  • RE: Error handling deadlock issue

    Possibly multiple calls to the remote data source, depending on the evecution plan.

    No cardinality estimates available for the query optimiser, hence a large possibility of a bad plan.

    There are probably...

  • RE: How to alter Multiple columns in a table

    Only way to do that is to create a new table, copy the data over, drop the old table, rename the new. Then make sure that you replace the constraints...

  • RE: Non-logged transactions in database-mirroring.

    As Robert said, truncate is logged. It's known as a minimally logged transaction (or at least that's the term I've heard). If it wasn't logged then you wouldn't be able...

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    That works, the problem with it is that it prevents any index usage, if you have an index on f1 or f2.

    Reason been it's seen as a function on a...

  • RE: Non-logged transactions in database-mirroring.

    What specifically are you thinking of when you say 'non-logged transactions'?

    As far as I know, in full recovery mode, all transactions are logged, and datbase mirroring only works in full...

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    No bulk update, and I would hazard a guess that it's not the logging that's slowing your proc down.

    Is there any chance of getting someone to add an index? on...

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    Absolutely, yes. Cursors are massively inefficient.

    Again this is untested, but I think it should do the same as the cursor. I'd be very interested in how long it runs.

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    No merge statement. You'll have to write seperate update and insert statements. Something like this

    Update table2 set f1 = table1.f2*0.1

    FROM table1 where table2.f1=table1.f1 and table1.f1=20

    INSERT Into table2 (f1, f2)

    SELECT f1,...

  • RE: case with join

    Could you maybe post thr structure of you tables, some sample data and an indication of what you're trying to achieve?

    As Sergiy said, conditional joins is not somethign that should...

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    It looks a little wierd, but this is what you want. A not in for 2 fields.

    Select table1.* from table1 LEFT OUTER join table2 on table1.f1=table2.f1 and table1.f2=table2.f2

    WHERE Table2.f1 is...

Viewing 15 posts - 48,931 through 48,945 (of 49,566 total)