How to transfer the tables from one file group to another file group in SQL 2008.?

Hello all,
I have few issues regarding the transfer of the tables from one file group to another file group  in SQL 2008 and also How can we  backup
and restore the particular database based on file group level.
Let’s say I have a tables stored within the different FG. such as
Tables                                                    
  File group
Dimension tables                                              
                                                                 Primary
Fact tables                                               
                                                                          FG1
           FG2…
zzz_tables                                               
                                                                          DEFAULT_FG    
dim.table1                                                                                                                          DEFAULT_FG
dim.table2                                                                                                                          DEFAULT_FG
Here all I want to transfer the dim.table1 ,dim.table2  from  DEFAULT_FG to the Primary File
group .So is there simple methods for transfer the dim.table1,2  from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing  the Primary and FG1,FG2… not
a DEFAULT_FG.Is it possible or not.?
Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
Regards,
Anil Maharjan

Well after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
us feel really happy after all our research and hard work doesn't goes as waste.
Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
having clustered index on that tables .
With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
Really thanks to him for his great post and thanks to all for your response and your valuable time.
http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
Regards,
Anil Maharjan

Similar Messages

  • How to transfer the employees from one org unit to another org unit in OM.

    Hi Experts,
    I have a task of changing the employees, Positions & Jobs, from one Organization Unit to another Org unit, in the OM. I have around 50 position & Jobs and employees to be moved. Please suggest me how do I go about.
    I tried doing through PPOME (Org. and Staffing) but it is a lengthy procedure please suggest if there is an alternate option to do so in OM.
    Thank you in advance.
    Regards,
    Subbu.

    Dear Sharad,
    First of all I recommend to open a new discussion and not to post in a old-date one.
    Anyway, You can do it either PA40 or OOPME.
    In PA40 you should select an appropriate action like :Org. Change", "Promotion" and so on. In fact it depends what do you have in you action list.
    In PPOME you can do it by drag and drop also. Just take care about effective date. First you should select the right date in top of the screen.
    Regards,
    Omid

  • How to transfer the logins from one instance to another instance in sql2008r2

    how to transfer the logins from one instance to another instance in sql2008r2

    Hi Ganesh,
    According to your description, you want to know how to transfer the logins from one instance to another instance for SQL Server 2008 R2. To do this, besides dave’s post, you could also use
    'Copy Database Wizard' in SQL Server Management Studio, or the component
    'transfer Login task' in SQL Server Integration Services.
    Regards,
    Michelle Li

  • Re :- How to Transfer GL Balance from One A/c to Another Account

    hii gurus
    please tell me  how to transfer GL balances from one GL Account to another GL Account. Could u tell me T- Code for the same.

    Hello
    We transfer GL account balance from one GL a/c to another GL a/c in the following situations.
    When the GL a/c need to be maintained in Open item Management, say GL a/c belongs to a Balance sheet item but you have forgot to check the Open Item Management check box and made entries to that particular GL a/c.
    In this situation you can’t activate the Open item Management when the A/C is having balance, so first u need to make the GL a/c zero balance and than check Open item Management check box, follow the following steps.
    Create another dummy GL a/c, say ABC and the GL a/c which you want to make zero balance is having Dr Balance. Now make a posting using FB50 or F-02, you Dr the ABC GL a/c and Cr the other GL a/c so that the GL a/c balance becomes zero, now go to GL master and check the Open item Management check box. And again make posting through F-02 Crediting the ABC GL a/c and Debiting the other GL a/c.
    Reg

  • How to Transfer the iPhone from one computer to another Win XP

    All
    I got my wife a new macbook pro, running Windows XP prof. She has an iphone 3G with 16 GB memory running 3.0.1. So..she wanted to transfer the sync function from her PC to her macbook. Of course, Apple was of NO help at all (but did want to charge us $69.95 since her iphone is out of warranty, and this was an iphone not a mac problem, hmmm..). Took me lots of digging, but here is how you transfer you iphone from one computer to another:
    1. Move you itunes library from the old computer to the new one. To do this, you do NOT just copy it. This is as good a link to use as any to see how to do it, but search the internet and you can find instructions:
    http://reviews.cnet.com/8301-12519_7-10242259-49.html
    2. Transfer your applications you have purchased to the new computer. To do this, open itunes in the new computer, hook up your phone and click on File>transfer purchases (from itunes store) to computer. This will move your applications to the new computer.
    3. Export your MS outlook calendar, contacts, notes, etc. to the new computer by saving each of these categories as a PST file (file>export>then choose the category and type of file)...and then copy these PST files to your new computer and import them into MS outlook.
    4. Copy your playlists from itunes on your old computer to your new computer. This link may be helpful or search the internet again if you need to:
    http://osx.tribe.net/thread/08fd0e5e-f1d0-450b-8de5-9f7cb5bd278d
    5. Now...the important part...how to transfer all your settings from the iphone to the new computer....this is the part that was hard to find online, but finally got it: NOTE: THE BACKUP THAT ITUNES MAKES BACKS UP THE APPLICATION SETTINGS BUT NOT THE APPS SO THIS IS WHY YOU NEED TO TRANSFER THE APPS TO THE NEW COMPUTER. The settings have all the data you put into your apps, email settings, preferences, etc...so its a huge time save to transfer these to the new computer also.
    -Sync your iphone with your old computer to have a backup in case you mess up...in that case you can restore from your old computer and start over
    -Plug your iphone into the new ocmputer and start itunes. It will detect your phone (I assume you have already authorized your new computer to use the library and playlists and apps that you moved)
    -Right click on the "iphone" on the left bar...you will see a popup menu...click on "BACKUP". Let it backup your iphone to the new computer. It will NOT sync the phone
    -When the backup is done....copy the backup file to a temp directory to be safe. The backup is located in "documents and settings">user name>applications>apple computer>mobile sync. If you cannot see it, you need to open windows explorer (not internet explorer) and go to tools>folder options>view and click on "show hidden files and folders" Note YOU CANNOT JUST COPY THE BACKUP FROM THE OLD COMPUTER TO THE NEW COMPUTER AS SUGGESTED ON SOME WEB SITES...THIS DOES NOT WORK, ITUNES WILL NOT IDENTIFY THE BACKUP EVEN IF YOU PUT IT IN THE FOLDER IN THE NEW COMPUTER THAT MIRRORS THE FOLDER LOCATION IN THE OLD COMPUTER.
    -OK now you are ready...click restore on the iphone and restore the phone to factory settings. This will happen in a few minutes (10-15 mins).
    -The phone will reboot and itunes will recognize the phone again...as a restored phone. It will then ask you if you want to restore it from the backup..say YES. You then need to go through all the itunes tabs and click on everything you want to sync to the phone (playlists, movies, podcasts, ringtones, etc). Once you are done going thru the tabs click "apply" and the sync will start. Go out, to a movie, to bed, whatever because it will take hours to sync.
    -Once the sync is done...voila...your iphone has been moved with ALL the settings to the new computer. Check it. Then you can delete the backup you put into the temp folder if it is OK
    -Deauthorize your old computer
    This worked for Win XP...should work for Vista. The whole process took many hours so don't rush through it (i'm guessing 12 hours total work).
    Can I send apple a bill for tech support?????

    All
    I got my wife a new macbook pro, running Windows XP prof. She has an iphone 3G with 16 GB memory running 3.0.1. So..she wanted to transfer the sync function from her PC to her macbook. Of course, Apple was of NO help at all (but did want to charge us $69.95 since her iphone is out of warranty, and this was an iphone not a mac problem, hmmm..). Took me lots of digging, but here is how you transfer you iphone from one computer to another:
    1. Move you itunes library from the old computer to the new one. To do this, you do NOT just copy it. This is as good a link to use as any to see how to do it, but search the internet and you can find instructions:
    http://reviews.cnet.com/8301-12519_7-10242259-49.html
    2. Transfer your applications you have purchased to the new computer. To do this, open itunes in the new computer, hook up your phone and click on File>transfer purchases (from itunes store) to computer. This will move your applications to the new computer.
    3. Export your MS outlook calendar, contacts, notes, etc. to the new computer by saving each of these categories as a PST file (file>export>then choose the category and type of file)...and then copy these PST files to your new computer and import them into MS outlook.
    4. Copy your playlists from itunes on your old computer to your new computer. This link may be helpful or search the internet again if you need to:
    http://osx.tribe.net/thread/08fd0e5e-f1d0-450b-8de5-9f7cb5bd278d
    5. Now...the important part...how to transfer all your settings from the iphone to the new computer....this is the part that was hard to find online, but finally got it: NOTE: THE BACKUP THAT ITUNES MAKES BACKS UP THE APPLICATION SETTINGS BUT NOT THE APPS SO THIS IS WHY YOU NEED TO TRANSFER THE APPS TO THE NEW COMPUTER. The settings have all the data you put into your apps, email settings, preferences, etc...so its a huge time save to transfer these to the new computer also.
    -Sync your iphone with your old computer to have a backup in case you mess up...in that case you can restore from your old computer and start over
    -Plug your iphone into the new ocmputer and start itunes. It will detect your phone (I assume you have already authorized your new computer to use the library and playlists and apps that you moved)
    -Right click on the "iphone" on the left bar...you will see a popup menu...click on "BACKUP". Let it backup your iphone to the new computer. It will NOT sync the phone
    -When the backup is done....copy the backup file to a temp directory to be safe. The backup is located in "documents and settings">user name>applications>apple computer>mobile sync. If you cannot see it, you need to open windows explorer (not internet explorer) and go to tools>folder options>view and click on "show hidden files and folders" Note YOU CANNOT JUST COPY THE BACKUP FROM THE OLD COMPUTER TO THE NEW COMPUTER AS SUGGESTED ON SOME WEB SITES...THIS DOES NOT WORK, ITUNES WILL NOT IDENTIFY THE BACKUP EVEN IF YOU PUT IT IN THE FOLDER IN THE NEW COMPUTER THAT MIRRORS THE FOLDER LOCATION IN THE OLD COMPUTER.
    -OK now you are ready...click restore on the iphone and restore the phone to factory settings. This will happen in a few minutes (10-15 mins).
    -The phone will reboot and itunes will recognize the phone again...as a restored phone. It will then ask you if you want to restore it from the backup..say YES. You then need to go through all the itunes tabs and click on everything you want to sync to the phone (playlists, movies, podcasts, ringtones, etc). Once you are done going thru the tabs click "apply" and the sync will start. Go out, to a movie, to bed, whatever because it will take hours to sync.
    -Once the sync is done...voila...your iphone has been moved with ALL the settings to the new computer. Check it. Then you can delete the backup you put into the temp folder if it is OK
    -Deauthorize your old computer
    This worked for Win XP...should work for Vista. The whole process took many hours so don't rush through it (i'm guessing 12 hours total work).
    Can I send apple a bill for tech support?????

  • How to transfer the music from an Ipod touch to another one

    How can I transfer the music from an Ipod touch to another one

    Assuming you synced the contents to the first iPod Touch, you just plug the second iPod Touch into the same instance of iTunes and select to sync the music.  If your original iTunes library is on a hard drive which has failed, then restore that from your backup and follow the above procedures.

  • How to copy a table from one text frame to another...

    Is there a way to copy a table from one text frame to another? I'm using JavaScript. The following will move a table from one text frame to another, but I need to copy.
    var srcFrame = document.textFrames.item("section-template");
    var dstFrame = document.textFrames.item("test");
    srcFrame.characters[0].move(LocationOptions.before, dstFrame.insertionPoints[0]);
    Thanks,
    Mike-

    Hi Bhupinder,
    According to your description, you want to copy a table with Primary keys from one database to another database.
    As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
    Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
    To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
    and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
    References:
    Transfer SQL Server Objects Task
    Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to change the value from one input control to another input control?

    Hi Experts,
    I want to change the value from  one input control to another input control. For Example if i change month in first tab. it should reflect in second tab also. How should we acheive through input control or some other option.
    Here I attached screen shot.Please help me for this

    Hi,
    It is not possible to have Input controll in all tabs that will be set from another .
    But There is one workaround .
    Follow the link below .
    http://davidlai101.com/blog/2013/08/13/web-intelligence-input-control-that-affects-all-tabs/

  • How to put the data from one excel sheet in another excel sheet

    hi ,
    I want put the data from one excel sheet in another excel sheet in seq. order Eg: I have one excel sheet in which i have 3 col. Name , Sno. , Email along with data .I want to put data from this sheet to another excel sheet in the following orders of col. Sno,Name, Email .
    While loading data in another sheet , i have to perform validation like char field should n't contain numeric values and vice versa .
    Let me know on this soon ..
    regards
    Prashant

    Well, you can issue separate queries with the ordering you need from each tab in the spreadhseet. You can open an ODBC connection from a VBA macro, select a sheet, run a query, select another sheet and run another query. As for the validation, you can do this in Oracle via stored procedures or again in VBA code.

  • How to transfer JPG/JPEG from one SAP system to another?

    I am not sure this is something that is easily possible, if even possible, and can't find anything about it.
    Does anyone know how to transfer a picture (JPG/JPEG) from one SAP system to another (both 7.00+)? 
    Scenario would be something similar to uploading a photo into one SAP system, then having it pass it to a central SAP system.
    Any thoughts about how or if it is possible would be helpful.
    Thanks,
    Jake

    Hi,
    I can think about at least two ways. One way is using web services or RFC. You can create a RFC enabled FM which would return a string of bytes (type XSTRING) for some particular ID. It's pretty easy to expose RFC enabled FM as web service. Consuming web service from ABAP is easy as well. Another solution is using REST based interface. You would write a HTTP handler which would return a jpeg image for particular ID. For example URL would look like http://<hostname>/image/?id=ABC and client would just call GET request for this URL and response would contain jpeg image.
    Cheers

  • HOW TO TRANSFFER THE ASSET FROM ONE ASSET CLASS TO ANOTHER

    Hello,
    At the time of asset uploading ,one asset was  uploaded in a wrong asset class and now
    I want to transffer that asset from wrong asset class to right one with depriciation value. I dont know what are to be checked before transffer and what are the process to transffer.please suggest me.
    Thanks and Regards
    Debjit Roy
    Moderator: do not use CAPITAL letters and don't ask basic SAP questions

    Hi
    If you have done any posting to asset which is under wrong asset class, the same values you will post thru FB01 for values only.
    you need to transafer the asset no from one asset class to another asset class

  • How to transfer the indexes from one DB To another DB

    Hi All,
    I have one question.I have to transfer all the database object from one database to another. and I have transfer it.Now I have to create an index on that tables then how can i know on which columns that indexes were created.and How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.
    Thanx in advance.

    user13310428 wrote:
    How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.You have to use the DDL (create index/create table with index constraints/etc) commands to create indexes.
    You cannot "+transfer+" the index data like you can table data. The reason is that indexes contains the physical address of the rows indexed. These addresses are different on the new database - and thus make the index data on the old database useless. Instead, you need to re-create the indexes so that the new row addresses can be determined and used by the index.

  • I would like to transfer the balance from one Apple ID to another how can this be done??

    I want to transfer the account ballance from my account to my son's. I unintentionally redeemed one of his gift cards to my account. how can this be done?

    Sorry, but balances can't be transferred from one iTunes Store account to another. You'll either have to make his purchases through your account, or buy another prepaid card and redeem that in his account.
    BTW, for future questions, this forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help if you ask in the general iTunes forums.
    Regards.

  • How to export the table from one schema to another schema

    Hi,
    I've 2 schemas dev and test db
    And i need to copy one EMP table from DEV to TEST db in windows OS
    Could you please hint me in which schema which statement to be written ...
    Regards
    josh

    Hi,
    I am not sure I got it all. Do you have 2 schemas in 2 different databases or 2 schemas in the same database ?
    If both schemas are in one DB, you can :
    connect dev/***@DB
    grant select on emp to test;
    connect test/***@DB
    insert /*+ append */ into emp select * from dev.emp;
    commit;Or use a create table emp as select * from dev.emp; if empl table does not exist in test schema.
    If both schemas are in different DBs, you can :
    * use exp / imp tools
    * use sqlldr
    * use a database link
    Hope this helps,
    Francois

  • How to export a table from one oracle server to another oracle server?

    Hi experts,
    Scenario : Copying table T1 from Server1 to Server2.
    Can I follow any of the following two options. Please advise if these options would be feasible under the current scenario.
    1) Create the same table T1 in Server2. Export the values of T1 in Server1 to an Excel sheet. Make the Excel sheet as source and import the values of the excel sheet to table T1 in Server2.
    2) Use an ETL tool like Oracle Warehouse builder to extract and load the values in T1 in Server1 to T1 in Server2.
    Can we schedule both option1 & 2 as a job in Oracle Warehouse Builder? The job will have 2 steps :-
    a) Delete all rows in T1 (Server2).
    b) Insert the values from T1(Server1) to T1(Server2).
    Please advise.
    Thanks,
    Debashish

    Can you exactly explain a little bit more what is the actual requirement.
    Just to kick off the things..
    In case:
    1) you just need to create a table based on another table in same schema. Its as simple as : create table table2 as (select * from table1)
    2) table1 is on remote db then
    create table table2 as (select * from table1@yourdblink)
    3) Need to export and import table1 refer this link :
    http://wiki.oracle.com/page/Oracle+export+and+import+?t=anon
    4) Need to refresh table periodically either schedule a job or create materialized view refer to this link :
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm
    Choose an approach. Then try it and see what errors you get, In case you get errors search on internet for that error code and how to resolve that and in case need any help post it here. But key is understanding first what exactly your requirement is and which approach you need/want to follow.

Maybe you are looking for

  • Jobs not getting displayed in ECC

    Hi We implemented Redwood 8.0 and scheduled some jobs using that. The jobs ran successfully in  ECC server, but since then there is no jobs that we can view in SM37 All jobs are executing successfully, but there is no log in sm37. Alos the JOBLOG fil

  • Importing Word into InDesign, problem with styles

    OS 10.6, CS5 Hi everyone, Does anyone have any experience with importing styled Word docs into InDesign? Editors style their Word documents with some basic styles (Text, References, Headline, etc.) using a Word template that I created. Designers use

  • User Exit : transfer posting 541

    Dear All , pl guide for the User Exit name for : I want to check , Only after the PO release Material Transfer Posting should Be allowed to VEndor . Without PO release , 541 movement should not Be allowed in MB1b or Migo 541against the Sub con PO . r

  • Run a SQL procedure with multi database querying from Excel

    I'm using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined result set is being displayed. I try to execute it via Excel, so the results will

  • Can Preview Slideshows Target A Different Display?

    Can the Slideshow feature of Preview use a different display (without mirroring or rearranging displays)? I can drag Preview's Slideshow controls onto a different display, but there doesn't seem to be a way to tell Preview to use a different display