Click here to Skip to main content
15,909,939 members
Home / Discussions / Database
   

Database

 
GeneralRe: Updating a value in a Recordset using Find Pin
Mr. Bill12-Jul-02 12:06
Mr. Bill12-Jul-02 12:06 
GeneralRe: Updating a value in a Recordset using Find Pin
Carlos Antollini12-Jul-02 12:22
Carlos Antollini12-Jul-02 12:22 
GeneralRe: Updating a value in a Recordset using Find Pin
Mr. Bill12-Jul-02 12:23
Mr. Bill12-Jul-02 12:23 
GeneralObject Oriented DB Pin
Joshua Nussbaum9-Jul-02 18:39
Joshua Nussbaum9-Jul-02 18:39 
GeneralUpdating a database from a dataset Pin
Alexandru Savescu8-Jul-02 22:19
Alexandru Savescu8-Jul-02 22:19 
GeneralRe: Updating a database from a dataset Pin
Mazdak9-Jul-02 8:59
Mazdak9-Jul-02 8:59 
GeneralRe: Updating a database from a dataset Pin
Alexandru Savescu9-Jul-02 9:08
Alexandru Savescu9-Jul-02 9:08 
Generalhelp! Simple problem with Log Shipping in SQL server 2k Pin
devvvy8-Jul-02 17:41
devvvy8-Jul-02 17:41 
Example from SQL Server Books Online: To bring a standby server up after the primary goes down:


-- Restore the initial database backup on the standby server.
USE master
GO
RESTORE DATABASE MyNwind
FROM MyNwind_1
WITH STANDBY = 'c:\undo.ldf'
GO
-- Apply the first transaction log backup.
RESTORE LOG MyNwind
FROM MyNwind_log1
WITH STANDBY = 'c:\undo.ldf'
GO
-- Apply the next transaction log backup.
RESTORE LOG MyNwind
FROM MyNwind_log2
WITH STANDBY = 'c:\undo.ldf'
GO
-- Repeat for each transaction log backup created on the
-- primary server.
--
-- Time elapses.. .. ..
--
-- The primary server has failed. Back up the
-- active transaction log on the primary server.
BACKUP LOG MyNwind
TO MyNwind_log3
WITH NO_TRUNCATE
GO
-- Apply the final (active) transaction log backup
-- to the standby server. All preceding transaction
-- log backups must have been already applied.
RESTORE LOG MyNwind
FROM MyNwind_log3
WITH STANDBY = 'c:\undo.ldf' -- QUESTION 1: Why not just use "WITH RECOVERY" here??
GO
-- Recover the database on the standby server,
-- making it available for normal operations.
RESTORE DATABASE MyNwind
WITH RECOVERY
GO


Question 2:
I dont understand the use of the "undo" file. I mean, before u bring the standby online, u're going to apply the last transaction log anyway. And I presume u BACKUP the last log WITH NO_TRUNCATE - so, all uncommitted transaction will be backed up.
And in this case, why do we need the "undo" file?


QUESTOIN 3:
I really dont understand:

>Database Maintenance Wizard
>"Specify Log Shipping Destination"
>Add
>"Allow database to assume primary role", and Database Load State: "NORECOVERY", "STANDBY".

I tried different options, and all resulting destination database became "Read only" whether i put them on "NORECOVERY" or "STANDBY".
I thought NORECOVERY and STANDBY assumes the same meaning as in RESTORE DATABASE WITH NORECOVERY/STANDBY.
In NORECOVERY case, I expect that I cannot even READ from the destination database (but, problem, I could read from it using SELECTs, in my little test?). In case of STANDBY, only read permitted, no write (okay, this has been confirmed and i have no problem)

And documentation for "Allow database to assume primary role" is as follows:

"Specify if the destination server should be setup to be able to function as a primary server."

what da?? All destination database has been marked "secondary" and "read-only" under database properties even after i checked the "Allow database to assume primary role" checkbox!?
what lousy documentation..

Help! Been reading on this all day and toying with it, but still havent found a clue as to why...

thanx, any help will be appreciated!

norm
QuestionHow do you autoprompt for ADO connection in C++? Pin
Bill Ferreira8-Jul-02 8:12
Bill Ferreira8-Jul-02 8:12 
AnswerRe: How do you autoprompt for ADO connection in C++? Pin
Steven Szelei8-Jul-02 15:18
Steven Szelei8-Jul-02 15:18 
GeneralProgrammatical Jet Database Replication with C++ Pin
Steven Roberts8-Jul-02 2:52
Steven Roberts8-Jul-02 2:52 
GeneralRe: Programmatical Jet Database Replication with C++ Pin
Andres Manggini12-Jul-02 10:47
Andres Manggini12-Jul-02 10:47 
GeneralDB2 Connection Pin
5-Jul-02 9:21
suss5-Jul-02 9:21 
GeneralProtected DBF Pin
5-Jul-02 9:20
suss5-Jul-02 9:20 
GeneralReading an XML file to a Dataset and then from Dataset to SQLServer Pin
Alexandru Savescu4-Jul-02 22:54
Alexandru Savescu4-Jul-02 22:54 
Generalsql server 2000: protocol and encryption Pin
devvvy4-Jul-02 16:30
devvvy4-Jul-02 16:30 
GeneralRe: sql server 2000: protocol and encryption Pin
Richard Deeming16-Jul-02 6:08
mveRichard Deeming16-Jul-02 6:08 
QuestionHow to add a Record ID column? Pin
4-Jul-02 4:03
suss4-Jul-02 4:03 
AnswerRe: How to add a Record ID column? Pin
SimonS5-Jul-02 10:32
SimonS5-Jul-02 10:32 
GeneralGet n records starting from... Pin
Luca Leonardo Scorcia2-Jul-02 0:16
professionalLuca Leonardo Scorcia2-Jul-02 0:16 
GeneralRe: Get n records starting from... Pin
SimonS2-Jul-02 2:25
SimonS2-Jul-02 2:25 
GeneralRe: Get n records starting from... Pin
Luca Leonardo Scorcia2-Jul-02 3:04
professionalLuca Leonardo Scorcia2-Jul-02 3:04 
GeneralAccess 2000 schema info Pin
SimonS1-Jul-02 3:39
SimonS1-Jul-02 3:39 
Generalsysobjects in Access 2000 Pin
SimonS29-Jun-02 7:31
SimonS29-Jun-02 7:31 
GeneralAccess - UNION and 2 queries with Params Pin
Giles28-Jun-02 8:49
Giles28-Jun-02 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.