When we are using this query to shrink the log file,what
exactly it will execute internally? Do we lose any data
when we run this script? which data it will truncate in the
log file and where it is saved. Please let me know...
USE DatabaseName
GO
DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
GO
What do you think of this implementation? Can this be implemented better?
How to test odbc dsn connection settings?
How to select top 5 coloumn from a table without using coloumn name
What is conditional split?
If we delete pack Spec what will be the status of pack Body ?
What is sparse columns of sql server 2008?
How to use “drop” keyword in sql server and give an example?
Explain the difference between primary keys and foreign keys?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What are the different types of subquery?
what is cursor?why we will go to cursor?advantages &disadvantages of cursors?
Can coalesce return null?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)