Queue table recreation - How to backup data

Hi All,
I need to recreate queue table because of the incorrect sort_list.
I have the script prepared, it is working fine.
The problem is that I have about 200.000 records in that table.
What is the best approach to preserve this data while a table queue being recreated?
Thanks in advance
Daniil Dukat

Assuming both databases are on the same server...
First backup the data...
Select *
Into products_bkp
FROM products
--WHERE (if any filter condition)
Insert the data into another database.
USE DB2
GO
INSERT INTO products(column_names)
SELECT column_Names
FROM DB1.schemaname.products_bkp
GO
Hope that helps.. Please mark as answer, if this has helped you solve your problem.
Good Luck :) .. Visit www.sqlsaga.com for more t-sql code snippets and bi related how to articles.

Similar Messages

  • How to backup data when hard drive is failing.

    I think my hard drive is failing..
    I booted using Install DVD, and got message in Disc Utility that "this drive has a hardware problem that can't be repaired." It mentioned I should backup data and consult apple representative..
    I clicked on Macintosh HD under the red physical drive (500.11 GB Hitachi HTS) and did disc repair.
    Strangely, the message went away on the physical drive when I finished.  It turned back to black wording and gave green "verified/repaired" messages in the log.
    I am still able to boot my macbook, although everything is running slowly... Desktop excel files take 15 mins to open.
    Does this still sound like a failing hard drive?
    I am trying to act fast and borrowed my sister's external harddrive/ "passport for mac", and it slowly prompted a time machine backup. It is slowly working through "8.34GB of 200.33GB"
    I do not really understand what I am doing, but hoping this is the right move. Could someone explain what time machine will do or how it will help?
    Is there any chance I will harm her external hd?
    I am mostly worried about iPhoto and itunes library, iMovie projects,and important excel spreadsheets on my desktop. Is time machine looking after these concerns?
    Any help greatly appreciated.

    Where is you TM backup?
    Where are your external data redundancies?
    Now you will need to use very expensive data recovery experts to recover data when you could have had it safely on a $100 worth of 2 external HD.  
    Mechanical HD failure circumvents using recovery software.......so,  now you backed yourself into a corner and needed expensive data expert recovery.
    You took a wrong turn a long while back before reaching this cliff edge.
    that wrong term was not having (preferably 2) external HD as a redundant data archive.

  • How to backup data from old droid to turbo?

    The turbo is not listed for new devices. How do you backup data from old droid to new turbo?

    To start your backup: Sign in to your Google Account from your old Droid phone and do the following:
    1. Go to Settings, Personal, Backup and reset, and.
    select both Backup my data and Automatic restore.
    2. Go to Settings, Personal, Accounts & Sync,
    and select your Google account.
    3. Select all of the option boxes listed, to ensure that
    all available data is synced. After backing up your information, you will be able to set-up and sign in to your regular Google account from your new Turbo and all of your information can be transferred to the Turbo.

  • New HD for MacBook... How To Backup Data?

    I just bought a 160gb Hitachi drive from OWC for my MacBook. Can anyone give me step by step directions on how to backup my current drive and how do I migrate this data on the new HD? I know how to physically install it but I want to make sure I back it up alright. I've heard about using SuperDuper, but what do I do with that program and how do I migrate?
    Thanks
    -B-

    No, I don't have 2 gigs of RAM but as soon as I get the money I will upgrade from OWC! I have found that website (http://www.macsales.com) to be very reliable, quick and they have the lowest prices out there for the highest quality of products.
    I searched around the internet to find out which was the best HD to get and what speeds, etc, and I found most went with Hitachi's 160G Travelstar drive. I know I read about many people having issues with Western Digital's model (sudden motion sensor, kernel panics, etc) so even though it was cheaper I knew that was the wrong way to go just by reading people's comments online. I suggest everyone else do the same thing. Do your research, both online and off, and find out what most people are having successes with (and asking on this board is what helped me, too!)
    Once I get my increased RAM, then we will officially be twins. lol.
    Thanks for your response...
    I'm lovin this new drive. I've got my 40 gigs of music on here, my 10,000 photos, all my apps, and I still have like 85 gigs left. Shweet! With the stock 80gb drive, I was already in my teens in HD space!
    -B-

  • How to backup data in table?

    hi friends,
    How do I backup 1500 rows of data in products table in a database
    DB1? (the last column is varbinary type for images)
    How do I insert backed up 1500 rows of data in to the products
    table (this one has 5 more columns)table in database DB2?
    note: DB1.Products table has only 6 columns but DB2.Products table has added 5 columns thus a total of 11
    note: I need to backup only the data (if possible) and insert them to the new table
    I use sQL server 2008 r2 developer edition
    thanks
    I use Visual studio 2012 Ultimate and SQL server 2008 developer edition!

    Assuming both databases are on the same server...
    First backup the data...
    Select *
    Into products_bkp
    FROM products
    --WHERE (if any filter condition)
    Insert the data into another database.
    USE DB2
    GO
    INSERT INTO products(column_names)
    SELECT column_Names
    FROM DB1.schemaname.products_bkp
    GO
    Hope that helps.. Please mark as answer, if this has helped you solve your problem.
    Good Luck :) .. Visit www.sqlsaga.com for more t-sql code snippets and bi related how to articles.

  • How to backup data from a bad partition?

    Hi,
    My HDD in my Macbook Pro crashed due to a frequent uncontrollable on and off, I tried to boot into recovery mode but it won't let me mount the drive so that I can't repair permission, and I also fail to repair the disk neither not even target disk mode to another mac. So I assume my HDD is totally screwed for now, so are there any way to backup any data from this screwed HDD?
    Thank you so very much!
    Jeffero.    

    You can always try - but there's no guarantee of success.
    Which model (e.g., "15" late 2011") MacBook Pro do you have? Need that info...
    The first thing that you'll need to do, of course, is buy a new hard drive and install it. Decide on what speed (5400rpm or 7200rpm) you want and then how much space you need.
    The second thing is to buy an enclosure for your 'old' HD - I have a number of these from OWC.
    The third thing - formatting and installing a working OS on your new hard drive will depend on which model MacBook Pro you have.
    Fourth thing - to try to recover data yourself, you're just going to have to pony up $100 and purchase DiskWarrior: now I've never used it - I have tested Data Rescue 3 on undamaged drives with great success -  but I think that in your case DiskWarrior would be the better product. Don't be surprised if it doesn't work - it just offers you the 'best chance' to rescue data.
    Once you have your new hard drive installed and bootable, connect your old drive (now in an enclosure) and use DiskWarrior to try rescuing some data. As I said, there's no guarantee here but it's the first thing to try before spending $1000 or so at a data rescue specialist.
    Good luck,
    Clinton

  • How to backup data in N8?

    Hi I need to backup my n8 data before the software update,but I don't know how to do it,as the ovi suite doesn't install in my windows7 laptop. Is there any alternate way to backup?

    The alternative is using Ovi Suite. Did you try the latest version of Ovi Suite from here? 
    The N8 also has the capability to sync online or applications such as Outlook on your pc but I believe they only sync contacts and calender. I have no experience of this as I only backup to pc and memory card. I don't trust anyone else with my data. 

  • Iphone5 stuck How to backup data before rebooting?

    iphone5 got stuck and asks to restart phone through itunes. How do I backup photos and contacts before rebooting device?

    The alternative is using Ovi Suite. Did you try the latest version of Ovi Suite from here? 
    The N8 also has the capability to sync online or applications such as Outlook on your pc but I believe they only sync contacts and calender. I have no experience of this as I only backup to pc and memory card. I don't trust anyone else with my data. 

  • HT1414 tooggling power loop - how to backup data

    My phone is toggling in a power loop between the apple icon (what you get when you shut it down) and the lock screen. I downloaded icloud on my computer to tried and backup all my data, videos, etc. I don't think I have the icloud app installed on my phone and now can't get into it to add it. Is there any way to recover my data? From what I've read, i'll have to do a factory reset.

    Hello Kim,
    Thank you for providing the details of the issue you are experiencing with your iPhone.  I understand how important it is to keep the data on your iPhone.  Have you attempted to back up your iPhone using iTunes? 
    The following article has steps to back up your iPhone using iTunes.  I recommend resetting your iPhone as described in the steps below and then trying to create a backup with iTunes using the steps in this article:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Once you have created a backup, I recommend continuing with steps 4-6:
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on),reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more about restoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
    If the above steps do not resolve the issue, contact Apple.
    You can find the full article here:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to backup data?

    How will i back up my data using nokia suite?
    Moderator's note: This post was edited. Provided a concern-related title. 

    Connect the phone to PC..Open Nokia Suite -->Tools -->Back-up ...
    You may also use the SYNC tab at the bottom (next to the phone icon) which will sync various data (Contacts, Messages, Images, Music, etc) and you will be able to see them in the Suite itself. Back-up file will be in .nbu format and you will not be able to see the stored data without other special programme / application ...

  • How to backup data prior to harddrive swap

    My HDD is going to be swapped out under warranty by Apple. What do I need to do to ensure everything is put back where it belongs?
    Thanks

    I'd suggest cloning the drive to an external hard drive. That way you're ensured of getting everything just as it is. The easiest way is one of the cloning utilities such as Carbon Copy Cloner or SuperDuper!. Then you can just clone back to the new drive.
    Regards.

  • How to export data from a Oracle table to a delimited file?

    I know how to load delimited file into a table, but how to export
    data from a Oracle table to a delimited file?
    Thanks in advance.

    Try looking at this link, it's long but there's three different solutions discussed in it. If you look at Barbara Boehmer's
    solution in her posts in the link below you'll see that she's addressed your concerns with spool files.
    Re: utl_smtp and triggers

  • How to insert data into table control

    hi experts,,
           i have inserted data into data base table through table control .
    now i want to insert data into table control through database table.
      how to delete data from table control for selected row

    Hi
    go through this link.
    http://www.****************/Tutorials/ABAP/TableControl/Demo.htm

  • How to insert data into two tables linke with foreign key..

    I have two tables
    1)EMP(emp_ID,username,emp_type_code)
    emp_ID is primary key, emp_type_code is a foreign key references emptype table.
    2)emptype(emp_type_code,emp_type_descripton)
    emp_type_code is primary key
    Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..

    CREATE TABLE "CATDB"."DWDIMUSER"
    "USER_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_ID" NUMBER(10,0),
    "FULLNAME" VARCHAR2(20 BYTE),
    "FNAME" VARCHAR2(20 BYTE),
    "LNAME" VARCHAR2(20 BYTE),
    "USER_SUBTYPE" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
    CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
    CREATE TABLE "CATDB"."DIMSPECIALTY"
    "SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_NAME" VARCHAR2(100 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
    SELECT DISTINCT
    Engineer AS FullName,
    regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
    regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
    'Engineer'
    FROM EMPLOYEELOOKUP;
    INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
    SELECT DISTINCT SPECIALITY
    FROM EMPLOYEELOOKUP;
    COMMIT;
    CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
    CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
    "EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
    "ENGINEER" VARCHAR2(25 BYTE),
    "SPECIALTY" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    DATA IN EMPLOYEELOOKUP
    Engineer, Specialty,
    John, Dow, Electronis,
    Dow, Jons, Technician
    Stan Smithers Sales
    Mark, Richards Marketing
    Jenny, Lane Marketing
    John, Lee Sales
    I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
    BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY.

  • Edit message payload object without remove queue table

    Hi, need ur help again,
    Known that if we want to modify a message payload attribute (add,edit or delete), we will fail to do so if the message payload is used by existing AQ's queue table.
    How to change the message payload object without remove the queue table?
    Thanks!

    Hi
    I answered this in Re: Replace message payload object without remove queue table forum.
    Cheers, APC

Maybe you are looking for