SQL Server 2008 :: Setup Log Shipping From Log Shipped Database?

Mar 20, 2015

We have log shipping for databases from production to back office (BO) environments for users to run reports. In preparation for moving a back office environment to a different server, we want to setup an addition log shipping environment, let’s call it BO2, same as the BO. One of the challenges we had was the amount of time it would take to get the full backup from production to BO2 due to the size of the database. It would take days just to transfer the full backup.

Solution:Let’s just say the database being logged shipped is DB123. Instead of using the full backup of DB123 from production, we use the mdf and ldf of DB123 from current log shipped database on the BO to setup the additional log shipping on BO2.

Steps:1.Setup the directory structure for the undo file (tuf) on the BO2 server same as the BO server.

Note: The undo can be moved to different drive after the log shipping is setup.

2.Stop SQL services on the BO server.

3.Copy the undo file (tuf), mdf, and ldf files of the log shipped database, DB123, from server BO to server BO2.

Note: Keep these files as main copies because they will be used multiple times. Do NOT copy files to where you’ll put the new database files.

4.After the files are copied, start SQL services on BO.

5.On the BO2 server, create an empty database DB123 with database name, file_id, logical names, physical names exactly the same as the ones on the BO server.
Note: Make the size of mdf and ldf small so it doesn’t take long to create the database.

6.Stop SQL Services on the BO2 server.

7.Overwrite the new mdf and ldf files of the empty database DB123 with the mdf and ldf files that were copied over from BO.

8.Start SQL services on BO2.

Note: If the file_id, logical names and physical names are not matching up, the database will be in suspect mode.

9.Do a backup of DB123 with COPY_ONLY.

10.Drop DB123 on BO2 after backup is complete.

11.Use the full backup from previous step to setup log shipping of DB123 on BO2.

Note: Below was the LiteSpeed syntax that was used

exec master.dbo.xp_restore_database @database = N'DB123' ,
@filename = N'F:SQL BackupsDB123_FULL.slsfull',
@filenumber = 1,@with = N'STATS = 10',
@with = N'STANDBY = N''C: MSSQLDataROLLBACK_UNDO_DB123.trn''',
@affinity = 0,@logging = 0

12.Stop SQL services on BO2.

13.Again, overwrite the mdf, ldf and undo file (tuf) of DB123 on server BO2 with mdf, ldf, and undo file (tuf) from BO.

14.Start SQL services on BO2.

15.Replay transaction log from PRD

Note: You can change the location of the undo file by copy the current undo file to the new location and point to new location in “STANDBY” parameter. DO NOT do cut and paste of undo file but do copy and paste.

It works on Microsoft SQL Server 2008 R2 (SP2) - 10.50.4033.0 (X64) . I have not tried it on SQL Server 2012 yet.

In steps that stop/start SQL services, you can bring the database offline/online.

In a way, this is doing detach/attach a log shipped database.

View 0 Replies


ADVERTISEMENT

SQL Security :: Log Shipped Database Server User SID Is Created Automatically

Jun 11, 2015

We have a production server "prod"  which has a user say 'test' that lets the users connect to the application and  a logon trigger which stops them from connecting to the server through SSMS. I  log ship 'prod' to the 'rep' database and the user 'test' is obviously created in the logshipped database 'rep' during the logshipping.

Now the login 'test' does not have any login from server 'rep', But people can still login to the 'rep' server and query the 'rep' db . I checked with SUSER_SNAME and found the SID of the user in rep server which I never created and which is not even present in the login names, Even If I create a new username in the 'prod' db, after logshipping the new user is replicated in the 'rep' server.

View 9 Replies View Related

SQL Server 2008 :: Set Up Log Shipping To 2 DR Servers Instead Of One Via SSMS GUI?

Sep 15, 2015

I have to set up log shipping from Prod server "A" to 2 different DR servers ("B" and "C")...What do i have to do differently (or additional) using the GUI (ie not using Tsql Scripts) to accomplish this, in addition to the steps that are done to log ship to just one DR server?

View 0 Replies View Related

SQL Server 2008 :: Enabling TDE On Databases Which Are Used For Log Shipping

Sep 15, 2015

I have log shipping enabled on databases(primary and secondary) and works fine. I need to implement TDE on the database. I have experience on implementing TDE on databases which are not used for log-shipping.

What are the steps needed to setup TDE which are involved with log-shipping.

View 0 Replies View Related

Added Users To A Logged Shipped Database

Dec 20, 2007

