SQL Server UPDATE much faster than Oracle -- why??

The following MS-SQL Server (2000) UPDATE takes 10 seconds, while the same Oracle 10.2.0.1 UPDATE takes over 15 minutes. The data is exactly the same (data set of 97,000 rows) and the cpu/disk/memory configs are similar for both databases. The Oracle tables have indexes and statistics gathered. The Oracle Explain Plan shows that indexes are being used for the SELECT table joins, but not for the UPDATE table.
Any ideas?
MS-SQL UPDATE:
update lib_cust_summary
set rev_2003 =
SELECT
sum(ohd.PRICE_EXTENSION)
FROM
oehist_summary ohs
,customers c
,oehist_detail ohd
,lib_cust_summary lcs
WHERE c.cust_nbr     = lcs.cust_nbr
and c.cust_nbr = ohs.cust_nbr
and ohs.INVOICE_NBR = ohd.INVOICE_NBR
and c.cust_nbr = lcs2.cust_nbr
and ohs.CUST_NBR NOT LIKE 'XFER%'
and     ohd.prod_grp not in ('AV','FE')
AND ohs.INVOICE_DATE between {ts '2003-01-01 00:00:00'} and {ts '2003-12-31 00:00:00'}
group by c.cust_nbr
from lib_cust_summary lcs2;
Oracle UPDATE
update lib_cust_summary lcs /*+ index(lcs lib_cust_summary_pk) */
set rev_2003 =
SELECT /*+ index(lcs lib_cust_summary_pk) */
sum(ohd.PRICE_EXTENSION)
FROM
oehist_summary ohs
,customers c
,oehist_detail ohd
WHERE c.cust_nbr = lcs.cust_nbr
and c.cust_nbr = ohs.cust_nbr
and ohs.INVOICE_NBR = ohd.INVOICE_NBR
and ohs.CUST_NBR NOT LIKE 'XFER%'
and     ohd.prod_grp not in ('AV','FE')
AND ohs.INVOICE_DATE between '01-JAN-2003' and '31-DEC-2003'
group by c.cust_nbr
)

update lib_cust_summary lcs /*+ index(lcs
s lib_cust_summary_pk) */
set rev_2003 =Why are you forcing the optimizer to read a full table by using an index?
SELECT /*+ index(lcs lib_cust_summary_pk) */What happens if you remove this hint also?
sum(ohd.PRICE_EXTENSION)
FROM
oehist_summary ohs
,customers c
,oehist_detail ohd
WHERE c.cust_nbr = lcs.cust_nbr
and c.cust_nbr = ohs.cust_nbr
and ohs.INVOICE_NBR = ohd.INVOICE_NBR
and ohs.CUST_NBR NOT LIKE 'XFER%'
and     ohd.prod_grp not in ('AV','FE')
AND ohs.INVOICE_DATE between '01-JAN-2003' and
d '31-DEC-2003'You should not compare dates to strings
AND ohs.INVOICE_DATE between to_date('01-JAN-2003','DD-MON-YYYY') and
to_date('31-DEC-2003','DD-MON-YYY')What are the plans now and after the changes?

