Hi Guys,
Since I have implemented Logshipping in our system. I just wanted to know
can I backup the standby database which is in loading mode.
One other question in Symple Log shipper utility there is a parameter called
@HourDuration, if I wanted to run this job without interuption, how should I set this parameter??
More over, The job doesn't have a schedule in otherwords it will run untill the job fail. Ie:- How do I setup the logshipper to apply log indefinatly?
Thanks your responses and Keep up your wonderful service.
--Ragulan
Hi there - can anyone advise on the following issue. We have recently performed some server side tracing on a particular SQL instance over 24hr period. We are now attempting to load these into a database for analysis. Here lies the problem.
When we are loading the profiler trace files (one at a time) into the database the transaction log is growing at an excessive rate. Even though the database is in SIMPLE mode.
We are loading the traces using the command:
INSERT INTO sqlTableToLoad SELECT * FROM ::fn_trace_gettable('MytraceFileName', DEFAULT)
Can anyone advise how we could possibly get round this issue as we're running out of space due to the transaction log.
Durning install I selected Window's Authentication only, but now it seems we may need to use a Mixed Mode with an SA account etc... is there anyway to switch SQL 2005 to use Mixed Mode after the fact?
We have reports in SharePoint integrated mode which are really slow when compared to native mode. I have been asked to research and give info on what exactly causes the delays.
Any articles which give me information as to what happens when a report is run from SharePoint server and where does it log.
There is a query which when executed in the grid mode(ctrl+d) takes approx 0.02 seconds(about 21,000 rows) But when I execute in the text mode, it takes about 0.40 seconds!! Why is this difference? Also, when the records from this table are read from a VB application, they are equally slow (as in the text mode!) Why is it so slow on the text mode & relatively faster in the grid mode? Has anyone got any idea on ‘Firehose’ style cursor ?(which may speed up access of data in the VB application)
Recently I read such statments 'When SQL Server is run in "lightweight pooling" mode (fiber mode) and the DTC service is started, unexpected behavior may occur.' Can someone say anything about fibe mode?I am appreciated for it.:)
Currently, our Report Builder is running on Local Intranet mode. I'm investigating what the security implications are in changing it to Internet mode. However, I've not been able to find any documentation on this.
Does anyone know of any documentation that addresses this issue or have experience that they can share with changing Report Builder security zone from Intranet mode to Internet mode?
I have a SQL 2005 OTC. CTP version running on Windows 2003 server.
I would like to find out how the SQL server option changed to Windows Authentication mode from Mixed mode over the weekend. From the SQL log, I don't see when it changed. I would like to see Date/Time and client IP. If I can see User ID (windows) that would be great. Where I can find these info in SQL server?
We're trying to create a .bak file to send it to our site's admin to restore it on the server: 1. When I try to do that get this error:http://www.radiorient.net/errors/export_sql.gif Why is that? and how can I fix it? 2. Should we add both files of the db (.MDF, and .LDF) or only the .MDF file? Can please someone help me with this, Thanx.
I just got SQL 7.0 and was curious how other environments run their backup. I know ArcServe has a product that backs up open SQL databases and not sure how reliable this product was. Any thoughts would be appreciated .. thanks.
HiI'm hoping that some could point me in the right direction for "bestpractice" in:1) securely backing up a complete sql7 and 2000 server containing manydatabases.2) backing up an individual database3) Securing the transaction on the hour as a mile stone to return to in theevent of error or system failure.ThanksMark
Hey, please forgive me if my infomation source was incorrect. But a friend of mine mentioned to me he had hurd of a program, or code that will make an "install script" of your database. Basically it`ll back up all the tables on your server and if the worst case senario happens then you can run the file like an install script. Is this true? It sounds invalueable! If it isnt true, can someone tell me if it is possible to use code to create a "install script" of your own database? I am using "Microsoft SQL Server".Thanks in advance John
I have August22 full backup and August22 and August23 transactions log backups . I want to get the August23 and August23 full backup. So I performed a restore backup with August22 full backup and all the August22 trn backups. Then I backed up giving it August23 name and repeated the process with the August23 trn backups. But, I get an error saying that the transactions haven't been rolled foward far enough. But, I am not missing any trns! I will really be grateful if anyone would help. thanks.
i want to take a backup a database which is on a different machine to my machine.Iam trying to give unc naming conventions i.e backup to //servername/sharename/file.bak but its not working.iam getting an error saying device error or device offline-access denied.
Anyone could tell me how to do it step by step plz.
When backing up a database in MS SQL 7.0, there is a window that appears in the destination section of the backup window. In this window is where the filename appears that the backup will proceed to and to the right of this window are "add", "remove" and "contents" buttons.
If there are multiple names in this window, will the entire backup go to both files or does it split the backup between the two filenames.
I use SQL Server 2000 and I create scripts on a daily basis to do the following
1. Rename a table 2. Create table with original name and add new field 3. Copy data from renamed table to new table 4. Build indexes ----------------------------------------- execute sp_rename ORIGINAL, OLD GO
CREATE TABLE [dbo].[ORIGINAL] ( [A] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [B] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [C] [int] NOT NULL , [Notes] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO
INSERT INTO ORIGINAL (A, B, NOTES) SELECT A, B, NOTES FROM OLD
CREATE CLUSTERED INDEX [ORIGINAL_A_B] ON [dbo].[ORIGINAL]([A], [B] DESC ) WITH FILLFACTOR = 90 ON [PRIMARY] GO -----------------------------------------
ON A TABLE WITH 100,000 RECORDS THIS KIND OF SCRIPT TAKES A LONG TIME TO DO THE INSERT/SELECT PART
I WOULD USE ALTER/ADD TO UPDATE THE TABLES, BUT MY SUPERIOR INSISTS THAT NOT HAVING TEXT FIELDS AS THE LAST FIELD IN THE TABLE WILL CAUSE QUERKY PROBLEMS WITH HIS SQL STATEMENTS DOES ANYONE HAVE ANY KNOWLEDGE THAT THIS COULD BE TRUE?
IF SO, DOES ANYONE HAVE ANY IDEAS FOR DOING THIS SAME PROCESS TO ADD A NEW FIELD (C) BEFORE THE FINAL FIELD (NOTES - TEXT FIELD), AND BACKUP THE TABLE BUT WITHOUT IT TAKING SUCH A LONG TIME ON THE INSERT/SELECT PART?
Forgive me if I'm asking a lot, but I'm lost and these scripts take way too long for what seems like such a simple task.
Here is the situation, I have a web application (asp.net/vb.net) with ms sql 2000 as the database. I have two database server. I would like to backup database 1 with database 2. I would like to do it at intervals and through code. If anyone can give me some ideas on how to do this or any research material, please do.
Sorry this is so trivial, but I don't work with SQL Server too much. I just want to back up a table in one of my databases. I'm using SQL Server 2005, the management studio. Can someone walk me through how to back up a table? Thanks!
Hi, I've recently created a maintenance plan, which backs up my database and transaction log. However I also have a Veritas (Backup Exec for Windows Servers) tape backup which runs at night and backs up my files. It is setup to backup the whole of my MSSQL DATA and BACKUP folders.
Today I went to do a test restore, and found that the tape backup contained nothing in the MSSQL DATA folder, but everything that was in the BACKUP folder. Is this because everything in the DATA folder is in an open state? On checking back, the tape backup has never held anything in the DATA folder. Should I be worried by this, or is it what you would expect, and is the SQL backup sufficient?
I got a .bak file from my friend I want to restore the data base (presently I don’t have any database in my system).
But while I try to restore it I am getting an error
“ System.Data.SqlClient.SqlError: Directory lookup for the file "D:Microsoft SQL Server 2005mydatabase.mdf" failed with the operating system error 2(The system cannot find the file specified.). (Microsoft.SqlServer.Smo)
�
I have installed Microsoft sql server in a different directory Not where he is installed
I can successfully restore the back up files of data base on my own system But not the backup files created from others systems
Every time i try to back up a specific DB i get an error saying it cannot backup because the full text catalog is not permitted because itis not online. It does not matter if i try to backup the db throughSQL of my Backup software. here is the sql log.LogJob History (DB File level Backup.Subplan_1)Step ID1ServerServer NameJob NameDB File level Backup.Subplan_1Step NameSubplan_1Duration00:00:01Sql Severity0Sql Message ID0Operator EmailedOperator Net sentOperator PagedRetries Attempted0MessageExecuted as user: DomainUSer. ...ecute Package Utility Version9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. Allrights reserved. Started: 7:07:43 AM Progress: 2007-06-0107:07:44.14 Source: {B6285A6A-0066-416F-AD9F-F31ED5A68F14}Executing query "DECLARE @Guid UNIQUEIDENTIFIER EXECUTEmsdb..sp".: 100% complete End Progress Error: 2007-06-0107:07:44.49 Code: 0xC002F210 Source: Back Up Database (Full)Execute SQL Task Description: Executing the query "BACKUP DATABASE[DBName] FILEGROUP = N'PRIMARY' TO DISK = N'E:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLBackupDBName_200706010707.ba k'WITH NOFORMAT, NOINIT, NAME = N'DBName_backup_20070601070744', SKIP,REWIND, NOUNLOAD, STATS = 10 " failed with the following error: "Thebackup of full-text catalog 'ftcat_documentindex' is not permittedbecause it is not online. Check errorlog file for the reason that full-text catalog became offline and . The step failed.
I'm having an ongoing fallout with the Operations team where I work about database backup strategy. Â They use vSphere (VM ware) to backup all the disks on the servers and included in this are the SQL backups. Â Now I don't really trust this because whenever I ask for a restore, which is very infrequently, they give me an mdf/ldf pair. Â To my mind this shows they are just backing up files and although these files can be re-attached this is not safe, as they were open when the backup was taken. Â Â What I would like to do is use native (or RedGate) backup to create a full backup and have the vSphere pick up the .BAK files.Â
I am currently in a situation where I have been fed to the wolves to say the least.
My task is to take the current SQL server 05 we have running on a drive array partioned as C & D and rebuild it.
I need to have the current database backed up, as well as the unique permissions that are currently present on the database.
I then have to remove the hard drives from the RAID array, and replace them with Brand new ones. The OS will then have to be reinstalled, followed by the nessary updates and finally with SQL server.
I then have to import the database back to the new server build w/ the data and the permissions all intact.
Anyone have any idea of how I can go about doing this?
Is there an easy simple way to backup all my personal Stored Procedures. In the stored procedures collection, my stored procedures start with "DEF". I would like to have the stored procedures places as text files in a personal backup folder. Is this possible?
Hi. im shortly going to have to submit my project for uni which ive created using sql server. How can i copy everything that ive made so i can submit everything and it can be replicated if necessary. Do i use the backup database task in enterprise manager or do i have to do that and export data or..? ive used tables and stored procedures and a diagram btw. thanks for any advice
I used sp_detach_db to back up the database temporarily. I used xp_cmdshell to stop SQLServerAgent, but when I restarted, I was unable to. Then, I tried reattaching the Database running sp_attach_db.
!!!HELP HELP!!! I AM GETTING THE FOLLOWING ERROR:
Server: Msg 5105, Level 16, State 4, Line 1 Device activation error. The physical file name 'Mssql7dataTestDB.mdf' may be incorrect.