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
Similar Messages
-
How to copy a folder from one document library to another document library ?
How to copy a folder from one document library to another document library by programmtically?
Samarendra Swain
Team Sharepoint
www.manuhsolutions.comYou can use the SPFolder.CopyTo method.
public static void CopyFolder()
SPFolder folder = null;
using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
using (SPWeb web = site.OpenWeb())
folder = web.GetFolder("shared%20documents/newfolder");
folder.CopyTo("tester4/newfolder");
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
certdev.com -
How to copy a table from one system to another system
Hi all,
can any one say how to copy table from one system(sys1) to another system(sys2).
regards,
nagarajThere are many ways.
1. Use the already existing transaport request number for that table to do the transaport (Active)
2. Create mannual transport request from SE01 and in the object list enter following
R3TR -- TABI -- <Table Name>
And do the transaport.
3. Ask your basis consultant to do the transaport from oracle layer.
Thanks, -
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 MaharjanWell 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 -
How to copy a node from one dom document to another?
I have one dom document that I have to split up into multiple dom documents. I am able to get the inividual nodes that I want to put into seperate documents.
My problem occurs when I create a new dom document and try to add the node from the parent document. I get an exception saying (copied from api: WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. )
How can I make it so that I can copy a node from one document and add it to another.Have you checked out the API called importNode in the DOM Document. It lets you move nodes between different documents.
This api lets you simply copy the existing node from one document into another. without creating any new nodes for it.
I have done a small example please have a look.
Book.xml
<?xml version="1.0"?>
<books>
<book>
<name>Inside Corba</name>
</book>
<book>
<name>Inside RMI</name>
</book>
</books>------------------------
Book2.xml
<?xml version="1.0"?>
<books>
<book>
<name>Core Java </name>
</book>
<book>
<name>Core JINI</name>
</book>
</books>-------------------
MoveNode.java (copies nodes from doc2 into doc1)
import java.io.*;
import javax.xml.parsers.*;
// structures
import org.w3c.dom.*;
import org.xml.sax.*;
public class MoveNode
public static void main(String[] args)
// step1. create a factory and configure it
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
// step2. set various configurations
factory.setValidating(false); // do not need validation at this time.
factory.setIgnoringComments(false); // do not ignore comments
factory.setIgnoringElementContentWhitespace(false); // do not ignore element content whitespace.
factory.setCoalescing(false);
factory.setExpandEntityReferences(true);
// step 3 create a document builder
DocumentBuilder builder = null;
try
builder = factory.newDocumentBuilder();
catch(ParserConfigurationException e)
e.printStackTrace();
try
Document doc1 = builder.parse(new File("book.xml"));
Document doc2 = builder.parse(new File("book2.xml"));
if (doc1 == null || doc2 == null)
System.out.println("doc1 is null or doc2 is null");
System.exit(1);
} // if
// fetch books from doc2
NodeList list = doc2.getElementsByTagName("book");
System.out.println("number of books found " + list.getLength());
Node node1 = list.item(0);
Node node2 = list.item(1);
// get the root node of doc1
Node root = (Node) doc1.getDocumentElement();
root.appendChild(doc1.importNode(node1, false));
root.appendChild(doc1.importNode(node2, false));
//now doc1 should have 4 nodes
System.out.println(doc1.getElementsByTagName("book").getLength());
} // try
catch(SAXException se)
se.printStackTrace();
catch(IOException ie)
ie.printStackTrace();
hope this helps.
regards,
Abhishek. -
Simple: How to copy a Table from one Database to another?
I already know how to do it by creating an identical table and then inserting the Data.
Like so:
SET IDENTITY_INSERT dByDtMinusC5 ON
INSERT INTO [DB1]..T1 ([Id], [HbyD] , [K] )
SELECT [Id], [[HbyD]]] ,[K] FROM [DB2]..T2
As you can see I need to have T1 in order to copy T2 into DB1. Is there any way that I could auto create T1 and copy T2?
There are so many forums in sql server Category, I hope I posted in the right one :0 . We need tag system for forums.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 copy a tab from one tab group to another?
In Tab groups view, drag and drop allows one to move one tab from one group to another. But how to copy a tab?
Press '''CTRL''' while dragging to copy instead of moving.
-
How to copy an ORDImage from one DB instance to another instance
Hello,
I need to copy a table with ORDImage columns from one DB to a different DB in a global/distributed transaction. What is the best way to to this:
Do I really need to do the "insert empty ORDImage, select for update, Load BLOB data into ORDImage Proxy, update" cycle for inserting the ORDImage in the target DB or is there a better way?
PeteHello,
i want to copy my application in to another system…Are you talking about deploying a fully developed application (like in a client site) or copy your application into a different development instance?
Regards,
Arie. -
How to copy function group from one SAP system to another
dear all,
our company will set up a sub-company currently,and the sub-company want to copy some programs from our SAP system.
how to pack and copy function group?
pls help me,tks!Hello Snow zeng,
Will the 2 systems be connected ? I.e Same land scape ?
If they are non connected systems, check this Wiki by Marcin [How to copy Repository Objects between non-connected SAP systems|http://wiki.sdn.sap.com/wiki/display/ABAP/HowtocopyRepositoryObjectsbetweennon-connectedSAPsystems]
Regards -
How to Copy customizing data from one company code to another company code
Hi
Big Boss opened a new company, we need to implement SAP system for this new company. this new company has same business with our one old company. so, we may almost use old the company customizing data for this new company. anybody can tell me how to copy the customizing data.
Regads
HenryHi, Paraschand G
Thank your very good solution as BC Sets. I had general knowledge on Rollout and BC Sets now.
How ever, I have a problem on creating my first BC Sets. Should I creat a BC Sets as my template via copy existing customizing data? I seen some existing BC Sets which arenot I want. We implemented big5 modules for some company codes. I want to copy one of them as my BC Sets template. I won't create it manually because I worried about I will miss some data if I select these data one by one. I cannot find out a Full-BC Sets template contains all customizing data. Could you please give me some guide. I cannot ensure my understanding of BC Sets. Please correct it if I have wrong idea.
Regards
Henry -
How to copy system table from one client to another client
Hi,
Currently i am implementing recruitment module in one of the power sector company. I have finished all the configuration in one of the client in development server. I have trasported all the request in Qulaity server so that i can do the testing. When i am running TCode : PBA7 (Direct Data Transfer) i am getting a runtime error with error analysis -
A SELECT, UPDATE, or DELETE statement contains the invalid table
name "PB0021".
I have checked this system table in this client (Quality Server) but this table is not available, but at the same time this table is available in Devepment server client where i can run this transaction.
Requiring your help on this to resolve this issue. Do i need to copy this system table PB0021 from Development server client to Quality server client? If so then how to do this activity?
Thanks in advance....
Regards,
MilindHi Milind,
Goto SE01.
Create a workbench request manually.
Add the following entry.
R3TR TABL PB0021.
Transport the request to quality system.
Hope this works.
Best wishes,
Dilek -
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,
DebashishCan 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. -
How to copy a document from one CM Repository to another CM Repository?
I am trying to build a UI Command that similiar to the standard "Delete" UICommand, but the only thing is before the document get deleted in the current repository (say Default - it is a CM Repository with fsdb mode), it create a copy in another archive repository (say Default_Archieve - is is a it is a CM Repository with fsdb mode).
Here is some portion of my UICommand class (it is a modification of the standard "delete" UICommand)
Code Start----
import com.sapportals.wcm.command.CopyResourceCommand;
import com.sapportals.wcm.command.DeleteResourceCommand;
private IRenderingEvent execute(IResource res) throws WcmException {
String dispname = res.getDisplayName(true);
//Here we copy the resource to another repository before the delete the resource in the current repository.
CopyResourceCommand copyCommand = new CopyResourceComman();
copyCommand.setResource(res);
System.err.println("ArchiveResource:execute:" + dispname + " is set to be copied.");
String rid = res.getRID().toString();
System.err.println("ArchiveResource:execute:rid=" + rid);
String new_rid = rid.replaceAl("default","default_archive");
System.err.println("ArchiveResource:execute:new_rid=" + new_rid);
copyCommand.setTarget(newRID);
copyCommand.execute();
DeleteResourceCommand deleteCommand = new DeleteResourceCommand();
deleteCommand.setResource(res);
deleteCommand.execute();
if (deleteCommand.failed())
return new InfoEvent(StatusType.ERROR, deleteCommand.getMessage());
if (sendDeleteEvent())
return new DeleteEvent(
StatusType.OK,
getBundleString("xmsg_DeleteSuccessful",dispname));
else
return new InfoEvent(
StatusType.OK,
getBundleString("xmsg_DeleteSuccessful", dispname));
Code End----
If I change the target uri to be copied to the location in the same repository (default), this command work fine, it is just when it is copied cross repository, this cod doesn't work.
Thanks fo advice.
KentHi, Boris.
I try to do it with subfolder path as following:
Code----
String newRID ="/mbcokm_archive/" + resource.getDisplayName();
writeln(res, "newRID= " + newRID);
copyCommand.setTarget(newRID);
copyCommand.execute();
But still it does not take it.
If I change it to some location in the same repository, like the following:
Code----
String newRID ="/mbcokm/" + resource.getDisplayName();
writeln(res, "newRID= " + newRID);
copyCommand.setTarget(newRID);
copyCommand.execute();
So, I am pretty sure that something to do with the cross repostory copy.
I am trying to use the standard API to copy the resource, instead of using the com.sapportals.wcm.command.CopyResourceCommand.
Do you think you can do some testing on cross repository testing, and see how it will look for you.
Thanks a lot.
Kent -
Copying a page from one picture book into another
Does anyone know how to copy a page from one picture book into another. I have made 2 books and would like to make a third consisting of pages from the first 2 but seem unable to do it without starting again, or at least starting from a duplicate of one and re doing all the missing pages.
Garageclan
Welcome to the Apple user to user assistance forums
print each page you want to include in "book 3" to a PDF and use the send PDF to iPhoto option - this will give you the pages as images in iPhoto that you can them place into "book 3"
See Old Toad's tutorial #19 for more details - http://web.mac.com/toad.hall/OldToadsTutorials/No._19.html - note that it is slightly different - you are only using the beginning part
LN -
How to Move or Copy the Tables from One Database to Another Database ?
HI,
Can any one help me on this, How i can move or copy the tables from one database to another database in SQL server 2005 by using SQL query. Hope can anyone provide me the useful and valuable response.
Thanks
GopiHello,
Maybe these links help you out
http://www.microsoft.com/downloads/en/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
http://www.suite101.com/content/how-to-copy-a-sql-database-a193532
Also, you can just detach the database make a copy and move it to the new server.
Maybe you are looking for
-
My iTunes keeps logging me out of the Store as I open and close it.
Before, whenever I closed iTunes, and opened it the next day, I would still be logged into iTunes. But since I redownloaded iTunes, everytime I open and close iTunes, I have to log in to get Album Art and stuff. It's just a minor hinderance, but it's
-
We are working on a capacity planning project for one of our customers and we need an estimate on the maximum number of PVCs supported in the following situations: a)Cisco BPX 8620 and 8680 chassis with BCC-4V 128MB DRAM and 4 MB BRAM ? b)Maximum num
-
Problem in converting music to ringtone
Not getting proper file type i.e. m4a while creating music file to AAC version ? So whats the problem?
-
every time I am in firefox I get a pacman sound that does not shut down. I have not downloaded any programs from the browser. == Today
-
Can an AIR application pop in front of all other application ?
There is a lot of method to bring an AIR window ahead of the other AIR windows but what about bringing an AIR window in front of the desktop ? My application need a fast response from the user when it received some network events. The users do not fi