Similar Messages

  • Why is my iMac 450/128 much, much faster than my Powerbook 333/512?

    Hey boys and girls,
    I'm sort of new to the Mac world, but I'm working hard to become clever.
    So, here's the story. I have a Powerbook Bronze 333MHz with 512MB of RAM and the Toshiba 6GB drive it was born with and 10.3.9. I have a Bumbleberry (I think that's the "official" colour) iMac at work with a G3 at 450MHz and only 128MB of RAM also running 10.3.9.
    The iMac runs much, much faster than the Powerbook, despite barely meeting the minimum RAM requirements of 10.3. What are some possible reasons for this? I understand that this ain't no speed machine, but the Powerbook is so slow that there is a second or two second typing delay in an Adium chat window for heaven's sake.
    OK, so the iMac is technically faster, but I feel as though there is something wrong with the performance of the Powerbook, especially with all the RAM I've thrown at it (the Activity Monitor says that the PB has roughly 140MB of free RAM right now). I have a newer 40GB 5400 RPM drive that I'm tempted to install, to see if the 6GB drive is just old and tired (it whines a bit, so I'm sure it is to some degree) -- am I wasting my time?
    Thanks for any help in advance.
    Ugli
    PB Bronze   Mac OS X (10.3.9)  

    ugli:
    Welcome to Apple Discussions.
    You are well on the way to becoming clever. Really. Just by logging in and posting here you have started a process of learning that can go on until you are really clever.
    There are a number of reasons your iMac seems faster that the Lombard. One is that it has a faster processor. Secondly, even with more RAM your Lombard has a small, slow HDD. I don't know how much free space there is on your HDD, but 6 GB fills up quite quickly these days. I am sure the larger (and faster) HDD will make a difference. I had maxxed out the RAM on my Pismo, but it was when I installed a larger, faster HDD that I noticed the difference. And, of course, when I upgraded the processor I noticed the biggest difference. Still not match for the newer faster machines, but then, I'm not as fast as I used to be either.
    Good luck in your quest.
    cornelius
    PismoG4 550, 100GB 5400 Toshiba internal, 1 GB RAM; Pismo 500 OS X (10.4.5) Mac OS X (10.4.5) Beige G3 OS 8.6

  • Unable To Select From SQL Server table with more than 42 columns

    I have set up a link between a Microsoft SQL Server 2003 database and an Oracle 9i database using Heterogeneous Services (HSODBC). It's working well with most of the schema I'm selecting from except for 3 tables. I don't know why. The common denominator between all the tables is that they all have at least 42 columns each, two have 42 columns, one has 56, and the other one, 66. Two of the tables are empty, one has almost 100k records, one has has 170k records. So I don't think the size of the table matters.
    Is there a limitation on the number of table columns you can select from through a dblink? Even the following statement errors out:
    select 1
    from "Table_With_42_Cols"@sqlserver_db
    The error message I get is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from sqlserver_db
    Any assistance would be greatly appreciated. Thanks!

    Not a very efficient and space friendly design to do name-value pairs like that.
    Other methods to consider is splitting those 1500 parameters up into groupings of similar parameters, and then have a table per group.
    Another option would be to use "vertical table partitioning" (as oppose to the more standard horizontal partitionining provided by the Oracle partition option) - this can be achieved (kind of) in Oracle using clusters.
    Sooner or later this name-value design is going to bite you hard. It has 1500 rows where there should be only 1 row. It is not scalable.. and as you're discovering, it is unnatural to use. I would rather change that table and design sooner than later.

  • Insert data from SQL Server 2008 St.Ed to ORACLE 11gr2 St. Edition

    Dear all,
    I'm searching a solution for faster transmission of data of a db SQL Server (2008 St. edition) vs PROD db that is an ORACLE 11gr2 St. edition too.
    Actually this operation spend 1,5 hours but I'd like cut this time because size of the data grow up in future and this time could be a serious problem ....
    Looking on Oracle Enterprise Manager I've seen that main problem is about commit .. SQL Server every record insert into Oracle TBL generate a commit  ... unfortunately I cannot insert when commit must be done ... If will be solved it probably may be solved situation ...
    Thanks in advance for every idea.
    Andrea

    Nardo wrote:
    SQL server is connect with Oracle DB by OLEDB, commit every record is why SQL haven't possibility of manage it ... anyway I'm sorry for delay of the answer, I've solved using sqlloader ... faster and without impact ... must be have hight attention if there will be change any field ... that's all.
    REDO upgrade was done like first step because anyway it was too small.
    Thanks for you answer and sorry again for delay !!!!
    Thanks.
    If you are depending on MS SQL server technology to do this, you are going to be stuck with the performance of that technology.
    A few weeks ago we had a need to load institute a daily load of or DW from a MSSQL database.  The MS-centric person responsible developed a procedure (using MS tools) that took 4.5 hours to load 1.2 million rows.  I ran a session trace and the tkprof report revealed exactly what has already been described.  Single row insert and commit.  I knocked together a PL/SQL procedure that did a single INSERT .. (SELECT .. FROM TABLE@MSSQL). and it ran in 4 minutes.  Using the Oracle transparent gateway for ODBC.

  • SQL Server 2005 64 bit and Oracle 9

    Hi,
    I have a situation which involves SQL Server 2005 64 bit and Oracle 9 32 bit,
    I have a requirement that involves creating Stored Procedures from Oracle 9 which will call tables from SQL Server 2005 64 bit, with operations involving 'Select' 'Insert' 'Update' and 'Delete'.
    it works fins, except when attempting to search for an SQL Server 'varchar' value, wher no mapping is done
    though the Oracle sees the field as 'varchar2'
    can anyone please advice on this
    thanks
    Basel

    I think you're somehow not getting a resuklt because you're query doesn't return any data.
    Why the fiealdA=pat=parameterA construct? Wouldn't it just work if you changed it to fieldA=parameterA?
    Also, can you not just define parameterA as a varchar to make them match?
    What if you do "select * from (<your query without where>) a where a.fieldA = :parameterA"
    While not efficient, it would make the filtering occur in Oracle and maybe that will let you see the problem in native Oracle land and then reuse the solution in your orginal query. If that doesn't work, drop the where clause and inspect the data closly and hardcode a simple where without using PL*SQL or bind variables.

  • How to integrate from MS SQL SERVER 2005 and Flatfile to Oracle 10g.

    Hi
    I am new to ODI. I am trying to load sample data from MS SQL Server 2005 and Flatfile to Oracle 10g.
    1. I have created three models.
    1-1. SQL2005 (SRC_CUSTOMER table)
    1-2. Flatfile (SRC_AGE_GROUP.txt & SRC_SALES_PERSON.txt)
    1-3. Oracle 10g (TRG_CUSTOMER table)
    You may know I got those environments from the ODI DEMO environment.
    2. I could able to reverse the tables also.
    3. I have created an interface which contains source table (from MSSQL 2005), Flatfile and target table from ORACLE model.
    4. I have imported the knowledge modules. But I am confusing in selecting the knowledge modules to source and target tables.
    I've selected LKM File to SQL for flatfile model.
    I've also selected LKM SQL to SQL for MSSQL 2005 model and IKM Oracle Incremental Update for the target table (ORACLE).
    I've also implemented the interface that I created. It worked without errors. But there is no data in target table which is TRG_CUSTOMER.
    I really would like to know what happened and what the problems are.
    You can email me [email protected]
    Thanks in advance
    Jason Lee

    what did give for SRC_AGE_GROUP SRC_CUSTOMER join condition
    if it is
    (SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MAX
    give it as
    (SRC_CUSTOMER.AGE>SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE<SRC_AGE_GROUP.AGE_MAX

  • 3G much faster than WiFi now?

    Ever since I purchased the 3G iPhone my 3G performance is MUCH faster than my WiFi connection. My old iPhone was very fast on my WiFi connection but the new 3G iPhone is MUCH slower using the WiFi connection. It's so much slower that I have permanently turned WiFi OFF. My WiFi network is exactly the same. The only thing that has changed is the phone. I thought it would get better with the latest update but it hasn't. Anyone else experiencing this??

    Here are the results from my speed tests.
    3G TEST:
    262 kbps (Latency probe response is 300ms)
    317 kbps (Latency probe response is 300ms)
    572 kbps (Latency probe response is 300ms)
    293 kbps (Latency probe response is 300ms)
    589 kbps (Latency probe response is 300ms)
    AVERAGE SPEED IS 406kbps
    WiFi TEST:
    1763kbps (initial latency probe is 35976ms, rest are roughly 140ms)
    1543kbps (initial latency probe is 36095ms, rest are roughly 140ms)
    2239kbps (initial latency probe is 441ms, rest are roughly 140ms)
    CRASH (Had to restart Safari)
    1780kbps (initial latency probe is 22810ms, rest are roughly 140ms)
    1656kbps (initial latency probe is 29863ms, 28364ms, rest are roughly 140ms)
    2084kbps (initial latency probe is 411ms, rest are roughly 140ms)
    AVERAGE SPEED IS 1844kbps
    The problem with my WiFi is the initial connection takes forever. Once it gets going it is much faster. Looks like I have massive turbo lag. Since the initial WiFi ping takes longer than the entire 10 pings of the 3G test the WiFi connection “appears” much slower. Not good.
    Anyone have any idea how I can fix this? Should I try and return the phone?

  • Writing a stored procedure to import SQL Server table data into a Oracle table

    Hello,
    As a new DBA I have been tasked with writing a stored procedure to import SQL Server table data into an Oracle table. I have been given many suggestions on how to do it from SQL Server but I I just need to write a stored procedure to run it from the Oracle side. Suggestions/guidance on where to start would be greatly appreciated! Thank you!
    I started to write it based on what I have but I know this is not correct :/
    # Here is the select statement for the data source in SQL Server...
    SELECT COMPANY
    ,CUSTOMER
    ,TRANS_TYPE
    ,INVOICE
    ,TRANS_DATE
    ,STATUS
    ,TRAN_AMT
    ,CREDIT_AMT
    ,APPLD_AMT
    ,ADJ_AMT
    ,TRANS_USER1
    ,PROCESS_LEVEL
    ,DESCRIPTION
    ,DUE_DATE
    ,OUR_DATE
    ,OUR_TIME
    ,PROCESS_FLAG
    ,ERROR_DESCRIPTION
      FROM data_source_table_name
    #It loads data into the table in Oracle....   
    Insert into oracle_destination_table_name (
    COMPANY,
    CUSTOMER,
    TRANS_TYPE,
    INVOICE,
    TRANS_DATE,
    STATUS,
    TRANS_AMT,
    CREDIT_AMT,
    APPLD_AMT,
    ADJ_AMT,
    TRANS_USER1,
    PROCESS_LEVEL,
    DESCRIPTION,
    DUE_DATE,
    OUR_DATE,
    OUR_TIME,
    PROCESS_FLAG,
    ERROR_DESCRIPTION)
    END;

    CREATE TABLE statements would have been better as MS-SQL and Oracle don't have the same data types.
    OUR_DATE, OUR_TIME will (most likely) be ONE column in Oracle.
    DATABASE LINK
    Personally, I'd just load the data over a database link:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_table@mssql_db_link
    As far as creating the database link from Oracle to MS-SQL ... that is for somebody else to answer.
    (most likely you'll need to use an ODBC driver)
    EXTERNAL TABLE
    If the data from MS-SQL is in a CSV file, just use and external table.
    same concept:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_external_table
    MK

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Can a SQL SERVER table be accessed via Oracle Forms

    My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
    "Can a SQL SERVER table be accessed via Oracle Forms?"

    Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How much faster is Oracle.DataAccess.Client over System.Data.OracleClient ?

    Ok, I can use two differenct data providers in VisualCSharp/.NET:
    1.) MS built-in data provider:
    using System.Data.OracleClient ;
    2.) Oracle ODP.NET data provider:
    using Oracle.DataAccess.Client ;
    How much faster is Oracle over the built-in access provider ?
    Does Oracles ODP use MS basic ADO.NET as underlying layer
    or does it bypass it ?
    What are the other advantages when I use Oracle ODP?
    Is there a side-by-side comparison chart between the two access methods ?

    I would say that it is both for speed and for functionality. The ODP data provider has Oracle specific functionality that is not available via the MS data provider.
    From the ODP.NET page:
    ODP.NET includes many features not available from other .NET drivers, including a native XML data type, the ability to bind array parameters, RAC tuning, and statement caching.

  • Error converting SQL Server DDL and views to Oracle

    I am trying to convert SQL Serve 2008 on windows to Oracle 11g using SQL Developer 3.2.20.09. I am using the jtds-1.2.7 drivers to connect to SQL Server.
    I have made several attempts to run the conversion and am getting the tables, indexes, and triggers converted with no issue. However, my Procedures and views are not coming across. All of them are giving similar errors as:
    "Failed To Convert Stored Procedure get_compvision > esp3.dbo.get_compvision:unexpected end of subtree: Line 0 Column 0"
    When I log into the source SQL Server environment using SQL Developer, I get an empty SQL Editor window with "null" when I try to {right-click -> "Open"} on the Procedure.
    Logging into SQL Server Administrator as the same user I can see the source code, so the issue appears to be related to SQL Developer and not my user privleges. I am a dbo alias in SQL Server.
    In addition, if I click on a view, I can see the data and metadata, but not the SQL that defines the view. I see tabs for column, data, triggers, and details.
    In addition, if I go to the "capture" for my Migration project and drill down to procedures, I can see them listed, but each and every procedure gives me a "/* DDL not accesible */" error. I get teh same results for views, triggers and indexes.
    Can someone help me? I have been googling for days!
    Edited by: user4714217 on Jan 24, 2013 12:54 PM

    SELECT v.vnd_c, CASE v.use_parent_addr_flg WHEN 0 THEN a.str_1 ELSE pa.str_1 END AS str_1,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.str_2 ELSE pa.str_2 END AS str_2,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.str_3 ELSE pa.str_3 END AS str_3,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.city ELSE pa.city END AS city,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.state ELSE pa.state END AS state,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.zipcode ELSE pa.zipcode END AS zipcode,
    CAST((CASE v.use_parent_addr_flg WHEN 0 THEN (CASE a.foreign_flg WHEN 1 THEN 'Y' ELSE 'N' END)
    ELSE (CASE pa.foreign_flg WHEN 1 THEN 'Y' ELSE 'N' END) END) AS char(1)) AS foreign_flg,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.country ELSE pa.country END AS country,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.cre_d ELSE pa.cre_d END AS cre_d,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.mod_d ELSE pa.mod_d END AS mod_d,
    CASE v.use_parent_addr_flg WHEN 0 THEN a.mod_by ELSE pa.mod_by END AS mod_by
    FROM dbo.om_vendor AS v LEFT OUTER JOIN
    dbo.om_address AS a ON a.vnd_id = v.vnd_id AND a.addr_c = 1 INNER JOIN
    dbo.om_owner AS o ON v.owr_id = o.owr_id INNER JOIN
    dbo.om_address AS pa INNER JOIN
    dbo.primary_vendors AS pv ON pa.vnd_id = pv.vnd_id ON o.part_id = pv.part_id
    WHERE (pa.addr_c = 1)
    WHICH TRANSLATES TO
    SELECT v.vnd_c ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.str_1
    ELSE pa.str_1
    END str_1 ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.str_2
    ELSE pa.str_2
    END str_2 ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.str_3
    ELSE pa.str_3
    END str_3 ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.city
    ELSE pa.city
    END city ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.STATE
    ELSE pa.STATE
    END STATE ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.zipcode
    ELSE pa.zipcode
    END zipcode ,
    (CASE v.use_parent_addr_flg
    WHEN 0 THEN (CASE a.foreign_flg
    WHEN 1 THEN 'Y'
    ELSE 'N'
    END)
    ELSE (CASE pa.foreign_flg
    WHEN 1 THEN 'Y'
    ELSE 'N'
    END)
    END) foreign_flg ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.country
    ELSE pa.country
    END country ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.cre_d
    ELSE pa.cre_d
    END cre_d ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.mod_d
    ELSE pa.mod_d
    END mod_d ,
    CASE v.use_parent_addr_flg
    WHEN 0 THEN a.mod_by
    ELSE pa.mod_by
    END mod_by
    FROM om_vendor v
    LEFT JOIN om_address a
    ON a.vnd_id = v.vnd_id
    AND a.addr_c = 1
    JOIN om_owner o
    ON v.owr_id = o.owr_id
    JOIN om_address pa
    JOIN primary_vendors pv
    ON pa.vnd_id = pv.vnd_id
    ON o.part_id = pv.part_id
    WHERE ( pa.addr_c = 1 );
    Edited by: user4714217 on Jan 24, 2013 1:43 PM

  • Sun Studio 12 is still much faster than the newest express 11/08

    I gave the newest Express 11/08 a try on my laptop. I found that Studio 12 is still
    much faster than the express version at least on my laptop. See the old messge below.
    http://forums.sun.com/thread.jspa?threadID=5321607&tstart=15
    I think poor performance is a bug for a compiler. Sun should fix it.

    I think poor performance is a bug for a compiler. Sun should fix it.Thanks for noting :)
    This has already been filed as a bug - http://bugs.sun.com/view_bug.do?bug_id=6735472.
    And as you can see it is even already fixed.
    Unluckily it missed Express 11/08 integration time slot (by a mere week or so).
    It is reasonable to expect it to be available at the next Express/whatever release happens next.
    regards,
    __Fedor.

  • How to convert SQL Server hierarchical query (CTE) to Oracle?

    How to convert SQL Server hierarchical query (CTE) to Oracle?
    WITH cte (col1, col2) AS
    SELECT col1, col2
    FROM dbo.[tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo.[tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    DELETE a
    FROM dbo.[tb1] AS a INNER JOIN cte AS b
    ON a.col1 = b.col1

    See: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2129904
    Ah, just spotted it's a delete statement - you won't be able to do it using subquery factoring in Oracle.
    I had a go at trying to convert for you, but notice that you reference the cte from inside the cte... I can only assume you have a table called cte too...
    DELETE FROM dbo.tb1
    WHERE col1 = 12
    OR col2 IN (SELECT col1 FROM cte)
    Edited by: Boneist on 22-Jun-2009 09:19

  • Does SQL Server has an equivalent to Oracle's OEM?

    I am not sure if this is the correct area to ask my question.  My manager asked me if SQL Server has an equivalent to Oracle's OEM.  Does it?  I mean OEM is not like Microsoft SQL Server Management Studio.
    lcerni

    Hello,
    You can use SQL Server Management Studio to manage SQL Server instances as you do with Oracle Enterprise Manager, and you can have a management and performance
    data warehouse using SQL Server Management Data Warehouse (MDW) as explained on the following article:
    http://msdn.microsoft.com/en-us/library/dd939169(v=SQL.100).aspx
    MDW data collection can be customized.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Need help on tips of Enter Key form Default Action!

    Hi In Iplanet-Jato-Tips Enter Key Form Action Default Command i had a problem. Is there any way to avoid the Enter action. I need the same functionality which they specified in the tips,but not while enter on a text field. I need that functionality(d

  • MacPro/multiple OS drives permission problems? Need Help

    Hi, I am running a MacPro with both a Lepoard and Snow Leopard OS drives. I had a folder of image files on my Leopard desktop which I want to dupelicate on my Snow Leopard desktop to test my photo applications setup which I am trying to mirror on Sno

  • Spry validation problem for long forms

    I used the Spry Validation Widgets for my form validation. It works great, BUT the problem is that if you have a very long form and the user doesn't fill in one of the top required fields, it doesn't scroll the browser back up to the required field,

  • DISC EJECT PROBLEM?????

    Hi everybody!!! I just downloaded Mac OS X 10.4.9 today! But i have some problems. When i press the "Eject" button nothing happens, there is no Eject pictue on the screen. But when i hold the Eject button down for a second the drive Ejects. Is this a

  • How to change the step background in Teststand?

      I have a requirement for Teststand. I can not find a function to set the background color of steps/sequences in Teststand sequence editor.However, sometimes, it becomes so important that I prefer to have this function since sometimes we want to hig