Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:21:22+00:00 2026-05-29T17:21:22+00:00

Is it possible to move schema and data from SQL Server database to another

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:21:24+00:00Added an answer on May 29, 2026 at 5:21 pm

    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:

    • BACKUP/RESTORE – this copies the entire database, so you can’t manage individual objects and of course if you overwrite the target database then you lose all the existing data
    • Replication – copies data and objects between servers, but can be complex to set up and manage
    • Use Integration Services to create packages that copy data and objects between servers
    • Use a third-party tool with command-line support and drive it from Java
    • Write your own programs to get SQL scripts from source control and execute them against the correct databases using sqlcmd.exe; you can use bcp.exe to export and import data from specific tables

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Get script of SQL Server data I want to move some rows
It is possible to move a table from one schema to another: ALTER TABLE
I was wondering if it is possible to move all rows of data from
I'm wondering if it's possible to move all data from one column in table
How is it possible to move files from a folder to web server through
Simple problem. I'm working on a single SQL Server database which is shared between
So today I had to move some tables with data from an MS Access
Is it possible to move a MOSS subsite and content to a different site
Is it possible to move applicationSettings to another config file as it is possible
Is it somehow possible to move a 2 dimensional array directly into a database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.