Connection between two SQL Azure Databases

We have a requirement to move data (partial data in a table based on policy conditions) between two SQL Azure Databases. Want to know the best possible way to do this.
We are not looking at Data Sync Framework - as this is only a Preview version and we have to use this in an ongoing basis in Production and the volume of data is quite high.
The option that we have currently is to use an on premise stored procedure - that will have two link servers to the source and target SQL Azure Databases and do the data movement in one transaction.
Are there any other better options to do this ? Any pointers will be helpful.

Hi Kothai Ramanathan,
According to your description, if you just want to moving part of the data from a huge table between two different SQL Server database, you can use
SQL Server replication to sync the part of data via articles. However, in SQL Azure database, it does not support SQL Server replication, if you want to migrate database, as other post, you
can use Data-Tier Application Import and Export or other ways.
 In addition, for just moving the part of data,  you can also create two Linked Servers between local SQL Server database and two different SQL azure database. For example, you can get the changed data from the first Linked
Server and saved the data to Local database, then insert these data to the other azure database via the second Linked Server.
 For more information, see:
http://azure.microsoft.com/blog/2012/09/19/announcing-updates-to-windows-azure-sql-database/
http://blogs.msdn.com/b/sqlcat/archive/2011/03/08/linked-servers-to-sql-azure.aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • Connect to Existing SQL Azure Database

    I'd like to create a Azure Mobile Service (.NET) that reads / writes from an existing database that is being used by an MVC 5 app. I've been trying, without luck, for the better part of a day to make this happen through the few examples that exist on the
    internet.
    I've just now come across this
    StackOverflow post where Carlos Figueira, in a response, says that a mobile service creates a new schema with the same name as the service name and all access is done via that schema and the user that has permission to that schema. If this is the case,
    how will I be able to have my mobile service connect to an existing table, if it always creates new tables in the new schema?
    Also, I'm getting the impression that mobile services using .NET is much happier if I don't attempt to connect to an existing DB. Is this the case?
    Randy Minder

    Thank you Matt. I have an additional question, if you don't mind. It appears that if I attempt to connect to an existing Azure DB from Mobile Services, that wasn't created by Mobile Services, a new schema is created in my DB, and Mobile Services recreates
    the tables I'm trying to access in that new schema.
    For example, say I'm try to access a table named Alert from a mobile service named MyMobileService. It appears that Mobile Services creates a schema named MyMobileService, and a table named Alert in that schema, and uses that table, instead of the table
    I really want it to use. 
    Is this correct? If so, I really don't want Mobile Services doing this. Is there a work around?
    Randy
    Randy Minder

  • Connection Between Two Databases

    Hi,
    I have two databases called DBS1 and DBS2. Both are in one system. I need link between these two databases. I want a query as follows.
    select * from cust@DBS2; # from DBS1
    select * from temp_cust@DBS1; # from DBS2
    Is possible link between DBS1 and DBS2.
    Can any one tell me how to link these two databases each other.
    Best Regards,
    Nilopher.
    null

    Nilopher,
    You can connect to two different Oracle databases by creating a database link. When you say that both databases are in one system I assume you mean two databases on the same server. To create a database link you can do the following:
    While logged onto DBS1:
    create database link dbs2
    connect to username identified by password
    using 'dbs2.world'
    Username and password are the user and password you want to connect as in dbs2.
    If you want everyone to be able to access the database link you can say create public database link... otherwise only the user that created the database link can use it.
    This should work assuming the database server tnsnames.ora file looks like this:
    dbs2.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= hostname)(Port= 1521))
    (CONNECT_DATA = (SERVICE_NAME = dbs2))
    If your databases are on two different servers you'd have to look at each one's tnsnames.ora file and make sure each one had an entry for the other's database.
    I believe the database link name must be the same as the SERVICE_NAME if the parameter GLOBAL_NAMES=TRUE, if it's FALSE you can name it something else. By default this parameter is set to TRUE so I called the database link in the example dbs2.
    You can then access data from dbs2 while logged into dbs1 exactly how you said:
    select * from cust@DBS2;
    You can then repeat the process to do the same thing on dbs2 to connect to dbs1.
    Hope this helps.

  • Configure SQL Azure database as subscriber

    Hi All,
    I have a in-house database and a SQL Azure database (only database). Require to configure replication between these 2 databases (SQL Azure Databasse as Subscriber) . But AFAIK replication require actual subscriber sql server name. Is there a possibility
    that i may be able to achieve this task.
    Regards
    sufian
    Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

    Hi,
    Thanks for posting here.
    http://www.windowsazure.com/en-us/manage/services/sql-databases/getting-started-w-sql-data-sync/
    http://msdn.microsoft.com/en-us/library/hh456371.aspx
    I think the best bet is to use SQL Data Sync, it should gives you bidirectional and we use it currently to sync data around the world in terms of datacenters and one local on premise database. It will only give you 5 mins sync timing but this will probably
    do, otherwise the next best options is to use SQL Server VMs and do the old fashion way. But with SQL Azure Data Sync we have found to be reasonable reliable and been running it for a good six months syncing across 4 database in four data centres in Azure.
    Some problems though with it,
    It uses Triggers.
    It will obivously add load and connections to your current SQL Database.
    It is in preview last time I looked, so it might not be 100% suitable for you
    Ref:
    http://www.mssqltips.com/sqlservertip/3007/move-an-on-premise-sql-server-database-to-the-sql-azure-cloud/
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-get-started-sql-data-sync/
    Hope this helps you.
    Girish Prajwal

  • Link a Crystal Report report with an SQL Azure database

    Hi,
    I want to use my database on SQL Azure in Crystal Report. So I want to link my reports with data contained not in a local db, but in a SQL Azure one.
    Insiede Crystal Report I have created a new ADO connection to my SQL Azure, providing server, db, user, password, and Crystal Report have recognized the database. But when I go to the Database Expert and I try to set this ADO connection inside my report,
    I recieve this error:
    "Not Implemented
    Source ADODB.Connection
    L'operazione richiesta non è supportata dall'oggetto o dal provider (operation not supported by the object or by the provider)"
    Why? How can i use my SQL Azure data in my Crystal Report reports?
    Thanks

    Hi Delfins,
    Please create a UDL file to test the connection, ensure the connection is fine and then use the same connection string in your Crystal Report.
    For UDL file, you can refer to:
    http://msdn.microsoft.com/en-us/library/e38h511e(VS.71).aspx
    Hope this helps,
    Raymond
    Raymond Li - MSFT

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • Connecting to a sql server database using netbeans 5.5

    hi all
    if you please could any body tell me detailed steps for establishing a connection to a sql server database using netbeans 5.5
    i need to know what driver to use and the format of the url i use in making a new connection
    thanks

    Uhm SQL (Structured Query Language) is like the base
    of all other type like MySQL and Oracle. Um, given the context I think the person was referring to "Microsoft SQL Server". Sometimes people will cut to the chase and refer to the product as "SQL". At those times it's understood by all parties that we're not talking about the query language, rather the Microsoft product.
    I think this is one of those times.
    See
    something i found in two seconds with the wonder of
    google http://sqlzoo.net/ & http://sqlzoo.net/w.htm
    It's commendable that you're using Google. I'd argue that the OP should be making better use of it, too. But I don't think your response is applicable to this context. JMO, of course.
    %

  • How to make a connection between two wireless sensor networks of different groups through gateway?did any external device or coding is needed?

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

  • Error message when trying to connect to a SQL Server Database

    All:
    I get the following message when I try to connect to a SQL Server Database within a form:
    "Connection for Source DataConnection failed because the environment is not trusted"
    Can anyone help me solve this problem?
    Thanks,
    BR

    Hi Brian,
    In Acrobat, security concerns dictate that you cannot specify an ODBC connection string by using the Driver=; syntax. Therefore, the client computer using the form needs to have a DSN pre-configured for ODBC connections.
    Denver
    Adobe Enterprise Developer Support

  • How to modify stored procedures in SQL Azure database in SQL server express 2012

    Hi,
    I want to modify stored procedures in SQL Azure database in SQL Server Express 2012. But when right click on the stored procedure in Object Explorer, there is no option "Modify" as for SQL Server database. I wonder how to modify stored procedures in SQL
    Azure database in SQL Server Express 2012. Thanks.
    York

    Hi,
    Not sure whay there is no modify..
    As a workaround can you try this and see if you can modify proc..
    Script Procedure As-> Alter To->New query window..
    - Chintak (My Blog)

  • Why i cannot create the sql azure database from my own country 'Nepal' ?. why it is not include in the list of country when we sign up for azure database. :( !!!

    why i cannot create the sql azure database from my own country 'Nepal' ?. why it is not include in the list of country when we sign up for azure database. :(  !!!
    canot we try this new feature ,dosnot we need to try this too..why such discermination for our country nepal. :(

    Hi Anil,
    I am Mahesh from Microsoft Innovation Center. From August 2014 we have made Azure Available to Nepal. You can now directly sign in to azure with your Nepal Based Mobile Number as Verification.
    Thanks for showing your Interest in our Product.
    Mahesh Dahal

  • Can dw cs3 connect directly to sql server database without a testing server?

    I'm new to dreamweaver but have used script tools that link
    directly to my sql server database.
    Not in dw, so far. As of this early stage, I don't have or
    want to use a web server, and it's blocking me
    without one. I just want to prototype without a testing
    server, directly to my database. And while I'll try php
    later, I didn't want to have to get into it or cold fusion,
    etc. right away.
    Can dw connect directly to sql server database without a
    testing server?
    I'm running XP sp 3 at this point, and don't see IIS. There's
    probably some security issues
    I'll have to tangle with. The goal is for my website to end
    up on the company intRAnet, not the www.
    fwiw, I can Build in Data Link Properties and get a
    successful test to my sql server database via
    Microsoft Data Link, but once I go back and try the test in
    OLE DB Connection it balks on the testing server,
    as I don't have one locally or otherwise. Isn't there a way
    to link to db without a testing server?
    Thanks for any insights.

    Art wrote:
    > You can connect to SQL server using ODBC in windows.
    Yes, you can. However, Dreamweaver's PHP server behaviors
    work only with
    MySQL. To connect to any other database, you need to hand
    code
    everything yourself.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Connect a Microsoft SQL Server Database with eclipse

    Hi all,
    I am having problem to connect a Microsoft SQL Server Database with eclipse. Is it possible to do it? And could someone explain me how, please? When I want to create a connection from the data source explorer, I have in the list of connection only derby and jdbc. Is anything else that I have to download?
    Thank you in advance for your help.

    Just choose generic JDBC and locate/specify the driver yourself. Exactly the same as you would use when you wrote JDBC code yourself.

  • Connecting to a SQL Server Database

    Can someone please point me to a guide or tutorial that
    explains the basics for connecting to an SQL Server Database. I'm
    just installed Coldfusion Developer Edition and Microsoft SQL
    Server Studio Express on Windows Professional. Do I go into the
    administration section of Coldfusion to add the database so that
    the datasource can then be used in my Coldfusion application? What
    other steps are there?

    Briefly,
    1. Create the database using SQL Management Studio Express.
    2. Set up your MSSQL security by following the tricks in
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400255
    3. Go to ColdFusion administration and create the datasource,
    as you suspected. Enter T30\SQLEXPRESS as the server, where T30 is
    your windows computer name (obviously different, unless your naming
    conventions and the choice of laptop matches exactly mine ;-). Your
    SQLEXPRESS instance name might also differ, but that's the default
    I guess.
    4 That's it, you're ready to go.
    5. If things don't still work, start the SQL Server Browser.
    (It's a Windows service installed by MSSQL Server). I haven't
    figured out quite what this does, but it solved the problem for me.

  • How to check the Network Connectivity between two systems.

    Hello Everyone,
    Please let me know different ways to check the network connectivity between two systems other than ping/traceroute commands.
    Thank You.
    Edited by: 835435 on Jan 20, 2012 11:43 AM
    Edited by: 835435 on Jan 20, 2012 11:44 AM

    Use snoop.
    snoop -d <nic> - will give requests and replies coming/going in/out of the specified NIC.
    snoop -d <nic> <MAC address of the target host> - will give requests coming from the required host.

Maybe you are looking for

  • How do I manually backup to both my pc & icloud via itunes?

    When I plug my phone in and open itunes, there's a backup section with both icloud and my computer listed. I want to be able to make a manual backup in both places (you can't be too careful! :-). I can freely checked either my computer or icloud, and

  • How to include a large amount of objects in a package interface

    Hi guys, I would like to include a large amount of objects (programs, classes, etc.) in a package interface in the package builder (SE21). I would like to avoid inserting them one by one. Is anyone have a solution? It is not possible to use such char

  • AppleWorks 6.2.9

    AppleWorks crashes since I updated to 10.4.4 When I start typing it shuts down

  • Hi All - Cannot See Adobe Edge/Animate in Adobe Application Manager?

    Edit: Have just figured out that this is down to this machine's OS being Windows XP. Hi All, I am to get to use the release version of Adobe Edge, having had a couple of the pre-releases. I have signed up for Creative Cloud, downloaded and ran the ap

  • How to use time capsule as media server on samsung tv

    My time capsule is connected via lan with my samsung Series7. The tv has a connectin to the internet via lan. I want to stream movies from the time capsule directly via lan to the tv. "All Share" doesn't see my time capsule. Do I really have to insta