Is it possible to move schema and data from SQL Server database to another (residing in different physical machines). The option should be supported for SQL Server 2005 onwards.
I found out a few COM/.NET assemblies which can do some of those but we would be supporting a Java centric solution.
So is there any system stored procedure etc which can accomplish the task ?
Thanks for the extra details. If you can only use Java and TSQL, then your options are somewhat limited because the APIs for working with MSSQL are all in .NET and most third-party tools are also .NET-based.
You haven’t mentioned which OS you want to run your code on, what your goal is (deployment? high availability? reporting?) or how often you need to do this (once? on demand? scheduled?) but assuming it’s Windows and that you can use the MSSQL command-line tools (sqlcmd.exe, bcp.exe etc.) then here are some possibilities:
Unfortunately the Java-only restriction means that you can’t use SMO, which provides a full API for managing MSSQL objects, including generating DDL for existing objects. And Visual Studio database projects are presumably also not possible, which means you cannot use VSDB deployment features.