I have 2 sql server 2000 database that participate in log shipping.Server A is the source database, which log ships to a database onServer B. The database on Server B is in a warm stand by/read onlymode. Is there a way that I can add users to the database on ServerB, without having to add the users to the database in server A? I amtrying to use the database on Server B as a reporting only databaseand add more users to have permissions to run reports.Please let me know if anyone has any suggestions. Thank you.

View 2 Replies View Related

SQL 2000 - Restore From Log Shipped Database After Disaster.

Jul 21, 2007

Is there any need to re-apply SP4 to sql server 2000 if a user database has been restored to it from a non-service packed sql 2000 server.

We inadvertantly did this after a flood and later realised that the log shipped server at the other site was not not service packed.

Does service pack 4 update user databases in any way?

We have not had any major issues with this but I need to rule this out when considering performance issues and so on that have been raised since the recovery.

Any help would be appreciated.



View 3 Replies View Related

SQL Server 2008 :: Log Shipping Status Report Through Mail?

Feb 29, 2012

i'm writing below this code..

exec msdb..sp_send_dbmail
@profile_name = 'local',@recipients='chintu@www.com'
, @subject ='Log Shipping Job succeeded'
, @QUERY = 'exec sp_executesql @stmt=N'exec sp_help_log_shipping_monitor',@params=N'

I want Log shipping Status Through Mail. Last back up transaction in the day and last restoration trn file in the day...

View 9 Replies View Related

SQL Server 2008 :: Log Shipping Report Not Running After Restart?

May 13, 2015

When trying to open the log shipping status report, I get an error: user must be in the master database. The jobs appear to be running correctly.

View 0 Replies View Related

Setup And Upgrade :: 2008 R2 Setup UI Has Incomplete List Of Installed Features - Can't Uninstall RS

Jul 23, 2015

We're doing upgrades from SQL 2008 R2 to SQL 2014. This is blocked due to RS is installed but not configured. Our desired action is to uninstall RS and proceed with the upgrade. But when setuparp.exe is raised, it does not list all the features on the 'Select Features' page.  In fact, it only lists the last 2 shared features (SQ Client Connectivity SDK and Microsoft Sync Framework). However, all items appear to be listed on the 'Select Instance' page including RS. I've seen this issue on 2 of our SQL 2008 R2 Servers already.

View 3 Replies View Related

SQL Server 2008 :: Must Setup Be Run With A Domain Account?

Nov 6, 2015

I am running a SQL 2008r2 install while logged onto the server with a local admin account, not a domain account. I am specifying a domain account to run the SQL service. The install fails saying the service account credentials are invalid but I am 99.9% sure they are right.My theory - the local admin account running Setup cannot validate the service account creds against AD. Is it a requirement to run Setup while logged on with a domain account?

View 4 Replies View Related

SQL 2005 Log Shipping Setup

Aug 9, 2007

I have a SQL 2k5 log shipping setup and all copy jobs as well as restore jobs are running properly but the LS_Alert job that the wizard auto creates fails every two minutes has anyone experienced this before. After going through the wizard it creates a LS_Alert job and schedules it every two minutes and it fails constantly.

Thanks!
kdubb

View 1 Replies View Related

Setup And Upgrade :: Add New Node To Server 2008 X64 Cluster

Nov 23, 2015

I ran into problem while trying to install SQL Server 2008 to join to another node in a failover cluster ,you will find here the configuration doc and installation details. URL...

View 4 Replies View Related

Setup Error Installing SQL Server 2005 Eval On Windows Server 2008 Beta

Apr 21, 2008

Hi,


Is it possible to install SQL Server 2005 Eval on a Virtual PC 2007
client running Server 2008 Beta? Nothing says it isn't possible, it
says I need to service pack it right away, but before it gets started
it comes up with the error 'sqlcu.dll failed to load'. Anyone know
what this is all about?





Any ideas?


Any help would be appreciated.
Thanks!

View 1 Replies View Related

SQL Server 2008 :: Deleting Large Number Of Rows With Foreign Key And Mirroring Setup

Feb 19, 2015

We have a database. It is enabled for mirroring. We need to delete the old records. That is around 500k records from a table. But it has foreign key relation. How to do in Production servers these kind of deletes?

View 2 Replies View Related

Log Shipping Vs Database Mirroring With SQL Server Cluster

Oct 24, 2007


Dear,

Are possible build a solution with SQL Server 2005 Cluster and Database Mirroring? I have the following scenario:

1) Site A
SQL Server 2005 with 2 nodes and active/passive

2) Site B
SQL Server 2005 for Disater Recovery with Log Shipping.

Are possivel change Log Shipping by the Database Mirroring? If is possible, are better:


a) Synchronous(with or without witness)
b) Asynchronous

Thanks a lot! Sandro.

