How to copy two rows from one Sybase server to another











up vote
0
down vote

favorite












I have two Sybase servers (Sybase ASE and Sybase IQ). The servers are named Srv1 and Srv2 respectively. I am trying to copy two rows from one server to another. Both servers have a table with the same name (t_VisionData). Right now, I am selecting these two rows with the query:



select * from t_VisionData where ViId=0003 and VizDate='10/24/2018'


This query in Svr1 gives me the two rows I need. I am unable to figure out how I can copy these two rows into Svr2. I am using the Aquadata editor (not sure if that matters) Any help is much appreciated.










share|improve this question




















  • 1




    bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
    – markp
    Nov 11 at 15:50















up vote
0
down vote

favorite












I have two Sybase servers (Sybase ASE and Sybase IQ). The servers are named Srv1 and Srv2 respectively. I am trying to copy two rows from one server to another. Both servers have a table with the same name (t_VisionData). Right now, I am selecting these two rows with the query:



select * from t_VisionData where ViId=0003 and VizDate='10/24/2018'


This query in Svr1 gives me the two rows I need. I am unable to figure out how I can copy these two rows into Svr2. I am using the Aquadata editor (not sure if that matters) Any help is much appreciated.










share|improve this question




















  • 1




    bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
    – markp
    Nov 11 at 15:50













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have two Sybase servers (Sybase ASE and Sybase IQ). The servers are named Srv1 and Srv2 respectively. I am trying to copy two rows from one server to another. Both servers have a table with the same name (t_VisionData). Right now, I am selecting these two rows with the query:



select * from t_VisionData where ViId=0003 and VizDate='10/24/2018'


This query in Svr1 gives me the two rows I need. I am unable to figure out how I can copy these two rows into Svr2. I am using the Aquadata editor (not sure if that matters) Any help is much appreciated.










share|improve this question















I have two Sybase servers (Sybase ASE and Sybase IQ). The servers are named Srv1 and Srv2 respectively. I am trying to copy two rows from one server to another. Both servers have a table with the same name (t_VisionData). Right now, I am selecting these two rows with the query:



select * from t_VisionData where ViId=0003 and VizDate='10/24/2018'


This query in Svr1 gives me the two rows I need. I am unable to figure out how I can copy these two rows into Svr2. I am using the Aquadata editor (not sure if that matters) Any help is much appreciated.







database sybase sybase-ase sybase-iq






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 0:58

























asked Nov 11 at 0:29









dankmemes

164




164








  • 1




    bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
    – markp
    Nov 11 at 15:50














  • 1




    bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
    – markp
    Nov 11 at 15:50








1




1




bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
– markp
Nov 11 at 15:50




bcp the data from ASE (eg, create a view from your select and bcp from the view) and then bcp into IQ; if you don't want to use OS-level tools (like bcp) then consider setting up a proxy table between ASE and IQ; you'll need to decide where the proxy table is to be created (in ASE? in IQ?) based on your req's; while the manuals are a good place to start for syntax, Rob's tip on ASE-IQ connectivity may also provide some benefit
– markp
Nov 11 at 15:50

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244757%2fhow-to-copy-two-rows-from-one-sybase-server-to-another%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244757%2fhow-to-copy-two-rows-from-one-sybase-server-to-another%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation