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 6200277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:20:15+00:00 2026-05-24T04:20:15+00:00

I am trying to set up a C# tool that scripts an entire database

  • 0

I am trying to set up a C# tool that scripts an entire database from the tables down to the stored procedures. I want to get all the schema and data. I am having a hard time finding much on the net on how to do this properly. I would think this would be common practice as an alternative if you don’t wish to actually back the dabase up using Backup or Transfer, but I can’t find much on the subject. Can anyone direct me to something on how to do this or tell me what needs to be done? I have found how to script Tables and stored procedures, but I want to get EVERYTHING in the database so that I can revert back to where it was if changes to the database breaks other things.

One of the reasons I am going about it this way is because i know that if you do a backup:

a.) it can get corrupt
b.) you can only do a back up on the server hosting the SQL server. You cannot back it up on your local machine if you are running the application remotely from the SQL Server. This is of course assuming that I cannot always rely on a UNC path or ftp script of any kind.

  • 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-24T04:20:15+00:00Added an answer on May 24, 2026 at 4:20 am

    Have a look at http://scriptdb.codeplex.com.
    This is a tool that scripts out a Database’s ddl.

    For Scrripting out the data you could try an approach like described here: http://sqlblog.com/blogs/ben_miller/archive/2007/10/18/scripting-tables-views-and-data-using-smo-part-3.aspx or try to use bcp, wich would be the better alternative for bigger databases.

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

Sidebar

Related Questions

Trying to set up caching on our datasets - we're using clr stored procedures
When trying to set DoMatchParen I get the following error: E492: Not an editor
I am developing a tool that creates PHP classes based on tables in my
Im trying to mock a method that is ineherited from a parent class that
I'm trying to create a tool that converts the dynamic DHCP-provided IPv4 address, gateway
I'm trying to use Monkey debuggin tool (from adb) to stress test a part
I'm trying to set up Chrome to run as an external tool in Eclipse
Hello guys Im trying to set a max width and height so that when
I am trying to set the page margins on an excel spreadsheet that is
I'm trying to represent a class that, amongst other things, has a set of

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.