sgpcosta@hotmail.com

View 2 Replies View Related

Need Backup Of Production Database On Dev Server. Log Shipping?

May 29, 2007

I have a 20 GB SS2005 database that I would like to be replicated to a dev server for testing purposes. I might have some issues with the firewall blocking ports. I haven't read up on the specifics of how log shipping works yet, but I assume that is the best approach. A daily transfer would suffice.



A few options I am considering:

1. use the built in stuff, but I'm not sure it will work with our security settings, and if the trans logs are large it might be strained.



2. writing a small custom app to zip up the log file then ftp them down to the dev server. This could run nightly.



3. some third party util, such as FolderShare could transfer the log files



Any comments or suggestions?

View 4 Replies View Related

Recovery :: Unable To Disable Log Shipping 2008 With SA Account (or Any Other Admin)

Mar 24, 2012

I recently enabled log shipping on our production database, and I had initially accepted the default of 72 hours to delete copied logs. Well, i am running out of space quick, and I need to edit it to something like 6 hours.

When I try to disable log shipping in order to recreate it, or if I try to edit the secondary server settings when I am logged in as SA, or my windows account which has the sysadmin role assigned, I get an error that says:

Only members of the sysadmin fixed server role can perform this operation. Error 21089.

I've restarted the sql service, disabled and enabled the permission on my account, but for the life of me, i cannot get this to work!

View 10 Replies View Related

SQL 2008 Setup Failed

Feb 6, 2008

Dears,

i have fail in sql 2005 setup it stop at install workstation componant step when it remove the backup file and apeare this message :

"there is aproblem with this windows installer pachage.A problem run as part of the setup did finish as expected.
Contact support personnel or package vendor"

and i try to unistall it and reinstall but it fail too
i romve all regitary key before reistalle.

note : my operating system is windows vista business edition and i work in vs 2008

thanks,

View 2 Replies View Related

SP2 Shipped!

Feb 19, 2007

SQL Server 2005 SP2 has now been Released To Web and is available for download:
http://www.microsoft.com/sql/sp2.mspx

February Books Online update is not included in SP2, get it separately:
http://www.microsoft.com/downloads/details.aspx?familyid=BE6A2C5D-00DF-4220-B133-29C1E0B6585F

 

View 1 Replies View Related

VS 2008 Setup Project - Size Limits

Dec 14, 2007

Same issue in VS 2005. Using a setup project (or ClickOnce) there seems to be a limit to how large a content file can be. I'm cross-posting in setup and ClickOnce, but thought that other SQL CE developers may have had this issue.
---------------------------------------------------------
I cannot find a reference to this in the online help, and find no answer here. I have some SQL CE databases that are marked as 'content' in a project. One is less than a mb, the other is over 600mb. The larger one will always break the setup build if I leave it marked as content. Also will break a 'clickOnce publish' build.


How does one use the MS Visual Studio tools for setup when a file size is too big?

What is the max file size limitation?

I need to deploy with ClickOnce, but find it difficult to determine the directory that my large file will need to be copied to afterwards since a ClickOnce install uses such a confusing path to install to. So, if the workaround is to fire a script post install, it would be a problem to discover the path for that file to be copied to.-----------------------------------------------------------------

View 1 Replies View Related

SQL Server Database Setup Problem

Dec 28, 2007

Good Afternoon all,

We just migrated to Microsoft SQL Server 2005 about six months ago. Everything seems went on very well. Database itself and most of our programs which access the database all are working just fine. But recently we encountered a database accessing problem. We have a program which reads database using a login ID and a password. The program works fine when programmer A log onto the server and run it. But when another programmer, say programmer B, log onto the server and try to run the same program with the same login ID and password. Accessing to the database was denied. Both programmer A and B have the same Database Adminstrator privilege. What did we do wrong is setting up the database? Can any of you help us solving the mystery? Thanks. Happy Holiday.

Tom Lin

View 2 Replies View Related

SQL Server 2005 Express Adv. SP2 Setup Fails To Install SQL Server Database Serices Only.

Mar 26, 2007

I run setup using GUI. It upgrades all components of the existing installation w/out any problems except the last component. That is, it proceeds with the installation of SQL Server Database Serices and at the end fails to shut down the SQL Server and aborts the installation reporting the following:

"Service 'Computer_NameSQLEXPRESS' could not be stopped. Verify that you have sufficient privileges to stop system services. The error code is (16386)".

I am running Windows XP SP2 with both .NET 2.0 and .NET 3.0 installed on it. I am logged in as a system administrator.

The most puzzling to me things are:

