Problem in Dropping Constraints..

Hi All,
I am facing problem while dropping and recreating constraint.Requirement is i have table there is 4 check(C) type constraint and all are having different search condition.I need to alter table and drop one of them C type constraint and again recereate it.
select * from user_constraints where constraint_type='C' AND TABLE_NAME='xyz'
It will return multiple rows.
when i do
select * from user_constraints where constraint_type='C' AND TABLE_NAME='xyz' and search_condition = 'V_PARAM_CDE IN ''(''F_RECEP_PATCH'', ''NLS_LANGUAGE'')'
its throwing error : ORA-00997 illegal use of long datatype
Now i am not able to drop and recreate constraint.I need to write a script and through script need to drop and recreate it.
Please help me to sort out above problem.
Thanks n advance.
Anwar

1) Rather than dropping and recreating a constraint, you're better off disabling and re-enabling it. Depending on what you're trying to do, you could also make the constraint deferrable and defer validation to the end of the transaction.
2) Do you name your constraints? If not, could you? The easiest way to be able to uniquely identify a constraint is generally to give it an informative name.
Justin

Similar Messages

  • Problem while dropping a table

    Dear All,
    I am facing a problem while dropping a table in Oracle 10g.
    I am able to find the number of records in the table but unble to delete it.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    30028278
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    I have to drop this table from the database. Please help.
    regards,
    Santhosh

    Hi,
    IS it a table ? Is it your table ?
    Read this example :
    sqlplus scott/*****
    SQL> create table merchant_audit(col1 number);
    Table created.
    SQL> create public synonym merchant_audit for merchant_audit;
    Synonym created.
    SQL> grant select on merchant_audit to merchant;
    Grant succeeded.
    SQL> conn merchant/merchant
    Connected.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    0
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    See owner into the dba_tables, and if synonym into dba_synonyms.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • Problem in enabling constraint - after disabling and truncation of table .

    Hello Friends,
    I have a table called DRR_TABLES that has list of table names . The requirement is to truncate the tables present in DRR_TABLES except KEY_IDS table and table_name like '%TYPE%' table.
    written a procedure . successfullly truncating the tables from DRR_TABLES but while enabling constraints after truncation , I am getting problem in enabling constraints .
    ERROR at line 1:
    ORA-02270: no matching unique or primary key for this column-list
    ORA-06512: at "schema123.TRUNCATE_DRR_TABLES ", line 49
    ORA-06512: at line 1
    Heres is the code .
    PROCEDURE TRUNCATE_DRR_TABLES is
    x varchar2(200);
    v_tablecount number := 0;
    cursor c is select TABLE_NAME from DRR_TABLES where population_source='PUBLISHING' and TABLE_NAME != 'KEY_IDS' and TABLE_NAME NOT LIKE '%TYPE%';
    BEGIN
    DBMS_OUTPUT.PUT_LINE (' TRUNCATING DRR TABLES ...........');
    OPEN c ;
    LOOP
    FETCH c INTO x ;
    EXIT WHEN c%NOTFOUND;
    for c1 in (select table_name, constraint_name from user_constraints where TABLE_NAME = x and status ='ENABLED' ORDER BY CONSTRAINT_TYPE DESC )
    loop
    begin
    execute immediate ('alter table '||c1.table_name||' disable constraint '||c1.constraint_name|| ' cascade');
    NULL;
    end;
    end loop;
    EXECUTE IMMEDIATE 'TRUNCATE TABLE ' || x ;
    v_tablecount := v_tablecount + 1 ;
    DBMS_OUTPUT.PUT_LINE('TABLE TRUNCATED :'|| x );
    END LOOP ;
    DBMS_OUTPUT.PUT_LINE (' TOTAL TABLES TRUNCATED ' || v_tablecount );
    CLOSE c;
    OPEN c ;
    LOOP
    FETCH c INTO x ;
    EXIT WHEN c%NOTFOUND;
    for c2 in (select table_name, constraint_name from user_constraints where TABLE_NAME = x and status = 'DISABLED' ORDER BY CONSTRAINT_TYPE)
    loop
    begin
    execute immediate ('alter table '||c2.table_name||' enable constraint '||c2.constraint_name);
    NULL;
    end;
    end loop;
    END LOOP ;
    CLOSE c ;
    END TRUNCATE_DRR_TABLES ;
    LINE 49 is the line corresponding to enable constraint statement.
    Edited by: kumar73 on 3 Sep, 2012 11:44 PM

    It is such a pity that a user having 321 posts till date is unaware of basics of Posting a Question.
    1. You need to provide us with your Oracle version
    select * from v$version;2. You need to understand and get accustomed to using tags before and after Code or SQL's for better readability.
    3. You need to provide us with the Table Structure and the Constraints Definition.
    There are many things that looks like Bad Coding practices:
    <font face="Times New Roman" size=2>
    1. Avoid RBAR (Loops).
    2. Implement Bulk Collect.
    3. Why do you need to disable the constraints before truncating? Are you kind of handling the Referential Integrity Constraints?
    4. Duplicate checking of Disabled Constraints.
    5. When the procedure is being executed at Production Environment, are you going to Monitor the DBMS_OUTPUT? Why not Log the Statements into a LOG Table?
    6. Why use a TableCount variable? Would the TableCount Variable be not equal to the Number of Records returned by Cursor C?
    7. What is the need to use a NULL statement after every Execute Immediate?
    8. What is the Need to surround each execute Immediate with Begin .. End block?
    9. Where is your Exception handling Block? Forgot to write?
    </font>
    What has been your effort in finding which Constraint/Table is causing you the trouble?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in dropping primary key

    Hi,
    I have table EMP which has a primary key on EMPNO column.
    I want to drop the primary key with the below statement:
    "alter table emp drop primary key"
    It's showing error as "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    I'm totally confused how the error is creeping into it.
    Could anyone help me out.
    Thanks in advance,
    Souvik

    See here ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>create table test_souvik
      2      (
      3       id  number(10) not null,
      4       descc varchar2(30),
      5       constraints pk_iid primary key(id)
      6      );
    Table created.
    Elapsed: 00:00:02.10
    satyaki>
    satyaki>
    satyaki>insert into test_souvik values(1,'SOUVIK');
    1 row created.
    Elapsed: 00:00:00.04
    satyaki>
    satyaki>insert into test_souvik values(2,'SATYAKI');
    1 row created.
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>select * from test_souvik;
            ID DESCC
             1 SOUVIK
             2 SATYAKI
    Elapsed: 00:00:00.29
    satyaki>
    satyaki>
    satyaki>insert into test_souvik values(2,'BILLY');
    insert into test_souvik values(2,'BILLY')
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.PK_IID) violated
    satyaki>alter table test_souvik drop constraints pk_iid;
    Table altered.
    Elapsed: 00:00:02.76
    satyaki>
    satyaki>insert into test_souvik values(2,'BILLY');
    1 row created.
    Elapsed: 00:00:00.03
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>select * from test_souvik;
            ID DESCC
             1 SOUVIK
             2 SATYAKI
             2 BILLY
    Elapsed: 00:00:00.08
    satyaki>Regards.
    Satyaki De.

  • Problems with dropped frames in FCP 4.5 Log & Capture

    Thanks for the advice on my previous post regarding sound problems - those are now sorted, but I am having problems with dropped frames in Log and Capture. I am using FCP 4.5 with OS X 10.4.10 on a Powermac G4. CPU 867 mhz dual processor. L2 Cache 256 kb, L3 cache 1 mb. Memory 1g. Bus speed 133hz. I am capturing from a Canon XM1 via Firewire. The scratch disk is a 500gb Seagate FreeAgent USB 2.0, 7200rpm.
    Basically, the video and audio are fine while playing back in Log and Capture and I can control the device, but any attempt to capture, whether Capture Now or Clip result in a very jerky picture and aborts with dropped frames after a few seconds. The sound is ok for the few seconds before it aborts. There do not appear to be any problems with the timecode.
    My capture preset is DV Pal 48hz.
    Any advice or pointers gratefully received.
    Thanks, Ally

    Well quite. I have just tried it in the internal hard drive and it works fine now. I am going to have to capture everything to my small hard drive and move it across to the external. Then, when I have finished I am going to bang my head against the wall and buy an external HDD with Firewire.
    Thanks,
    Ally

  • Help dropping constraints

    Hi,
    I have about 12 constraints in my user_constraints for tables that no longer exist. So how do I remove them?
    The constraints have all adopted weird names such as 'BIN$2qcYHsnhR7eVViBGHj+57g==$0' and it shows that they exist on similarly weird tables such as 'BIN$2gdcO6pUQ3OeA+QJuJ0xWA==$0'.
    Unsurprisingly, the following sql does not work:
    alter table BIN$2gdcO6pUQ3OeA+QJuJ0xWA==$0 drop constraint BIN$2qcYHsnhR7eVViBGHj+57g==$0;
    thanks,
    Martin

    Martin,
    They are in recyclebin, so you need to purge recylebin
    purge dba_recyclebin;
    or
    purge user_recyclebin;Regards
    Edited by: OrionNet on Apr 22, 2009 8:26 PM

  • Recreating foreign key not working? two proc one to drop constraint and another to recreate foreign constraint in database?

    CREATE PROC [dbo].[SP_DropForeignKeys] 
    AS
    BEGIN
    DECLARE @FKTABLE_OWNER SYSNAME, @FKTABLE_NAME sysname, @FK_Name sysname
    DECLARE Cursor_DisableForeignKey CURSOR FOR  
    SELECT   schema_name(schema_id), object_name(parent_object_id), name
    FROM   sys.foreign_keys
    OPEN Cursor_DisableForeignKey
    FETCH NEXT FROM   Cursor_DisableForeignKey  
    INTO  @FKTABLE_OWNER  , @FKTABLE_NAME, @FK_Name 
    DECLARE @SQL nvarchar(max)
    WHILE @@FETCH_STATUS = 0   
    BEGIN  
    SET @SQL  = 'ALTER TABLE [' + @FKTABLE_OWNER + '].[' + @FKTABLE_NAME   
               + ']  DROP CONSTRAINT [' + @FK_NAME + ']'  
    select @sql
    EXECUTE (@SQL)
    FETCH NEXT FROM   Cursor_DisableForeignKey INTO @FKTABLE_OWNER, @FKTABLE_NAME, @FK_Name
    END  
    CLOSE Cursor_DisableForeignKey
    DEALLOCATE Cursor_DisableForeignKey
    END
    create proc [dbo].[SP_CreateForeignKeys]
    as
    DECLARE @schema_name sysname;
    DECLARE @table_name sysname;
    DECLARE @constraint_name sysname;
    DECLARE @constraint_object_id int;
    DECLARE @referenced_object_name sysname;
    DECLARE @is_disabled bit;
    DECLARE @is_not_for_replication bit;
    DECLARE @is_not_trusted bit;
    DECLARE @delete_referential_action tinyint;
    DECLARE @update_referential_action tinyint;
    DECLARE @tsql nvarchar(4000);
    DECLARE @tsql2 nvarchar(4000);
    DECLARE @fkCol sysname;
    DECLARE @pkCol sysname;
    DECLARE @col1 bit;
    DECLARE @action char(6);
    SET @action = 'CREATE';
    DECLARE FKcursor CURSOR FOR
        select OBJECT_SCHEMA_NAME(parent_object_id)
             , OBJECT_NAME(parent_object_id), name, OBJECT_NAME(referenced_object_id)
             , object_id
             , is_disabled, is_not_for_replication, is_not_trusted
             , delete_referential_action, update_referential_action
        from sys.foreign_keys
        order by 1,2;
    OPEN FKcursor;
    FETCH NEXT FROM FKcursor INTO @schema_name, @table_name, @constraint_name
        , @referenced_object_name, @constraint_object_id
        , @is_disabled, @is_not_for_replication, @is_not_trusted
        , @delete_referential_action, @update_referential_action;
    WHILE @@FETCH_STATUS = 0
    BEGIN
              BEGIN
            SET @tsql = 'ALTER TABLE '
                      + QUOTENAME(@schema_name) + '.' + QUOTENAME(@table_name)
                      + CASE @is_not_trusted
                            WHEN 0 THEN ' WITH CHECK '
                            ELSE ' WITH NOCHECK '
                        END
                      + ' ADD CONSTRAINT ' + QUOTENAME(@constraint_name)
                      + ' FOREIGN KEY ('
            SET @tsql2 = '';
            DECLARE ColumnCursor CURSOR FOR
                select COL_NAME(fk.parent_object_id, fkc.parent_column_id)
                     , COL_NAME(fk.referenced_object_id, fkc.referenced_column_id)
                from sys.foreign_keys fk
                inner join sys.foreign_key_columns fkc
                on fk.object_id = fkc.constraint_object_id
                where fkc.constraint_object_id = @constraint_object_id
                order by fkc.constraint_column_id;
            OPEN ColumnCursor;
            SET @col1 = 1;
            FETCH NEXT FROM ColumnCursor INTO @fkCol, @pkCol;
            WHILE @@FETCH_STATUS = 0
            BEGIN
                IF (@col1 = 1)
                    SET @col1 = 0
                ELSE
                BEGIN
                    SET @tsql = @tsql + ',';
                    SET @tsql2 = @tsql2 + ',';
                END;
                SET @tsql = @tsql + QUOTENAME(@fkCol);
                SET @tsql2 = @tsql2 + QUOTENAME(@pkCol);
                FETCH NEXT FROM ColumnCursor INTO @fkCol, @pkCol;
            END;
            CLOSE ColumnCursor;
            DEALLOCATE ColumnCursor;
            SET @tsql = @tsql + ' ) REFERENCES ' + QUOTENAME(@schema_name) + '.' + QUOTENAME(@referenced_object_name)
                      + ' (' + @tsql2 + ')';           
            SET @tsql = @tsql
                      + ' ON UPDATE ' + CASE @update_referential_action
                                            WHEN 0 THEN 'NO ACTION '
                                            WHEN 1 THEN 'CASCADE '
                                            WHEN 2 THEN 'SET NULL '
                                            ELSE 'SET DEFAULT '
                                        END
                      + ' ON DELETE ' + CASE @delete_referential_action
                                            WHEN 0 THEN 'NO ACTION '
                                            WHEN 1 THEN 'CASCADE '
                                            WHEN 2 THEN 'SET NULL '
                                            ELSE 'SET DEFAULT '
                                        END
                      + CASE @is_not_for_replication
                            WHEN 1 THEN ' NOT FOR REPLICATION '
                            ELSE ''
                        END
                      + ';';
            END;
        PRINT @tsql;
        IF @action = 'CREATE'
            BEGIN
            SET @tsql = 'ALTER TABLE '
                      + QUOTENAME(@schema_name) + '.' + QUOTENAME(@table_name)
                      + CASE @is_disabled
                            WHEN 0 THEN ' CHECK '
                            ELSE ' NOCHECK '
                        END
                      + 'CONSTRAINT ' + QUOTENAME(@constraint_name)
                      + ';';
            PRINT @tsql;
            END;
        FETCH NEXT FROM FKcursor INTO @schema_name, @table_name, @constraint_name
            , @referenced_object_name, @constraint_object_id
            , @is_disabled, @is_not_for_replication, @is_not_trusted
            , @delete_referential_action, @update_referential_action;
    END;
    CLOSE FKcursor;
    DEALLOCATE FKcursor;
    GO
    exec [dbo].[SP_DropForeignKeys] 
    exec [dbo].[SP_CreateForeignKeys]
    droped proc worked perfect but when i execute [dbo].[SP_CreateForeignKeys] and try to see again foreign key constraints but result is empty?
    can anybody suggest me what's wrong with these script?

    droped proc worked perfect but when i execute [dbo].[SP_CreateForeignKeys] and try to see again foreign key constraints but result is empty?
    Well, if you have dropped the keys, you have dropped them. They can't be recreated out of the blue. You need to use modify procedure to save the ALTER TABLE statements in a temp table, drop the keys, truncate the tables, and the run a cursor over the
    temp table. In a single transaction, so that you don't lose the keys if the server crashes half-way through.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Problem with dropped connections...

    Hi,
    I'm having a problem with dropped connections. Let me explain...
    I have a computer with Windows XP SP3 where I have installed Toad, PuTTY and Oracle 10g client. I need to connect to several database and Linux hosts and have a strange problem. What happens is the following:
    1 - When I arrive at a customer location, I boot up my computer (I'm not using hibernate or standby) and plug-in to the network.
    2 - After I login to Windows, every session in PuTTY (to Linux), SQL*Plus or Toad (to database) gets dropped after only a few seconds.
    3 - I reboot my computer again, and everything works fine.
    I have no explanation for this beahavior. This happens across different customers, database versions and Linux OS kernels and versions. It seems to be related to something in my computer that is fixed on the 2nd restart.
    Has anybody experienced any similar problem?
    Thank you!

    pmcatarino wrote:
    I plug directly at client's site.
    And I can access the web and messaging on the first reboot... the only thing that appears to be malfunctioning is putty and toad as I stated above.
    Edited by: pmcatarino on Oct 24, 2008 6:25 PMDoes that mean you can ping to the server without problem when putty and toad having problem?
    If you install an Oracle client on your machine and configure TNS, will the sqlplus drop as well? Or download and install SQL Developer, see if SQL Developer having any problem connect.

  • Dropping Constraints before loading

    I am trying to improve the performance of some maps that are running long.
    I want to drop the constraints on the fact tables before each load and then re-build them after the load is done. I was thinking pre and post mapping operators to run a procedure would do it.
    But my question is, once i drop the constraints on the fact tables my map would not detect the unique constraint violations on that fact table anymore, am i right ? or would they get detected after the constraints are re-enabled and then the map would fail?
    Thanks in advance for your feedback.

    Your assumptions are correct. If you drop constraints, you'll not have how to detect unique cons. violations.
    You may want to use enable constraint bla bla bla NOVALIDATE;
    For further info, see:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:8806498660292
    I don't like this alternative though...
    Are you using surrogate keys? If so, you may want to disable primary key only and have an alternate key (unique) to avoid data integrity issues.

  • Set cursor for dropping constraints

    I want to create a function that would drop constraints and return a boolean if it was done.
    I'd like to pass in the schema name and owner ...I've tried various ways and seem to be getting messed up on the cursor ...
    the errors I am getting are about the select statement. PLS-00103 encountered the Select when expecting one of the following :
    We're building a test environment and will need to do this many many times. I know this isn't new to dbas, but when I do searches
    I just can't seem to find something similar that meets our needs. I just want it to run in a script and the schema and table name
    get passed in... all the constraints are found and disabled.
    Thank you.
    ------ PASS in the schema name, owner
    declare
    cursor cur (schema_in varchar2(20), table_name_in varchar2)
    select owner, table_name, constraint_name
    from dba_constraints
    where owner =schema_in
    and table_name =table_name_in
    order by table_name, constraint_name;
    ----- use those values to do the drop looping until they are all done....
    begin
    for v in cur(&schema_name, &a_table) Loop
    execute immediate'Alter Table' || owner || '.' Table_name || 'Disable_constraint ' || constaint_name using
    v.owner, v.table_name, v.constraint_name;
    end loop;
    close cur;
    return (true);
    end dropconstraints

    You can't bind in ddl statements:
    declare
         cursor cur (schema_in varchar2, table_name_in varchar2)
         is
                select owner, table_name, constraint_name
                    from dba_constraints
                   where owner = schema_in and table_name = table_name_in
              order by table_name, constraint_name;
    -- use those values to do the drop looping until they are all done....
    begin
         for v in cur ('&schema_name', '&a_table')
         loop
              execute immediate   'Alter Table '
                                         || v.owner
                                         || '.'
                                         || v.table_name
                                         || ' Disable constraint '
                                         || v.constaint_name;
         end loop;
    end;

  • Problems using drop down menus in safari v7

    I am having problems using drop down menus in safari v7. e.g. on the BMW used cars website (http://usedcars.bmw.co.uk), there's a drop down box for location. This only goes up to 50 miles on my macbook but goes up to national on my iPad. Any ideas?

    Thanks Peter, Dale. Looks like it is back to the drawing board for me then!
    I tried to import it through MS Word but iPad doesn't support the document.  Looking into converting document into a Numbers spreadsheet as it has drop down boxes but unfortunately need to buy the £6.99 numbers app for iPad to make it worthwhile. Might just stick to good old fashioned "cross out the answers that don't apply" using pen and paper..................

  • Problem while dropping tablespace

    Hi all,
    I am getting following error while i am trying to drop tablespace
    ORA-02449: unique/primary keys in table referenced by foreign keys.
    I am using followin statement to drop tablespace;
    drop tablespace QAREF430 including contents and datafiles;
    wat might be the problem?
    Thanks.

    wat might be the problem?You have some referential integrity constraints, outside QAREF430 tablespace, pointing to a table inside QAREF430 tablespace. Try
    drop tablespace QAREF430 including contents and datafiles cascade constraints;

  • TRUNCATE TABLE NOT WORKING AFTER DROPPING CONSTRAINTS

    Hi,
    I have a table with a foreign key constraint. I know you can't truncate tables when there are foreign key constraints. So I drop the constraints before running the TRUNCATE TABLE command. But SQL Server is still stating there are foreign key constraints
    even after they have just been dropped.
    When I use SQL Server Management Studio to generate a drop & create script on this table or any other table with an FK consttaint, the generated script fails stating that there are still foreign key constraints??
    I have the same problem for every table that has FK constraints, for those without FK, TRUNCATE table works without issues.
    The end goal is to reset the identity value of the primary key. Since DBCC does not work on Azure, TRUNCATE TABLE is the only way left, especially if you can't even drop and recreate tables with FK constraints.
    What am I missing here?
    Peter

    Hi,
    Thanks for posting here.
    TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause; however, TRUNCATE TABLE is faster and uses fewer system and transaction log resources.
    TRUNCATE TABLE removes all rows from a table, but the table structure and its columns, constraints, indexes, and so on remain. To remove the table definition in addition to its data, use the DROP TABLE statement.
    If the table contains an identity column, the counter for that column is reset to the seed value defined for the column. If no seed was defined, the default value 1 is used. To retain the identity counter, use DELETE instead.
    Restrictions
    You cannot use TRUNCATE TABLE on tables that:
    •Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.)
    •Participate in an indexed view.
    •Are published by using transactional replication or merge replication.
    For tables with one or more of these characteristics, use the DELETE statement instead.
    TRUNCATE TABLE cannot activate a trigger because the operation does not log individual row deletions. For more information, see CREATE TRIGGER (Transact-SQL).
    Truncating Large Tables
    Microsoft SQL Server has the ability to drop or truncate tables that have more than 128 extents without holding simultaneous locks on all the extents required for the drop.
    Permissions--------------------------------------------------------------------------------
     The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable. However, you
    can incorporate the TRUNCATE TABLE statement within a module, such as a stored procedure, and grant appropriate permissions to the module using the EXECUTE AS clause.
    You cannot truncate a table which has an FK constraint on it.
    Typically my process for this is:
    Drop the constraints
    Trunc the table
    Recreate the constraints.
    Hope this helps you.
    Girish Prajwal

  • Problems with dropped calls and no reception on Samsung Continuum

    My mother and I both purchased a Samsung Continuum in late March 2011, and have experienced the same problems with the phone.  The device drops at least 2-3 calls per day, often on the same conversation; we have not found that location or time of day makes a difference.  The phone freezes up frequently, even if no apps are running in the background.  We lose our 3G network reception frequently, and cannot access our texts, emails, or the internet.  The screen saver kicks in even when we are actively dialing a number, or typing in a text message.  The overall performance of the phone is also poor, and it is quite slow much of the time.
    We have raised this issue several times with a representative at one of the Verizon stores, but he states that he can find no problem with the phone, and that these issues may not be covered under our insurance plan.  None of my friends with non-Samsung phones are having the same problems with phone reception and performance.  I am aggravated enough with these issues that I am considering reactivating my old Blackberry, which worked like a charm.
    I am not upset that my phone has not been updated to Android 2.2.  I just want the phone to perform as stated, and not fail at its primary function:  making and receiving phone calls.  I am not certain if these problems originate with the phone, Verizon, or Samsung, nor do I care.  I just want to resolve these issues as soon as possible, or I will have to look at other alternatives.
    Thank you.

    If this doesn't work...now what??? I have a useless $400 plus piece of unreliable junk. My Motorola Razor was ions more reliable than this phone...very, very sad but true.
    What carrier were you using with the Razor? AT&T? Same area?
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Problem with drop down list: on Windows it works, on Mac doesn't

    Dear forum,
    I am reworking the MultiPageImporter2.5 script by Scott Zanelli; going to add some new features.
    So far I added a drop down list so the user could choose on which pages to place a pdf/indd file: odd/even/both.
    However I encountered a strange problem: on Windows it works as expected, but on Mac nothing happens when I click the popup. When I write a dialog, I almost always use automatic layout and never encountered such a problem before. But in this script the author uses fixed position for the controls so I followed his coding style:
    dLog.pageSideMode = dLog.pan4.add('dropdownlist', [10,110,180,40], ["Odd and Even Pages", "Only Odd Pages", "Only Even Pages"]);
    dLog.pageSideMode.selection = pageSideMode;
    The drop down list is visible both on Windows and Mac, but on Mac it’s not clickable. What am I doing wrong?
    Another question: in the script, the author created three popups. In the code, each popup has a different height (the last element of the “bounds” array) – 60, 88, 33. Does it make sense to make them different if on the screen they look exactly the same (I mean height).
    Here’s my version of the script.
    I think the easiest solution for me here is to rework the dialog part from fixed to automatic layout.
    Thanks in advance.
    Kasyan

    Hi johniko,
    In my version of the script, the user will have to choose a file to be placed directly in the dialog box. The selected file can be saved into a preset. I'm reworking it for another person (not for myself) and that's what he wants.
    Regards,
    Kasyan
    P.S. By the way, you can simply merge all your pdf-files into a single document in Acrobat.

Maybe you are looking for

  • Multiple sound cards on one syst

    is that possible? to control different sound environments... If yes how many can I have on one system, what type of hardware/software to control it's I will like to have on Windows. Regards DonabDon

  • Web Dynpro application session expired

    Hi SDN, We have installed a new NW04s system and patched it with SP13 I  can access SAP J2EE Engine start page  without any problem. But when  I click on  “Web Dynpro Content Administrator” and click any of the buttons “Create Jco Destination” or “Ch

  • Spontaneous sleep

    Macbook Pro running OS X Lion 10.7.3. Computer goes to sleep spontaneously, sometimes after less than a minute after wakeup. To wake up, I have to close the lid and wait a considerable amount of time. I have tried monkeying with the Energy Saver sett

  • Understanding bug ID and release notes documentation

    Hi ! we planned to upgrade IOS switch on some switches, most switches are running 4 to 10 or more IOS release in late in compare to the most recent one.  We would like to upgrade because we had some issue with port flapping and spanning-tree portfast

  • CS5 loading wrong images!

    See it in action here: http://www.youtube.com/watch?v=-SprebJ4R-U Issue#1 I can live with. Issue#2 is a deal breaker, and a very strange one at that!