Alibabacloud.com offers a wide variety of articles about sql server login auditing log, easily find your sql server login auditing log information here online.
In the query analyzer, perform the following three steps in sequence, where databasename is your database file name
1. Clear logs: dump transaction databasename WITH NO_LOG
2. truncate transaction logs: backup log databasename WITH NO_LOG
3. shrink the database: dbcc shrinkdatabase (databasename)
--/////////////////////////////////////// ///////////////////////////
SQL
SQL Server transaction Log analysisIntroduction to the Fn_dblog () and Fn_dump_dblog () functionsSQL Server has two exposed functions fn_dblog () and Fn_dump_dblog () are useful and provide a large amount of information. You can use these functions to get a lot of useful information from more than 100 columns.Fn_dblog
First: The local IP cannot be logged in (mainly because the remote server is not turned on)Note details: Determine if the port is in a spell, Telnet IP port (if the error is not an internal or external command, and is not a running program)Workaround:1: Open the Control Panel--------program and features---------turn window function on or off-------select Telnet client--------Click Done, then test the Telnet IP port2: Notice whether firewall blocking,
shrinkfile, you must restart SQL Server in single-user mode. For more information about the DBCC SHRINKFILE, see the section stated performing DBCC SHRINKDATABASE or dbccshrinkfile when using Tempdb. 1. Determine the desired size of the master data file (tempdb.mdf), log file (templog.ldf), and/or other files added to tempdb. Make sure that the space used in the
Tags: advanced CAD reader VPD NTS member record security event writeHere I have prepared 2 systems, a Windows Server R2 domain control server DC01, a SQL on CentOS7 SQL database serverFirst I use SQL Manager Studio to connect to the SQL
Alter database Command
Automatic checkpoint triggering (SQL triggers a checkpoint based on the time limit recommended by the recovery interval server configuration option or when the log is 70% full)
Indirect checkpoint (new features in SQL 2012, click here for details)
Differences between CKP, Lazywriter, and Eagerwr
The default database cannot be opened. Logon fails because the default database of the logon account is deleted.The solution is to use the administrator account to modify the default database of the logon account.1. Log on to the enterprise manager using the administrator account. In "object Resource Manager", choose "security"> "logon name", right-click the Account, and click "properties"2. In the "logon p
Tags: Step access default port server handles archive throttling security commands1, point SQL Server error log, right-click, configure, limit the number of error logs, such as 6 limit log growth2. Then run the command:EXEC Sp_cycle_errorlog;The purpose of this command is to
Tags: des style blog color using OS io fileI used to interview a DBA, "Why is tempdb faster than other databases?" So that more than 95% of the candidates have a blank face. tempdb, as an important feature of SQL Server, has long been familiar and unfamiliar to it. Familiarity is that we are always in use, unfamiliar may be very few people pay attention to its operating mechanism. This time I will introduce
I have to write down some of the problems that I have encountered many times. The lessons have been delayed for a lot of time.
Problem description
Write a code to connect to the Database SQL Server in Java;
As follows:
Import java. SQL .*;
Public class tosql2000 {Public static void main (string [] SRG ){String drivername = "com. Microsoft. JDBC. sqlserver. sqlser
This problem is encountered when using. NET core to connect to SQL ServerThe literal meaning of the understanding is roughly what version is not supported,Google a bit, OK, see this 2000 I know what the problemMy database is still 2000, I finally lost 2000,. NET Core support for more than 2005 versions of SQL Server databaseLet's change a new version of the datab
SQL Server database log backup and recovery steps
SQL Server database log backup and recovery steps
-- Create a Test DatabaseCreate database Db
GO
-- Back up the database
Backup database Db to disk = 'C: \ db. Bak' WITH FORMA
always closed), normal after the big file can be deleted.Of course, the best way is to plan in advance, set up, add a job schedule, so that will automatically back up, shrinkage and the like, control in a certain size range.After learning, the other simple processing methods:1: Empty the LogDUMP TRANSACTION Library name with NO_LOG2: Shrink LogEnterprise Manager--Right click on the database you want to shrink--all tasks--shrink the database--Shrink the file--Select the
tail of the log is the last backup file, the Red-box section can be selected here: Now check again: As you can see, the data has been restored successfully. Summary: Usually do not do backup, the problem to shout urgent, this is Gou have to pick up, there are some people like to see the big head of LDF directly deleted, after the problem will not blame Microsoft. The method in this article looks a bit cumbersome, but actually a few times feel
One: System requirements
Database server, name server-dw,windows Server 2003 X64, install SQL Server 2008, the database that needs to be backed up is "jkl_dw".
Backup server, name server
necessarily in Sqlserver7 and the following versions):
First step:
Back up the entire database in case of a rainy start
Step Two:
After the backup is complete, execute the following statement in Query Analyzer:
EXEC sp_detach_db Yourdbname,true--Dismount the DB's registration information in MSSQL
Step Three:
Delete the log file in the same directory as the physical file of the log or move the
In the process of maintaining SQL Server database, do you often encounter thousands of similar log20050901 log table, each table data is not many, one open to see very inconvenient, or sometimes we need to summarize the data in these tables, A single open operation is also very troublesome. The following describes an automated method for merging tables.
My idea i
Source: http://www.cnblogs.com/nbpowerboy/p/3380079.htmlThe company has been using SharePoint 2010 for more than three years, and the BPM project also has more than 2 years, before the vendor's deployment of the SharePoint database is on a physical disk, the database files and log files are not separately stored on different physical disks, Recently found that the database disk of SharePoint is often full, resulting in the inability to save data, the
Follow the steps to avoid damaging your database if you do not follow the previous steps.
Generally do not recommend to do 4th, 62 steps, 4th step unsafe, it is possible to damage the database or loss of data. 6th step if the log reaches the upper limit, subsequent database processing will fail, and the log will not be restored until it is cleaned.
1. Empty log
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.