- the setup starts AND STOPS w/out any problems SQL Server Reporting Services and SQL Server VSS Writer (thus finding enough privileges for both).

- the setup starts the SQL Server w/out any problems (thus it finds enough privileges to START A SYSTEM SERVICE) and then fails as described above 'lucking privileges".

During installation before failing the setup displays following:

"Run as Normal User. RANU instance Shutdwon in progress: MSSQL$SQLEXPRESS". The "normal user" puzzles me too, unless the SQL Server itself is meant here.

Any suggestions would be appreciated. I can provide the installation log file as well.

Thanks.

View 5 Replies View Related

Database Setup On Multi-server Network

May 22, 2008

I would appreciate help on how to setup database on server B when SQL Server is located on server A of a multi-server network. I am a novice.

View 3 Replies View Related

Problems During SQL Server 2000 Database Setup

Nov 2, 2007

Hello Everyone,

I am new to the creation of SQL Servers and databases, I have only use SQL statements in code in the past, and I have encountered a problem in my first SQL Server 2000 setup...

I am trying to setup a database in SQL Server 2000 called Equipment, which will contain multiple tables corresponding to the names of different equipment being used. I am able to create that just fine, but my problem occurs when I try to create login names for that database. For the database to correctly interface with another program already in use I need two login names, "Equip" that has full access and "Equip_ReadOnly" that is unable to delete, insert, or update. The problem is that I wish for those two login names to be accessing the same tables within the database, so that any changes made by Equip will be seen by Equip_ReadOnly. However, when I try to do this I end up with two sets of tables, one owned by Equip and the other owned by Equip_ReadOnly.

I am able to accomplish what I want in SQL Server 2005 by using the dbo schema to contain the tables and then have Equip and Equip_ReadOnly as users of the dbo schema, but for this project I am unable to use SQL Server 2005. So far I have been unable to figure out how to accomplish this task using SQL Server Enterprise Manager. So, does anyone have any ideas or insight into this particular problem? I am stuck at the moment and any help would be appreciated.

Thanks

P.S. If this was the wrong forum to post this question in, please point me to the correct forum. Thanks Again.

View 5 Replies View Related

Sql Server Setup Could Not Connect To The Database Service For Server Configuration

Jan 2, 2008

hi all
i get the following message error when installing sql server 2005 express :
<< sql server setup could not connect to the database service for server configuration the error was :[microsoft][gestionnaire de pilotes odbc] source de données introuvable et nom de pilote non spécifié >>
is there any help
thanks and best regards

View 6 Replies View Related

SQL Server Setup Could Not Connect To The Database Service For Server Configuration

Jun 4, 2006

OS: XP-SP2

Not able to install SQL Express 2005.
------------------------------

SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]SSL Provider: The certificate chain was issued by an authority that is not trusted.
Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=29515&EvtType=lib%5codbc_connection.cpp%40Do_sqlScript%40OdbcConnection%3a%3aconnect%40connect%40x80090325

Needles to say, above link is useless..



I had managed to install previously, but ran into problems while trying to upsize an MS-Access database, I've tried everything from creating certificate to hacking away at the registry...Log-on with a different account, etc...Anybody knows how to get around this?

Here's part of the log file:




Microsoft SQL Server 2005 9.00.1399.06
==============================
OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Time : Sat Jun 03 20:09:53 2006

Machine : YANICK
Product : Microsoft SQL Server Setup Support Files (English)
Product Version : 9.00.1399.06
Install : Successful
Log File : e:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0005_YANICK_SQLSupport_1.log
--------------------------------------------------------------------------------
Machine : YANICK
Product : Microsoft SQL Server Native Client
Product Version : 9.00.1399.06
Install : Successful
Log File : e:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0005_YANICK_SQLNCLI_1.log
--------------------------------------------------------------------------------
Machine : YANICK
Product : Microsoft SQL Server VSS Writer
Product Version : 9.00.1399.06
Install : Successful
Log File : e:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0005_YANICK_SqlWriter_1.log
--------------------------------------------------------------------------------
Machine : YANICK
Product : MSXML 6.0 Parser
Product Version : 6.00.3883.8
Install : Successful
Log File : e:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0005_YANICK_MSXML6_1.log
--------------------------------------------------------------------------------
Machine : YANICK
Product : SQL Server Database Services
Error : SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]SSL Provider: The certificate chain was issued by an authority that is not trusted.
Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online.
--------------------------------------------------------------------------------
Machine : YANICK
Product : Microsoft SQL Server 2005 Express Edition
Product Version : 9.00.1399.06
Install : Failed
Log File : e:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0005_YANICK_SQL.log
Last Action : InstallFinalize
Error String : SQL Server Setup could not connect to the database service for server configuration. The error was: {Microsoft}{SQL Native Client}SSL Provider: The certificate chain was issued by an authority that is not trusted.
Error Number : 29515
--------------------------------------------------------------------------------

