473,513 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reset Database to default/initial state

228 New Member
What would be the easiest way to reset a database to its initial state? TRUNCATE all tables is one option but then the problem with FK constraints is there. DELETE takes a lot of process while DROP CREATE takes a lot as well.

The database usually have close to 300,000 records and a simple way to reset it is needed.
Feb 6 '12 #1
1 2211
NeoPa
32,558 Recognized Expert Moderator MVP
I expect DROP/CREATE is the best you'll get I'm afraid.

Listen out for more though, as there may be something I'm just unaware of.
Feb 6 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1696
by: Joey Martin | last post by:
Is it possible to reset a SQL field to it's default setting? For example, someone changes FIELD1 to "John Doe" and the the default is "YOUR NAME". Can I reset it back to "YOUR NAME" somehow? Thanks for the help. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
0
2224
by: Graham Mattingley | last post by:
I have built a database with a Primary Key / Auto Increment. I have been doing loads of testing with adding and deleting records. Now I need to delete all of the test records, and put the database on a live website. Is there anyway to reset the Primary Key back to 1. Now when I have deleted all the records, the Primary Key uses the next...
3
3500
by: mark | last post by:
My program has several global arrays declared but not sized: Public Shared A As Double(,), Public Shared B As Double(,), etc. As methods are called the arrays are sized as appropriate for specific circumstances. As time goes by, memory gets used and things sometimes bog down. I would like to be able to reset my program to its initial state...
7
6876
by: Ina Schmitz | last post by:
Hi NG, I wanted to reset the database (manager) configuration with RESET DATABASE CONFIGURATION and RESET DATABASE MANAGER CONFIGURATION After doing this, I rebooted server and client and restarted IBM Universal Database 8.2. But now, I couldn't connect to my database anymore :-( getting the following
3
5401
by: Matt | last post by:
Does the standard define default values for the format state of an ostream? I would like to be able to put a stream in a standard format state without thinking about how some other routine may have changed the state. I don't see the answer in Stroustrup or in the parashift FAQs. I would like to write a statement like ...
0
920
by: neilmcguigan | last post by:
hello when using a tableadapter, i'd like to be able to use the database default value for an insert (such as GetDate()), but i don't see how. is there a way to do this? thanks neil
0
1226
by: mazdotnet | last post by:
Hello, I'm using the asp:CreateUserWizard on the bottom of a page with a search for users option on the top of the page. The issue that I'm running into is that everytime I add a new user and get to the 'Your account has been successfully created. ' button, I don't know how to reset this web user control so that I can add another user...
0
1395
by: maflatoun | last post by:
Hello, I'm using the asp:CreateUserWizard on the bottom of a page with a search for users option on the top of the page. The issue that I'm running into is that everytime I add a new user and get to the 'Your account has been successfully created. ' button, I don't know how to reset this web user control so that I can add another user...
7
9233
by: tokcy | last post by:
Hi everyone, I need the world database of country state and city. Actually i have three drop down option in my project in 1st drop down country name should come from database and 2nd drop down state name should come from database according to country and in 3rd drop down cities name should come from database according to states. I have tried...
0
1146
by: gerryis2000 | last post by:
Hi, i used the security wizard to set security on a adatabase. when i copied it to another computer, the database refused to open though i had copied all the security file, backup file and the security enabled password. coming back to my computer i decided to cut off the security file and try opening the same data base but it refused. i then...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7565
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4759
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.