Connecting to two different SQLServers present on different Locations

Hi,
How can i connect to two different SQL Servers which are at different locations in the same session? IS there any way to do this without disconnecting from the first server?
cheers,
Sachin

Well,
actually my problem is that im reading Database
e Properties through a file which contains multiple
database entries. And i have only one Connection
Object so if im logged into one ex SQLServer in
London, I have a class which will allow me to loginto
another database SQL Server at New York. Now how do i
keep my connection as well as connect to New York
Database Server with the same Connection Object. If
possible, I need to logoff from the Server at London.
How do i do this? Any Ideas?Redesign. You have a connection object that can only have one connection. Either you have to close that connection and reconnect to the other one, or you need two of them. Those are your choices.

Similar Messages

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • If have two different Mac mini at two different locations. Both are running Lion. Connecting my iPhone 4G

    Hello,
    I have two different Mac Mini at two different locations. Both systems are running Lion.
    One of the Mac Mini systems connected to my iphone G4 as well as Ipad 64-Wifi, work perfect to sunchronise. ( IO5 is present)
    I would like to run the changes i made with cloud to the other Mac mini system, but this doesn't work.
    Any one to help me?
    Tnx Hans

    Winston, CH.
    Tnx for the fast reply, but where do i find the setting for iCloud system preferences?

  • 11g Multiple Rpd on one BI server connecting to two different data marts

    Hi
    Did anyone tried and successfully implemented multiple rpds on one bi server. I have similar requirement in one of the clients place.
    1. Install OBIEE 11g with vertical scaling( reason client doesnt want to spend extra money on additional server licenses) and would like to utilize the powerful existing servers.
    2. Install 2 rpds on One BI Server and connect to two different datamarts.
    3. Create two PS and provide two links to have two different reporting environments.
    Appreciate with any pointers. I am very clear on Vertical Scaling and bumping up the Bi , PS and Java Hosts components. I saw a post with successful implementation of the same functionility in 10g and nothing in 11g. I already reviewed ritmanmeed blogs but did not give a complete picture of successfull implementation.
    Thanks

    Hi,
    Yes, it is possible to have two different .rpds on one BI Server but then you need to set up two different Presentation Servers.
    Refer the below threads for more information.
    Re: multiples RPD in one server
    Re: Multiple RPD & Multiple Presentation service instance on single BI Server
    https://forums.oracle.com/forums/thread.jspa?messageID=9189677&#9189677
    Can i put two rpd files in nqsconfig init file in BI Admin
    Hope this help's
    Thanks
    satya

  • I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    Hi Gilly,
    I have no proof, but I think it will not work with an adapter, only Mini Display Port or Thunderbolt.

  • TS1398 I am unable to connect to two different wifi at different locations having same name but different passwords

    I am unable to connect to two different wi if at different locations having same user name but different password one is at home other at work

    I was able to do a full reset on the router (pushing the tiny button near the power input). Then ran through the setup process and it started working on my device.

  • Is it possible to connect to two different clusters?

    Hi,
    I was wondering if it was possible to connect to two different clusters from the same process?
    What I would like to do is to able to get some cache on the first cluster and others on a second cluster. The cache-config DTD doesn't seem to forbid the definitions of several remote-cache-scheme. So I should be able to map all "c1-*" caches to the first cluster and all "c1-*" caches to a second cluster...
    Is it possible?

    Thanks,
    Yes I'm connection via extend.
    Could you give me an example of such configuration? I've made a test from a C++ client with the following client config:
    ====================================================================
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>c1-*</cache-name>
    <scheme-name>extend-1</scheme-name>
    </cache-mapping>
    <cache-mapping>
    <cache-name>c2-*</cache-name>
    <scheme-name>extend-2</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <near-scheme>
    <scheme-name>near-c1</scheme-name>
    <back-scheme>
    <remote-cache-scheme>
    <scheme-ref>extend-1</scheme-ref>
    </remote-cache-scheme>
    </back-scheme>
    <invalidation-strategy>auto</invalidation-strategy>
    </near-scheme>
    <near-scheme>
    <scheme-name>near-c2</scheme-name>
    <back-scheme>
    <remote-cache-scheme>
    <scheme-ref>extend-2</scheme-ref>
    </remote-cache-scheme>
    </back-scheme>
    <invalidation-strategy>auto</invalidation-strategy>
    </near-scheme>
    <remote-cache-scheme>
    <scheme-name>extend-dist</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address system-property="tangosol.coherence.proxy.address">ldnpsm020001413</address>
    <port system-property="tangosol.coherence.proxy.port">4321</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    </serializer>
    </initiator-config>
    </remote-cache-scheme>
    <remote-cache-scheme>
    <scheme-name>extend-paul</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address system-property="tangosol.coherence.proxy.address">ldnpsm020001412</address>
    <port system-property="tangosol.coherence.proxy.port">4131</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    </serializer>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    </cache-config>
    ========================================================================
    if I do a CacheFactory::getCache("c1-Test"), the log shows a connection to the 1st cluster
    if I then do a CacheFactory::getCache("c2-Test"), the log shows a connection to the 1st cluster and not to the second cluster
    What did I do wrong?

  • Mac mini server on two different location

    Hi,
    With my partner we are working on very havy image file from two different location. we wont to be able to share those file to each other easly and quickly mad make sur those file are allways up to date.
    - My first idea was to install in my place one mac mini server with external hard drive (RAID 0) and install the same server in my partner place. then I would like to create a VPN connexion between both Mac Mini server and setup a kind of RAID 1 between then. link that if my partner modify an image file on the server, With a short delay I will be able to see it on my side. this solution would be the best for me as all the data would be save in two different location and I would not have any backup issue.
    I did not buy the MAC mini server yet but as soon that I know the best soluiton and that it is possilbe to do so I will buy it.
    - My second idea (if the first one is not possible or if you guy's convins me that my idea is stupide) would be to have one MAC Mini server in one location setup with an external hard drive in RAID 01. my partner will need to connect to this server through VPN. This solution seems to be a good option but my partner will need to copy the file in local to work on it (few Gb eatch file) and copy it back on the server when he finish to work on it.
    With this solution I will also need to organise manual backup through another hard drive to avoid to have all our data in the same location.
    Witch one of those solution seems the best and can work with MAC mini server? If you have another idea for my situation I m more then happy to read it.
    Knowing that other user may need to access to my file, is the MAC Mini server VPN connection safe and fast?
    Thank you in advance for your help.
    Chris.

    The fact that you are both working on multi-gigabyte
    files, the statement BDAqua made about network speed
    is a big issue.  Small incremental changes in a single
    multi-gigabyte file still require that entire file to be transferred.
    There in lies the big issue with network speeds.
    Basically, it seems idea 1 will probably not work well and
    besides, RAID is for local drives and not for over networks.
    One solution to the synchronization issue is have a single
    computer that has the application and the data and log into
    it and work remotely.  However, it sounds like these are image
    files and working and any kind of graphics over a remote
    connection is problematic unless there is a very high speed
    network connection.
    Second idea is the simple solution.  As for the backup, that
    can be automated with backup software and the backup could be
    put any where.

  • Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels. For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one .. Than

    Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels.
    For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one ..
    Thank you for your attention.
    Annalisa 

    Don't understand what you writing here.  Screen shoots would be most helpful.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • SQL Server two database at two different locations

    Hi Guys,
    We are having same database at two different locations (Database A with Sqlserver 2008/Express, database B with Sqlserver 2012).
    Our requirement is when ever a row is inserted in a table of Database A from location 1. Same value should also be added in Server 2 at different location.
    So that at any point of time both the database base values should be same.
    Which is the best method to do it ?
    Regards,
    Raghu.G
    raghu

    Could you please give more information about the editions of SQL Server? Is SQL 2012 express as well?
    Do you also need udpates/deletes to be moved to another server? Also do you want changes in SQL 2012 to be moved to 2008 as well?
    With Express edition you have very limited options.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Songs saved in two different locations, why?

    I was looking around my hd today and found that I have two copies of many of my mp3 files, some of which i deleted months ago. The first set of songs are in the "Music" folder and are only sorted by file name. The second set is located in music>itunes>itunes music and is sorted by artist then album, the same as in iTunes.
    I have two questions. Firstly, is it safe to delete the copies in the Music folder and just use the ones in the iTunes folder? And second is there any way I can stop this from happening in the future?
    Thanks

    May I ask a related question, since what I'm trying to do is to avoid having songs in two different locations? (If not, just tell me the rules; I'm relatively new to Discussions, as well as being a new Mac OS X user!)
    I've set up separate user accounts for my children on our iMac. They want to put music on the computer, but their interests overlap somewhat. In order to avoid having the same songs copied into the iTunes Music folder of more than one user, and to allow all users to access all music files, I followed a suggestion from David Pogue's book on OS X, namely to put all the music in an iTunes Music folder in the ~/Users/Shared folder, and then make that the default folder for each user by changing the iTunes preferences.
    The problem with this was that then my son was unable to copy (import?) the music from a CD by dragging it to his iTunes Library icon--error message said he didn't have access to the folder--whereas he had been able to do so when ~/Users/HisUsername/Music/iTunes/iTunes Music was his default folder. I tried to solve this problem by changing the permissions on ~/Users/Shared/iTunes Music to be read & write, but then everyone but me started having problems running iTunes (it would give an error message saying "iTunes is on a locked disk, or you don't have access . . .").
    Lots of people seem to have the same problem (i.e., error message in running iTunes), but leaving that aside my basic question is what's the most efficient way to store and access music files so that (a) everyone can access it, (b) the number of duplicates is minimized, and (c) individual users can add music to the computer? Any suggestions will be very welcome!
    --Eric

  • Setting backup on two different locations

    Hello, people. I am a newbie DBA and at my work place , Using RMAN for my backup strategy I want to set up a backup to two different location ( e.g A:\backup and B:\backup), I have configure two channels, and also set configure device type disk parallelism 2, but I seem not to be getting the result i need.
    What does configure device type disk parallelism actually do?
    For me to proceed, what do i need to do? thank you.

    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\oracle\backup\data_%U', '\\atapp\data\olu\backup\data_%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\ORACLE9I\DATABASE\SNCFTESTER.ORA'; # default
    this is my configuration and it works fine, A copy of the backup are on both servers, the same size the and there is only copy of the archive log and controlfile on one of the servers which is fine

  • All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    That is the way the iphone works.
    You need to copy everything from your backup copy of your computer.

  • Setting backup on two different location

    Hello, people. I am a newbie DBA and at my work place , Using RMAN for my backup strategy I want to set up a backup to two different location ( e.g A:\backup and B:\backup), I have configure two channels, and also set configure device type disk parallelism 2, but I seem not to be getting the result i need.
    What does configure device type disk parallelism actually do?
    For me to proceed, what do i need to do? thank you.

    Question is, do you want A:\ & B:\ backup locations to by synchronized? If so, you'll need to use the COPIES parameter (could also copy the backupset once the backup is complete). Setting the PARALLELISM alone will not synchronize the two backup locations.
    In your case, it would appear that you manually allocated multiple channels with a format specified, therefore RMAN produced the three pieces in A:\ and the one piece in B:\ .
    What you'll experience with multiple copies AND multiple channels (parrlelism 2 for example) is that one channel will grab a group of files and begins backing up to the multiple locations while channel two grabs another group of files and begins backing up to the multiple locations at the same time.
    Hope this helps.

  • Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