View 3 Replies View Related

SQL Server 2008 :: How To Update The Database Physical File Location In Master Database

Mar 8, 2015

I had to to relocate the database log file and I issued an Alter database command but by mistake I put a space in the file name as below. The space is at the beginning file name. Now I am unable get the database loaded to SQL Server. The database has 2 replications configured, so deleting and re-attaching the database means the replication needs to be re-configured. Is there an alternative way to issue a command to update the database FILENAME ? Not sure if this can be edited in master database (sys files).

ALTER DATABASE [User_DB]
MODIFY FILE (NAME = User_DB_log, FILENAME = 'I:SQLLogs User_DB_log.ldf')
GO

View 1 Replies View Related

SQL Server 2008 :: Script To List All Database Level Permissions In A Database?

Aug 4, 2015

I found this script online..

SELECT prin.[name] [User], sec.state_desc + ' ' + sec.permission_name [Permission]
FROM [sys].[database_permissions] sec
JOIN [sys].[database_principals] prin
ON sec.[grantee_principal_id] = prin.[principal_id]
WHERE sec.class = 0
ORDER BY [User], [Permission];

but the results are this: 2 columns - User and Permission

User Permission
User1 GRANT CONNECT
User2 GRANT CONNECT

IS there a way in SQL Server (2005/2008/2012) to run a script against a Database that will show all users that have permissions to that Database and the type of permissions?

View 7 Replies View Related

Will SQL Express Be Shipped In Vista If So What Versions And Other Questions.

Nov 11, 2006

1. The title of this post says it all. My app will have a very small footprint to down load. I don't want to user to have to download 50 + MB just to try my little $15 app:-) So

QUESTION 1 - Will SQL Express be in the Vista bits? If so which versions?

2. Once SQLExpress is installed by whatever means, are there rules about how the instance is used? I have no problems playing well with others so I would be more than happy to create my DB in .SQLExpress.

QUESTION 2 - Are there any rules governing who can play in the Express instance? How should dtabases should be named to avoid collisions with the other kids?

3. I'd love to be able to work in in ClickOnce / user never has to have admin password environment.

QUESTION 3 - Besides UAC are there any constraints on writing to a properly installed Express instance that would get in the way of a pure user application from using the basic instance.

4. Right now - because I can't read directions and still don't understand the smoke and mirrors in VS 2005 when it comes to dealing with databases - I have DDL in my program that allows me to create my database from scratch. Not sure that this is the right way to go.

QUESTION 4. What is the best way for an user software to create its database in an instance of SQL Express.

5. SQL Express is yet another thingie that will run in the background that the typical user won't understand and wont' give a hoot about.

QUESTION 5. Can I / should I programmatically worry about whether the service is up and running? If so how do I launch it.

I know this is a lot for a single post, but it all sort of hangs together.

Regard,

Al Christoph

View 2 Replies View Related

How To Create A Setup File To Install Sql Server Database

Jun 7, 2005

Hi All,   I'am looking for a software (Installer) to create a setup file to install a SQL Server Database just like the one in the Reports Starter Kit, when you install it a dialog will guide you to instaal the database thats what i'am looking for.  Anybody knows how can i do that or is there a software that can help me doing that.Best Regards.Wafi Mohtaseb

View 2 Replies View Related

Can I Setup SQL 2005 And SQL 2000 Database Server On The Same Machine?

May 9, 2008

Hi,

Can I setup SQL 2005 and SQL 2000 database server on the same machine?

View 5 Replies View Related

How To Deploy SQL Server Database To Another PC While Creating SetUP Package In .Net VB

Jul 23, 2005

How to Deploy SQL server Database to another PC, How to create apackage that craetes Database as well as ODBC driver for accessing dataat enduser PC, using .Net VB

View 2 Replies View Related

SQL 2012 :: Disk / RAID Setup With Limited Disks For Windows 2008 R2

Jun 27, 2015

I am wondering what would be the best disk/RAID setup for a Windows server 2008 R2 OS and SQL Server 2012 database that has heavy read/write. I have the following disks I can use:

4x 15k 146GB
2x 10k 600GB

According to the server build requirements for the application, I need 100GB for the OS and 290GB for the drive containing the SQL mdf there are no stated requirements for the ldf, but would like to know if it should be allocated elsewhere?I should do RAID 10 for the 15k drives for SQL and RAID 1 for the OS on the 10k.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved