Beruflich Dokumente
Kultur Dokumente
By
The Technocrats
This is essentially recovery with CONTINUE_AFTER_ERROR, in a similar vein to using CONTINUE_AFTER_ERROR with either BACKUP
or RESTORE. The idea behind this is that the database is already inconsistent because either the transaction log is corrupt or
something in the database is corrupt in such a way that recovery cannot complete.
Given that the database is inconsistent and the transaction log is about to be rebuilt, it makes sense to salvage as much
transactional information as possible from the log before it is discarded and a new one is created.
This recovery with CONTINUE_AFTER_ERROR functionality is possible only from within DBCC CHECKDB.
3. Run the full set of consistency checks on the database with the REPAIR_ALLOW_DATA_LOSS option.
2. To allow servers to connect to this server, select the option Allow Remote Connections To This Server. Remote servers can then
log on to the server to execute stored procedures remotely. You must stop and then start the SQL Server instance to apply the
change if you select this option.
Beware: Remote procedure call (RPC) connections are allowed by default. If you change this behavior, remote servers cannot log
on to SQL Server. This setting change keeps SQL Server secure from remote server access.
3. By default, queries executed by remote servers time out in 600 seconds. To change this behavior, type a time-out value in the
Remote Query Timeout box on the Connections page. Time-out values are set in seconds, and the acceptable range of values is
from 0 through 2,147,483,647. A value of 0 means that there is no query time-out for remote server connections.
4. Stored procedures and queries executed on the server can be handled as distributed transactions by using Distributed
Transaction Coordinator (DTC). If you want to execute procedures this way, select the Require Distributed Transactions For Server-
To-Server Communication check box. If you change this option, you must stop and then start the SQL Server instance.
5. Click OK.
These options can also be set with sp_configure. The related Transact-SQL statements are:
Note: A value of 0 turns a remote server connection option off, and a value of 1 turns an option on.
log_shipping_databases
log_shipping_monitor
log_shipping_plan_databases
log_shipping_plan_history
log_shipping_plans
log_shipping_primaries
log_shipping_secondaries
You can also delete any log shipping SQL Server Agent jobs created by SQL Server 2000.
CLR Enabled
The Common Language Runtime (CLR) enables triggers, functions, and stored procedures that have been written in .NET languages
such as C#.NET to execute within your SQL Server engine. If the CLR is disabled, CLR routines are not allowed to run.
Cross Database Ownership Chaining (CDOC)
Allows users to cross databases without having permissions rechecked as long as an ownership chain has not been broken.
Database Mail
Enables the use of the Database Mail features.
Xp_cmdshell
Enables the use of xp_cmdshell so that you can execute operating system commands.
compatibility_level The current compatibility level of the database. The level 90 indicates SQL Server 2008 compatibility.
created The date the database was created.
db_size The total size of the database, including all data and log files.
dbid The unique identifier for the database on the current server.
filegroup The filegroup associated with the database file. Filegroups allow you to group sets of database files together.
fileid The unique identifier for the file in the current database.
filename The full file name and path.
growth The number of megabytes or percent by which the file grows.
maxsize The maximum file size. Unlimited means there is no limit.
name The name of the database or file (without a file extension).
owner The database owner.
size The current size of a file.
status The database status.
usage The way the file is used, such as data only or log only.