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
CREATE a table from another table
How to get @@error and @@rowcount at the same time?
what is a live lock? : Sql server database administration
Explain syntax for dropping triggers?
What is row_number () and partition by in sql server?
What do you mean by normalisation?
what are user defined datatypes and when you should go for them? : Sql server database administration
Why I am getting this error when dropping a database in ms sql server?
Explain the concept of view and Types of views in SQL server?
what is difference between Enterprise Manager and Query Analyer
What are different backups available in sql server?
Can we join two tables without primary key?
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)