Maybe you are looking for

  • Find my iPhone doesn't work

    After having my first iPhone stolen, I decided to try the app "Find my iphone" on my friend's loaner iPhone 3GS to see how and if it really works. When I turned it on, I ensured that these were all setup: - Location Services: ON - Find My iPhone: ON

  • Loading new xml data into a already xml populated image display

    Hi everybody, I have a question about loading new xml data into a already xml populated image gallery. So I have my gallery set up so it calls some xml when it first loads. What I would now like to do is load different sets of images via a different

  • Application builder invoke node

    Salve a tutti, Ho un problema con la creazione del file eseguibile con un VI. Quando provo a lanciare il BUILD APPLICATION del VI dal menu "Tools" di LabVIEW 7.0 mi appare un messaggio di errore che vi allego. Sembra far riferimento all'Invoke node u

  • Indesign cc crash on selecting multiple table row

    If i try to select more than a row or the entire column indesign crash and quit. exported to cs6 and opened it works perfectly https://www.dropbox.com/s/2ih8nu2cfc1rjs3/tableproblem.indd

  • My ipod touch does not show up as a device

    I just got my ipod and am trying to connect it to itunes but when I plug it in it is not showing up in my devices. Any help would be grest. P.S. I am totally low tech so be gentle with your advice. Thanks.