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
How to read data in a table with "select" statements?
What is database mirroring?
What are the steps to insert a table?
What command do we use to rename a database?
Can you use order by when defining a view?
What is side by side migration in sql server?
What are the filtered indexes?
Plz tell about backup&recovery?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
What is the tcp/ip port on which sql server runs?
Difference between rowid and rownum in SQL?
Explain intellisense for query editing