Compare and Sync two Sql server Databases using msDeploy

Hi,
I have two servers on each server I have sql server 2005 with the same database instance, So I want to use msdeploy to compare between two databases and then sync new rows,tables and any database object from first server to second one.
I used dbFullSql provider but dbFullSql provider used to sync for first Time.
Please if there any idea.
Thanks and Regards.
mhd


Hi Mohammed Oda,
Could you explain what your demand, i am not quite understand your description, if you are asking the SQL question please post in SQL forum.
SQL Server question please post to theSQL Server forum.
SQL Server forum:
http://social.technet.microsoft.com/Forums/sqlserver/en-us/home?category=sqlserver
Thanks for your understanding and support.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • 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.
    %

  • P6 Web Access connection to MS SQL Server database using TCP Dynamic Ports

    Hi,
    I am attempting to install P6 Web Access. When I run the installation and do the database configuration I am required to input a port number into the Database Host Port field. I do this and no error is displayed graphically, but I get a connection refused error when I look in the web access log.
    "com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect "
    The dba is running the database on an sql server farm and does not want to apply a static tcp port to the Primavera database as this will interfere with his other databases.
    The fact that it appears to be mandatory to input a host database port during database configuration, has me thinking that P6 Web Access requires that the database be set up with a static TCP port? Is this correct?
    I searched the documentation about this but came away with nothing...
    any help would be truly appreciated.
    Andy

    At my previous company we experienced a similar issue with P6 Web. Our P6 database was hosted on an Oracle RAC and when configuring the Web connection I was forced to point it to a single RAC server rather then allow it to utilize the cluster. If you have found a resolution to this I would be interested in hearing about it.

  • Get collation of SQL Server database in C# application.

    Hi all,
    Is there any way to get collation of SQL Server database in C# application.
    Basically I have to read collation of two SQL Sever databases and compare them in C# application.
    If possible change the collation of two SQL Server databases to same. These databases are empty and newly created one's.
    Can any one provide pointers or sample.
    Thanks in advance.

    Hello somsekhark,
    May I ask the meaning of this "collation of SQL Server "? Do you mean data collection or you mean the whole database file?
    I saw that you want the two database the same and you want to use C#, in this way I would recommend you check the following tutorial as a start:
    1. Introuduce to Bulk Copy
    https://msdn.microsoft.com/en-us/library/7ek5da1a(v=vs.110).aspx
    2. Multiple Bulk Copy Operations
    https://msdn.microsoft.com/en-us/library/s4s223c6(v=vs.110).aspx
    However the above things need the target database table exist.
    If you don't want this you may think about using SQL Server Management Objects
    https://msdn.microsoft.com/en-us/library/ms162169.aspx
    Something like introuduced here:
    https://msdn.microsoft.com/en-us/library/ms162563.aspx
    For more details, I think you question need to be specific.
    Best regards, 
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • Issue with connecting to SQL Server Database in 11g

    Hi
    We successfully created odbc connection say "Test" to read SQL Server database using odbc admin.The issue we are facing in 11g is, we are unable to import tables using the database connection "Test" in to Admin tool.
    In 10g we did not come across this issue. We used the same credentials and process incase of 10g and 11g to read SQL Server database, but we are facing the connection issues incase of 11g.
    Please, let us know is there any change need to be done to any config files or is there any way to overcome this issue.
    Thanks.

    Hi,
    What do you mean by 'we are unable to import tables using the database connection'
    Do you get an error message or the connection fails or what
    Please add the details about the issue in order to help
    Regards
    Adil

  • Extracting data of data type 'real' from the sql server database

    Hi,
    In my job, my source is a sql server database.
    I am connecting to the source sql server database using ODBC (sqlserver driver) in the datastore.
    In one of my source tables i have a field of data type real.If one of the value is 3.45678 , data services brings it in as 3.456780, which is OK, but if the real value is 4.7 in source, data services brings it  as 4.699997. I want it to be brought in as 4.700000 and not as 4.699997(i.e it is expanding upto 6 digits after the decimal point).
    Is this a default behavior of how data services reads the 'real' data types or is it because of how the ODBC sql server driver reads the data ?
    Is the above problem connected to an option in the DS.config file called
    LAZY_DECIMAL_CONVERSION which is set as true in our file.Should i set as false and will it solve this problem?
    Thanks in Advance.

    I tried reproducing your case, I read a value with real datatype from sql server DB. For me the values are coming fine, 4.7 is read as 4.700000 or 4.528 as 4.528000. I have also checked the value of LAZY_DECIMAL_CONVERSION, it is true. So I dont think it is a problem with that being set to true. Try something out with the Column properties in Query transform.
    I am using DS 3.2/ SQLSERVER 2008.
    Edited by: Lakhan Lalla on Oct 31, 2011 12:04 PM

  • Config of multiple SQL-Server databases without multiple gateways-possible?

    Hi Guys
    Can someone tell me if there's any way of connecting to different SQL Server databases (using Transparent Gateway) WITHOUT having to create multiple gateways?
    I have read in various sources that I MUST create one gateway per target database. I was contemplating a workaround such as creating a sysadmin SS user (and using these credentials in the db link) and trying to access any one of the databases within the SS instance. As I'm sure you know, you can query a SS database via a sysadmin user like:
    select * from my_db.dbo.my_table
    I realise it was a long shot to execute this from Oracle select * from my_db.dbo.my_table@my_dblink and yes....it didn't work.
    We have SS databases that are constantly dropped, recreated, renamed etc so we don't want to configure transparent gateway for a database only for it to be dropped 5 minutes later.
    Thanks in advance, Jon
    Edited by: user10240703 on 01-Oct-2009 03:07

    Thanks! I'm sure that's the fella...but things still progressing at snails pace.
    after (somehow) fixing the following ....
    ORA-02055: distributed update operation failed; rollback required
    ORA-02067: transaction or savepoint rollback required
    ora-1591 lock held in - doubt distributed transaction error
    I now get and can't get round the following error:
    PLS-00487: Invalid reference to variable 'REC1'
    Here's the simple code
    SQL Server
    alter procedure jontest as
    begin transaction
    select test from dbo.a
    commit
    Note: test is a varchar(50)
    PLSQL code
    create or replace package rcpackage is type RCTYPE is ref cursor;end rcpackage;
    declare
    rc1 rcpackage.rctype;
    rec1 varchar2(50);
    out_arg varchar2(255);
    begin
    rollback;
    out_arg := null;
    dbo.jontest@omg(rc1);
    fetch rc1 into rec1;
    dbms_output.put_line(rec1.test);
    close rc1;
    end;
    Note: as you can see, the sql server column and the rec1 are the same datatype so i've no idea why it doesn't like this. I've tried with different datatypes, integers etc with the same error. Any clue? Thanks,
    Getting there, but slowly :-)

  • Code for connecting to a Microsoft SQL server database

    Hi
    What is the code for connection to a Microsoft SQL server database using JSP? I know the structure of the code but i do not know the driver name. Any importing required besides java.sql?
    Thanks

    Back up there. JSP's should never contain any
    database code. You should write a bean to handle
    database transactions and call that from your JSP.I agree wholeheartedly with that.
    Why didn't you consult google to help you with your
    problem? The answer is on the MS website.
    http://support.microsoft.com/default.aspx?scid=kb;en-u
    s;313100This is correct, too. Isn't Google installed on your machine?
    %

  • Converting Access application after migrating SQL Server database

    I have used migration workbench to migrate an access database and application. I now have sql server databases with access applications that need to be migrated. How can I convert the access applications that currently use sql server as a database? I don't see that migration workbench considers this combination.

    If you have and Access/SQL Server combination. then download the SQL server plugin appropriate to your version of SQL server. Go ahead and migrate the SQL Server database to Oracle. Once this is done, then update your access application so your link tables point to your newly migrated Oracle database.
    Donal

  • Compare methods in C # to connect to SQL Server database in terms of speed,quality and functionality.

    Please compare
    methods in C # to connect to SQL Server
    database (for example,
    3-tier architecture of traditional and 
    entity Framework(linq to entity or linq to sql object model)
    and Linq to SQL) in terms of speed, quality and functionality
    to give me tips.
    Thank you.
    Mojtaba Malakouti.

    That means we need to compare and post the results here?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • SQL Server synonym used in two ways, local table and Oracle table via ODBC, fails on ODBC

    I am implementing a Web Site at our institution that was written for another institution that was all SQL Server.The Web Site has included as a feature the use of synonyms which have a dual use. Normally they point to a different machine, different database (PeopleSoft)
    via linked server, but if the linked server connection fails they can be switched to point to tables on the local instance by running a stored procedure that redefines the synonyms. This is a failover feature meant to keep the site up by resorting to
    possibly out of date data if need be.
    This means that any SQL Select statement that uses one of these synonyms is unaware of whether the data returned comes from the local instance or from another remote instance. There is no logic to check whether the linked server is functioning or not.
    The local instance is a custom SQL Server database at both institutions. The remote instance is one of two PeopleSoft instances at both shops; however, while the original website was written to work with the remote instance being SQL Server,
    our shop uses Oracle for PeopleSoft. This means that our linked servers are further complicated by an ODBC connection that the original site did not need.
    The problem I have is that the SQL statements in the stored procedures that came with the Web Site do not work when a synonym is used that points to the remote PeopleSoft instance. The same statements also fail in SSMS.  I get this error when I run
    this statement (select * from PS_ZZ_BUD_JOB_VW):
    Error: The OLE DB provider "OraOLEDB.Oracle" for linked server "CSUPG" does not contain the table
         ""dbo"."PS_ZZ_BUD_JOB_VW"". The table either does not exist or the current user does not have  permissions on that table.
    I can successfully query the PeopleSoft database using openquery, but unless I can get the synonyms to work as they were intended to, I'll have to rewrite all the stored procedures that use them to: 1) check if the linked servers are up, then 2) execute
    one of two versions of each SQL statement depending on the result of that check.

    Will the four-part notation work when the synonym is pointing to the local SQL Server table ?
    You should not use four-part notation when you reference your synonym. The four-part query that I suggested is only one you would to determine to define our synonym correctly when the view is on the Oracle server.
    In the case of synonym PS_ZZ_BUD_JOB_VW, it can point to either an Oracle view of the same name, or to a local SQL Server table named PS_HR_JOB.
    Then the table is local the synonuym definition should be
    CREATE SYNONYM PS_ZZ_BUD_JOB_VW FOR dbo.PS_HR_JOB
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Is it possible to have different authentication mode for SQL Server Database Engine and corresponding SQL Server instance?

    Hi,
    I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
    mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
    about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
    is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine  of the SQLEXPRESS instance.
    I have two questions:
    1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
    2) Why 32-bit instance reported although I installed only 64-bit version?
    Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
    issue, but there is no answer :(.
    Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to compare 2 dates in SQL Server 2000 DB using Java?

    How do you compare 2 dates in SQL Server 2000 DB using Java?
    Let's say we have two fields: Date Reported and Target Finish Date.
    Date Reported is 09-10-2004 09:55:55: PM
    Target Finish Date is 09-12-2004 11:59:59: PM
    What i want to happen is i want to convert both dates to days and get the difference of the two.
    can SQL Server 2000 DB do this?

    it doesnt wrk.
    ok here's what i did:
    iv tested a simple code for this case.
    I created a table name tblDate which has 3 columns namely date_ID, date_From (datatype datetime), date_To (datatype datetime).
    I inserted 1 row: date_ID has the value 1, date_From has the value 10/22/2004, and date_To has the value 10/24/2004.
    i run the java code below:
    int days = 0;
              String query = "SELECT date_From, date_To cast(date_From-date_To AS int) AS Diff FROM tblZoo WHERE date_ID = '1'";
              try
                   DBConnect db = new DBConnect();
                   db.openCon();
                   ResultSet rs = db.execute(query);
                   while(rs.next())
                        days = rs.getInt("Diff");
                   db.closeCon();                         
              catch (Exception ex)
                   System.out.println("Error on Execution: " + ex);
              return days;___________
    an error occurred: Error on Execution: java.lang.nullpointerexception

  • How can I  connect to SQL server database thru local network by using JSP?

    I'm currently doing a project by using JSP..And I need to display record from the SQL Server database in our school's local network. May I know how can I do that? How can I write the code so that I can able to access the SQL Server databsase Throught school's network by using JSP? Please tell me step by step how can I do that. I'm using Tomcat 4.1 as Web Server. And I had J2SE and J2EE installed in my computer.

    first you have to establish a ODBC DSN on your computer,
    that connects to the database...you can do that from your control pannel.
    i assume that the TOMCAT server is residing on your computer....(if the webserver is in other computer then you would have to create a System DSN on the data sources ODBC option in the settings>control pannel of that machine)
    then you can use that DSN name to connect to the data base from the class file....for further assistance on how to create the class that access the tutorials in sun site.
    regards
    G

Maybe you are looking for

  • CS5 saving to PDF

    I am trying to save a book coverflat with the fonts embedded to a pdf.  I can get one font to embed but not the other two. I've looked at the settings of the fonts and they aren't listed as restricted.  So I am at a loss as to why these fonts wont em

  • Interface Mapping not supported in the JPA specification?

    Are there any plans to add Interface support in the JPA specification? It is not supported by JPA annotations, which seems quite disruptive to proper object oriented design. However, individual implementations of JPA seem to support this: http://docs

  • Problem with InDesign CC redrawing the screen too slow while using Zoom tool

    Hello. I got a problem with InDesign CC redrawing the screen too slow while using Zoom tool. Sometimes it takes more than a secong to zoom in or out. However InDesign CS6, Photoshop CC, Illustrator CC works just fine. What could be the problem, video

  • SetCurrentRow feature or bug?

    When trying to set the current row of a RowSet to a Row that are obtained from the same Rowset (using findByKey) but with a rangeSize smaller than the total number of rows in the row set, the method setCurrentRow(Row) of the RowSet doesn't work: View

  • COPA TO FI

    Hello,            We need to push back the data from COPA to FI like moving data in value fields  to GL accounts in FI.How do i do that and what is the info i need to give you when it comes to preparing the FD document. srinath.