Scheduled Database Dump Dilemma
Mar 7, 1999
I am fairly new to SQL server and am having a problem getting the SQL backup or "dump" to do what I need it to do. My desired end result is to have a database backup every night to a backup device on the same server as SQL is running, and keep one weeks worth of databases in the backup device, overwriting the database backup from 7 days before. This device is then transferred sometime later to another server using the NT AT scheduler. The first time I tried to accomplish this I used Enterprise manager to schedule a full backup to be run each night at midnight. The backup device was set to be initialized and retained for 7 days. This procedure worked once, the first night. There after it failed. In looking at books on line it said that I needed to change the transact -SQL command from INIT to NOINIT as the INIT instruction was the cause of the failure. I changed the statement in the Scheduled Task manager to NOINIT. That seemed to do the trick as I checked the backup device each of the next few days and saw that it was indeed performing the backup and retainng the databases. A week later I checked the backup device again and found that it is still adding database dumps to the file, but it is not overwriting the dumps that are 7 days old. I am told that I need the INIT statement in the dumpdevice command in order for the RETAIN DAYS = command to kick in. However, this did not work before. I can not continue adding to the dump device as it will get too large and take up too much disk space on the server. The only way I can get the device to a reasonable size is to do a backup and initialize the device, which gets rid of all of the older databases. This seems like a catch 22. Is there any way I can make this work. I am running SQL 6.5 on the latest service pack (5a). Any help would be greatly appreciated.
View 4 Replies
ADVERTISEMENT
Jan 26, 2007
I have an int field - that will hold number for an ordering system. It's a databound field to a textbox in a grid, I want the default to be empty, however not all fields are required so i may have 1-6 as bound values, and the rest should fall in line behind them - the only thing i can think of to do is default the values to 9999 so they come after 1,2,3,4,5,6 etc... I don't like seeing 9999 in my bound fields.
thanks for any suggestions you may have.
Jeff
View 1 Replies
View Related
May 11, 2005
hi,
i have a field of type int, that when returning results, needs to be in ascending order. the problem is that this field can also contain null values. is it possible to return the results in ascending order but have all the null values at the bottom of the result table?
thanks,
goran
View 5 Replies
View Related
Nov 16, 2007
How do you get the following to work properly?
WHERE Location = 'John's House'
The apostrophe between n and s has me stumped. Thanks.
View 6 Replies
View Related
Mar 6, 2000
Hi,
I need a good suggestion from you.
1. I need to create a replication enviroment. In that i want to snapshot the database as and when i want from my Java program, so that selective tables are updated with latest data. Is there anyway i can do with out creating native replication methods.
2. Is there any way with out creating a snapshot or replication. I need to copy the data from my master database to child database(my reporting database) with out straining much my master database
Thanks in advance
Regards Jagannadh
View 1 Replies
View Related
Oct 5, 2000
Hi people
when doing a dump on a Win2000/SQL7 database from and NT4/SQL6 machine I get the following error:
SqlDumpExceptionHandler*****
EXEPTION_ACCESS_VIOLATION. SqlServer is terminating the process.
Can anybody tell me why?
What should I do?
Tks
De waal
View 1 Replies
View Related
Aug 3, 1999
Hi all,
When I use "DUMP DATABASE", it will help me to backup both database and
transaction log. However, it will not help me to clean up the transaction log.
Therefore, I am worry that will the following happen?
1. DUMP DATABASE
Start backup database
( there are transactions during the backup process )
Finish backup database
Start backup transaction
Finish backup transaction
2. DUMP TRANSACTION
Start backup transaction and clean up the transaction log
So, will the transactions been backuped twice? If yes, will it cause those
transaction do twice when I restore the database then restore the transaction?
Thanks
View 2 Replies
View Related
Aug 10, 1998
Hello, All!
Can anyone explain what happens to Transaction Log
when DUMP DATABASE is issued?
Thanx.
John.
View 1 Replies
View Related
Jul 20, 2005
Tried googling, but I guess I have the wrong terminology for MSproducts.Using PostgreSQL, or MySQL, if I wanted to tranfer a database from onemachine to another, I'd do a "dump" with a single command, such as:mysqldump [databasename] > [path/filename]Then I'd take the file generated and dump it back onto a new machine.What's the process with MS SQL Server? Can someone point me in theright direction to a webpage dealing with this?--[ Sugapablo ][ http://www.sugapablo.com <--music ][ http://www.sugapablo.net <--personal ][ Join Bytes! <--jabber IM ]
View 3 Replies
View Related
Sep 5, 2006
Hello,
How do I import data from a text file into columns (DB_table) that I have created in SQL server 2005?
Data in text file does not have any commas, semicolons, or spaces in between them.
Each instance in the text file consists of 109 characters (real numbers).
I also know that first 4 numbers go in particular field, next 4 go in another field, and next 6 are particular field, and so on.
I also have created columns in a table respectively.
View 5 Replies
View Related
Sep 29, 2000
I am trying to backup database on a network disk using isql
dump database <DBNAME> to disk = 'servernamepathfile.ext' with INIT
but this does not work and gives an error device off line.
How can I do this??
Thanks
View 1 Replies
View Related
Aug 29, 2006
Hello,
I have a SQL database dump with me. I would like to create a database using the dump. Could somebody help me with the steps?
Thanks :)
View 1 Replies
View Related
Dec 7, 2006
Hi
In my app. i'm using sql server 2000 now I want to move to MSDE2000. I have two Queres. my application environment is Vb.net
1.how to dump my sqlserver database which i was already using to theMSDE and
2.can i connect this MSDE to MSSqlServer2000
View 3 Replies
View Related
Oct 25, 1999
Both "dump database" and "sqlmaint.exe -bkupdb" would be able to backup database, one important advantage I can see from "sqlmaint" is that it has the option to cleanup the very old generations of backups by using -delbkups option in a scheduled maintenance backup job, while the "dump database" would first create a dump device and it'll grow with time.
Is there any suggested way to use the "dump transaction" but still we can get control on the size of dasd used ?
Any negative part of using "sqlmaint" utitity to backup database as compared to the "dump database " utility ?
Anthony
View 3 Replies
View Related
Oct 13, 1999
We run SQLMaint hourly ( as a scheduled task ) to clear our transaction logs. Last night our hard drive filled up during a log dump, causing SQLMaint to fail, and a subsequent transaction filled up the log.
We succeeded in manually truncating and clearing the log, but SQLMaint still insists on us doing a DUMP DATABASE to clear the logs before it will run again. Unfortunately, we do not have enough space left on our hard drive to do a full database dump.
Is there any way of fooling SQLMaint into believing that a DUMP has been run? Some flag in a system table somewhere, or maybe a registry entry?
John Morrison
Hurst, TX
View 2 Replies
View Related
Oct 5, 2004
I am attempting to remember the string to dump/restore a database to a different physical server.
I have the database on Server 1 and want to back it up to server 2. Can anyone refresh my memory?
Thanks
View 2 Replies
View Related
Apr 12, 2001
Hi there,
I'm a newbie. I've installed a replication between 2 NT4 servers, with SQL 6.5. My logreader tasks has crashed "Can't allocate space for objects 'syslogs' in database 'distribution' etc...". With a DBCC SQLPERF(LOGSPACE) I can see that the log is 100% full, but I can't dump it : when I use DUMP TRAN DISTRIBUTION WITH NO_LOG, my distribution log is still 100% full. So how can I do to dump it and what can I do to prevent it from filling up ? Do I need to dump it like I do for my database but how could it work if a DUMP TRAN doesn't work ?
Thanks in advance.
Sorry for the English, it's not my native language.
View 2 Replies
View Related
Jul 20, 2005
hi,There is facility to do backup of the database. I can use thatfacility to backup the database. But before i do a backup i want tocheck if the disk space available enough to backup that database. Ihave a 22gb database mdf file, when i took a backup of that its only3gb. SO i cannot use the size of mdf file to determine the databasedump file. Is there any facility available to find out the backupdatabase dump size before doing the backup?ThanksNabhonil.
View 1 Replies
View Related
Mar 16, 2007
Hi Every bdy,
I have a database which is in mysql. Now we want to port that database to Sql Server 2005. Please tell the steps to do this.
With Regards
Ravinder Reddy.K
View 6 Replies
View Related
Aug 18, 1998
We are running sql 6.5 with Serv. pack 4. All of our Prod. database are backedup weekly via scheduled tasks. On occasion the dump of a particular database will cause 1 of 2 things:
1. The db dump seems to work correctly but stops sql executive service.
2. The db dump seems to work correctly but sends an alert email msg to me indicating that it failed. The msg in the email is "NO Message".
Has anyone experienced either of these 2 problems or have any solutions?
View 1 Replies
View Related
Dec 5, 2005
I have a database dump using mysqldump. Now I want to import a table from the dump file. How would one do this?
I've used mysqlimport < table.sql, but what if I have databasedump.sql which includes all the tables, but I only want to import ONE table?
-D
View 4 Replies
View Related
Nov 3, 1998
can a database dump created from one database be used in another database? what are the procedures?
thanks in advance
View 2 Replies
View Related
Feb 21, 2008
I want to schedule a job to run nightly where a remote mysql database is imported into a local sql server db. I ran through the wizard for scheduling a job, previewed my table data, and viewed the scheduled job in the DTS queue. However, the job never runs. I can't figure out why.
Anyone have any idea why? Is there a step-by-step process somewhere for doing this?
Thanks,
C
View 1 Replies
View Related
Jul 20, 2005
Does anyone has a script which gives all databases names and thereallocated, used sizes in SQLserver2k. I want to schedule this to create adaily report.Thanks,Nasir
View 1 Replies
View Related
Feb 23, 2008
Hi, I have added a new SQL Server database to my project and I was wondering how to do generate a SQL dump of the database, tables, and queries? I couldn't find any utilities in Visual Studio 2008 Pro. I also couldn't figure out how to create indexes using VS. Thanks!
View 2 Replies
View Related
May 29, 2008
Dear all
I am working with database programming and maintaining
from last 3 years and this days i want to sit for 70-431 exam.
if some one have the dump of 70-431 please send it to my mail
shohan_mcp@yahoo.com
thanks
shohan
mcp
shohan
View 2 Replies
View Related
Oct 26, 2005
I am trying to dump my mssql DB so I can upload it to my web server.
I am using SQLDump v3.0b1 from sourceforge.net.
My problem is, when generating the dump file, any value greater than 1000 in a money column is set to 1.0000 in the dump file.
Does anyone know of a better program I should be using or a way for me to correct this?
My DB is huge and it would take far too much time to go through the dump file and correct the changed values.
Any help would be appreciated,
Thanx
View 6 Replies
View Related
May 18, 2000
Hi guys & gals
I get the following error when doing a dump on a 6.5 database.
***
Page '697569' of database 'FOREX_UPLOAD' in the database has the PG_DMPTRLR bit set.
Page '698121' of database 'FOREX_UPLOAD' in the database has the PG_DMPTRLR bit set.
Page '698233' of database 'FOREX_UPLOAD' in the database has the PG_DMPTRLR bit set.
***
I have run SP5 as suggested,and can see that more of the db has been dumped than before but still I get the error
I get no errors when doing dbcc's.
Any ideas???
Rgds
De Waal
View 1 Replies
View Related
Feb 22, 1999
Hi,
I need to dump transaction log every night. Before I do that I'd like to check those open transactions and kill the ones not part of sa or SQL server dba's activity. How can I achieve this?
Thanks in advance.
May
View 1 Replies
View Related
Mar 19, 1999
After Dumping a database device, I still find the xxx.DAT files inthe /Data directory. Can these be 'safely' removed/backed up ?
They are taking up WAY too much space.
Question 2: After installation and after creating devices & databases, is there any way to reassign the /Data directory on another drive?
Either for future devices/databases or existing?
Thank you much,
-James
View 1 Replies
View Related
Oct 28, 1998
I understand from the beta sql 7 newsgroups that 7 can't restore a 6.5 dump. This is extremely frustrating that MS wouldn't put this type of backword compatibility into 7.
Has anyone found another way to accomplish this? I can't use transfer manager as the 2 servers are on seperate, non-connected boxes. I ftp'd the dump from 6.5 server to a middle-man machine, then copied it to the 7.0 server.
Am I looking at bcp'ing out all 203 tables in my 1GB db then bcp'ing them back in?
Any help would be greatly appreciated.
Thanks, Andre
View 1 Replies
View Related
Dec 16, 2005
Is there a way to dump sql in Access like in Transact SQL or mysqldump?
I've gotta convert an Access Database into a MySQL database, it is a small database, but I'd not want to put it in by hand .
If not, I'll just make a PHP script to rip it from a textfile.
View 1 Replies
View Related
Dec 23, 2004
I am trying to import a database from a dump file.
The dump file is from a sql server db.
I have created the db on another server and want to import the data from the
dump file.
I use the bcp like this :
bcp nnfdb.sa.users in x -Usa -P
nnfdb is the name of the database
users is the name of a table
x is the name of the dump file.
But I get this error :
SQLState = S0002, NativeError = 208
Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name
'nnfdb.sa.users'.
also I am sure if I have to run the bcp for each table or if I can import
all tables in one bcp run.
Regards
Kris
View 6 Replies
View Related