Deleting Database Contents

Hi,
I want to delete the contents of my table. I have the following requirements:
(*) i want to specify the table name dynamically
(*) i dont want to provide any where/from condition in the delete statement
(*) i want to delete all the contents of the database.
<b>I am working on 4.0B version.</b>
Is this possible ?
thanks

Hi Navneeth,
PARAMETERS:
  pa_dbnam TYPE tabname.
DELETE FROM (pa_dbnam)
      WHERE mandt = syst-mandt.
Ofcourse this is a VERY dangerous progam!
Regards,
John.

Similar Messages

  • Delete a content of field from a database table

    Hi All,
    i want to delete a content of field mtart from mara where matnr = 0000001.
    plz help me out  ASAP plz also provide a piece of code for doing so....
    Thanks and Regards.
    Ashu Singh.

    Hi,
    You Can Do Like This,
    Parameters p_matnr type mara-matnr.
    Delete from mara where matnr eq p_matnr.
    Try This

  • Error While Deleting cube Contents in Process Chain

    Hi All ,
       I am getting a error when i am trying to delete the contents of two cubes in a Process Chain . The data of one cube is getting successfully deleted but while deleting the second one it results in a error.
    Following are the messages :
    1>Database table /BIC/FZCFEXP01 was deleted and recreated     
    2>Database table /BIC/EZCFEXP01 was deleted and recreated     
    3>Database table /BIC/FZCFEXP02 was deleted and recreated     
    4>Database table /BIC/EZCFEXP02 was deleted and recreated     
    5>Content Of Data Target ZCFEXP01 Successfully Deleted     
    6>Content Of Data Target ZCFEXP01 Successfully Deleted     
    7>System error: RSDU_DATA_EXISTS_TABLE_DB6/ DB6     
    8>Drop Cube Failed In Data Target ZCFEXP02
    Can anyone Help ??
    Sam
    Any pointers . Help is highly appreciated.
    Edited by: Samir Bihari on May 14, 2009 8:54 AM
    Edited by: Samir Bihari on May 14, 2009 8:55 AM

    Hi,
    I'm not sure for this issue but it may relate to SP issue...
    jst chk this notes:
    Note 385293
    Note 987754
    rgds,

  • How to delete Autofill contents Safari 2.0.4

    How can I get rid of Autofill or delete Autofill contents? I find it anoying to to be prompted with several suggestions that are not what I want. I know there is private browsing...but what about everything that is already in autofill, or the next time I forget to turn it on? Any help would be greatly appreciated.

    Hi
    I may have misunderstood your original question.
    I find it anoying to to be prompted with several suggestions that are not what I want.
    I thought you were asking about the multitude of prompts appearing when you begin to type a web address into the Address window.
    If you are asking about the autofill information that appears when you are completing a form, then yes, as you discovered, the reset command will remove that data in its entirety from the system. It also removes a lot of other data too. You can find out the specifics of what is affected by going to the Help Menu>Safari Help. When the Help screen appears, type "reset" in the spotlight panel. This will lead you to a more thorough explanation of the reset command.
    If there are specific instances where the auto-fill information is not accurate or helpful, you can remove that data without throwing away everything else by going to Safari Preferences>Auto-fill>Other forms>Edit. There, you can remove specific entries without losing the entire database.

  • How to delete the Contents in a transaction?

    Hi all.
    I had a definite transaction that will be run by a pgm having 5 columns in a table.Now the users dont need 2 columns .
    How can we delete the contents of that table?
    Reply soon.
    Regards,
    SSR.

    I am not 100% sure what you mean.
    Do you only want to remove the two columns from the report (assumed it is a Z-report)
    In that case if it is an ALV list, just remove the fields from the field catalog and the user won't be able to see them any more.
    If it is just a standard list, you would have to remove the write statements for those two columns.
    For standard reports there is not much you can do without doing a mod or in case of an ALV list create a variant for that user which hides the fields he doesn't want to see. The variant is an option for the Z-reports as well.
    If you are talking about fields in a database table you would like to remove (assumed that it is a Z-table, you can just remove the fields in transaction SE11. After deleting the fields you will have to use the Database Utility (SE11-Utilities-Database Object- Database Utilities - Activate and Adjust Database). This will remove the columns including the data in it from that table.
    Never remove any fields from a standard table - even deleting values out of certain columns for standard tables is a very bad idea unless you really exactly know what you are doing.
    Hope that helps,
    Michael

  • Original deletion from content server once we delete DIR

    Hi,
    I'm deleting DIR using transaction CDESK. Will this method, delete original which is checked in content server?
    Regards,
    Yogesh

    Hi Yogesh,
    Yes,successful execution of the CDESK transaction for deletion ensures that the DIR and the meta data is deleted from the database and all the associated original files are deleted from the database/Content Server depending upon the storage location opted for.
    Regards,
    Pradeepkumar Haragoldavar

  • Shared Services database content not found in the specified database."

    Trying to configure Version 11 and get the error: "Shared Services database content not found in the specified database". Relevant details on my issue as below:
    - I'm running Windows 7 and SQL Server 2008 on my local machine.
    - I did have a previous installation of Hyperion 9 on my machine which I uninstalled before installing 11. However, after uninstalling, I could still see the Hyperion EPM (empty folders) in my "All Programs", which I manually deleted.
    - Now I've installed Essbase 11, and for now am trying to configure Hyperion Foundation only (Common Settings and Configure Database is greyed out, I checked deploy to applicaiton server. I left the calculation manager and workspace blank).
    - The next window is the "Configure Shared Services and Database Registry" option. I chose "Perform 1st time Configuration of Shared Services Database". When I enter the relevant details, I got the error mentioned above. My error log file entries are as below:
    (Jul 14, 2010, 02:10:50 PM), com.hyperion.hit.registry.Registry, ERROR, Exception when trying to store the component
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:546)
         at java.util.ArrayList.get(ArrayList.java:321)
         at com.hyperion.hit.registry.JDBCRegistryUtils.storeComponent(JDBCRegistryUtils.java:612)
         at com.hyperion.hit.registry.JDBCRegistryUtils.saveComponent(JDBCRegistryUtils.java:166)
         at com.hyperion.hit.registry.Registry.storeComponent(Registry.java:2749)
         at com.hyperion.hit.registry.Registry.getInstance(Registry.java:353)
         at com.hyperion.config.wizard.impl.RegistryWizardRule.validate(RegistryWizardRule.java:66)
         at com.hyperion.cis.config.wizard.adapter.WizardFormAdapterPanel.queryEnter(WizardFormAdapterPanel.java:80)
         at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(Unknown Source)
         at com.installshield.wizard.swing.SwingWizardUI.currentBeanChanged(SwingWizardUI.java:842)
         at com.installshield.wizard.StandardWizardListener.currentBeanChanged(Unknown Source)
         at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1822)
    (Jul 14, 2010, 02:11:08 PM), com.hyperion.cis.config.wizard.adapter.WizardFormAdapterPanel, ERROR, Shared Services database content not found in the specified database.
    (Jul 14, 2010, 02:11:58 PM), com.hyperion.cis.config.wizard.adapter.WizardFormAdapterPanel, ERROR, Shared Services database content not found in the specified database.
    I believe version 11 supports Windows 7, but correct me if I'm wrong. What's going on here? Any suggestions on what I should try ?

    Actually when I installed version 9, I never got around to configuring shared services and so never had a shared services database in SQL Server to begin with.
    One question about the registry entry you told me to delete: The (HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions) which currently exists would be the entry for version 11 which I have installed right? It's the only entry for Hyperion Solutions in the registry.
    After uninstalling versino 9, C:/hyperion still existed on my machine (though it didnt have all the subfolders which it did prior to uninstalling), so I manually deleted it before installing verison 11.
    I wouldn't mind installing it on a compatible version of windows, but the thing is that at this point this is all that is available to me.
    and I don't have any other oracle products.
    thanks....

  • How to delete table content for particular filed in a table?

    Hi Experts,
    How to delete table content for particular field in table?
    Thanks
    Ravilla

    Is it a standard or customer table, changing a standard table with non-standard tool can raise database inconsistencies...
    Then use search tool for &SAP_EDIT (*) or look for BAPI/BDC...
    Regards,
    Raymond
    (*) Also look for notes from 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT to 1915828 - CO-OM-Tools: Technical enhancement of SE16N

  • Unable to delete the contents of the Cube.

    Hi All,
      I am trying to delete the contents of the cube selecting the option<b>(Delete Data</b>) from the context menu of the cube.
    I am getting the error message as
    Database Table /BI0/F0PA_C01 Could not be deleted or recreated.
    is there a way to solve this issue.
    Thanks & Reegards
    Chetana. S

    Hello Chetana,
    If you have to delete the data from the cube and then again schedule full updates, following are the steps:
    (please dont bother about the present error and go ahead with the following steps):
    1. right click on cube-> Manage. In the requests tab, select all requests and click on the delte icon below.
    click on refresh till you dont see any requests on this screen.
    2. if you had some initialisation loads done before in this cube, go to the infopackage for the init loads.
    In the infopackage change screen, go to the menu scheduler-> initialisation options for source system-> delete the request(if any).
    3. the above steps will ensure that all data is deleted from the cube. you can then go ahead and load full update data loads on the same( if you are sure you want to go ahead with the full update option).
    Hope this helps..
    thanks,
    (dont forget to assign points for helpful answers...)

  • Iphoto has just deleted the contents of the last album i uploaded by unexpectedly closing whilst viewing photos. It is also refusing to recognise "flagged" photos. any ideas?

    iphoto has just deleted the contents of the last album i uploaded by unexpectedly closing whilst viewing photos. It is also refusing to recognise "flagged" photos. any ideas?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Force deleting all content in UCM

    Hi
    I have a UCM that is n a bad state, its database has records of content that it does not have on disk. So if I try and delete all content via the archiver, it fails with a message saying (there are too many errors).
    How can I force delete all content? Empty some specific database tables and delete some directory on disk, or?
    Thank you
    Søren

    Hi Jonathan, Srinath
    Download the example that are in http://jonathanhult.com/blog/2013/07/delete-content-ridc/ and run this successfull, the out is:
    13:14:28.266 [main] DEBUG c.j.w.c.d.DeleteContentRIDCUtils - Service binder before executing:
    13:14:28.268 [main] DEBUG c.j.w.c.d.DeleteContentRIDCUtils - {dataSource=RevisionIDs, IdcService=GET_DATARESULTSET, UserTimeZone=UTC, UserDateFormat=iso8601, resultName=RevisionIDs}
    13:14:28.480 [main] DEBUG c.j.w.c.d.DeleteContentRIDCUtils - Successfully called service
    13:14:28.480 [main] DEBUG c.j.w.c.d.DeleteContentRIDCUtils - Service binder after executing:
    13:14:28.481 [main] DEBUG c.j.w.c.d.DeleteContentRIDCUtils - {dataSource=RevisionIDs, UserDateFormat=iso8601, UserTimeZone=UTC, ClientEncoding=UTF-8, IdcService=GET_DATARESULTSET, addAlert=1, nextRow=0, dUser=sysadmin, refreshSubjects=, blDateFormat=yyyy-MM-dd HH:mm:ssZ!tUTC!mAM,PM, refreshMonikers=, changedSubjects=, refreshSubMonikers=, copyAborted=0, blFieldTypes=xWebsiteObjectType, ..., xIdcProfile text,xComments memo, NoHttpHeaders=0, changedMonikers=, resultName=RevisionIDs, idcToken=, hasUserAccessChanged=1, IsJava=1, localizedForResponse=1}
    13:14:28.484 [main] INFO  c.j.w.c.d.DeleteContentRIDCUtils - Total number of content items found using query: 0
    probably was because he had previously removed content directly in the database.
    I deleted all folders that are in UCM_HOME/cs/archives via archiver, but i still see part of the structure of the content in /UCM_HOME/cs/weblayout/websites, /UCM_HOME/cs/weblayout/fragments/, and so on,  they are in shared filesystem for my cluster UCM. I can start a new migration content?
    What happens to the information found in the tables of the database?
    DELETEDROWS   
    FOLDERHISTORY 
    INDEXERSTATE
    REVCLASSES
    Is correct that persist the information in theyy tabless?
    Thanks.
    Regards.

  • Cross reference markers are deleted for content in text insets

    Cross reference markers are deleted for content text insets. I currently have a chapter that is built from several Import by Reference files. I added an introductory paragraph with cross reference links to heading 2 titles in these text insets. Everything works and saves normally, although the cross reference markers disappear from the chapter when files are checked out a few days later. An extra Heading 2 is also added to the end of the document.
    Steps to reproduce:
    1. Create a chapter composed of several text insets.
    2. Create a list of cross references to headings in these text insets at the beginning of the chapter.
    3. Check in/check out the files from a source control product.
    What went wrong?:
    The cross reference markers are gone, resulting in broken cross references. An empty Heading 2 is also added to the end of the document following the final text inset
    What should have happened?:
    The markers should remain and the heading 2 tag should not be applied to the document.
    Product version:
    Product: FrameMaker
    Version: 7.2
    Platform information:Windows XP
    Hardware: Dell Latitude D620
    OS Version: Windows XP Professional Version 2002, Service Pack 3.
    RAM: 1GB

    Thanks for the information, Van. We did try several techniques including adding the insertion point immediately after the text inset before the normal paragraph tag, but none seemed to consistently work. I will investigate this scenario futher, though, in light of your comments.
    We have managed to determine a workaround for this issue by avoiding a string of text insets. For some reason, using multiple text insets without separating them with normal text causes most of the problems after we add the files to our source control system. The situaton is not ideal, but it does work for the time being anyway.
    Steve

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • How to Delete the content of an existing site and start from scratch

    I choose the wrong template when i initially setup my bc hosting for a customer how do i change the template i choose in site options and select a different one . I need to delete everything and stat over. I tried deleting everything under the develop area but lost my module style sheets for the eCommerce package. please help. Im on the business catalyst platform

    Hi Joey,
    Good to see that we are not the only ones running into this problem.
    Seems as there is no standard solution available.
    We have developed our own process type which deletes the content of the Open Hub table.
    Thanks,
    Klaus

  • How can I delete unsupported content songs from my iPad?

    How can I delete unsupported content songs from my iPad?

    jtetard wrote:
    Hi,
    You only able to do it by ITune.
    No.
    You can easily delete songs on the iPad.
    Open the Music app.
    Tap Songs at bottom
    Swipe left or right across the song then tap Delete.

Maybe you are looking for

  • Process on value request for table control

    I have 10 rows in a table control,when a F4 for a particular column in a row is called,process on value request is called here i call a customized F4 based on the structure mapped to the row,but unfortunaletly unlike the screen the mapped structure i

  • OPMN ERROR while starting

    WHen I try to start the opmn process I get the following error: [oracle@ip-10-0-20-40 bin]$ ./opmnctl startall opmnctl: starting opmn and all managed processes... ================================================================================ opmn i

  • Elements 11 opening CR2 files issue

    Trial version of elements 11 cannot open raw CR2 files produced by Canon G15. Please advise on best way of resolving this.

  • Result of Multiplying a Date formated Cell

    I have recently started using Numbers and having trouble with the date and format options.  I am trying to calculate the number of days between two dates and then multiplying the result by a value.  I have been able to format the to and from dates us

  • HELP - tracking BSOD with my new W530

    Help, this is an event that seems to hit once every 10 days ( 3 times now ) since receiving my new laptop.  I am running model 24382HU - 32GB RAM, BIOS 1.07, Win Pro 7 64 SP1, Crucia 512 SSD ( M4-CT512M4SSD2 ). The BSOD is comes and goes quick but I