<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mssql on Twistedminds</title><link>https://twistedminds.ru/tags/mssql/</link><description>Recent content in Mssql on Twistedminds</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 10 Sep 2010 05:49:06 +0000</lastBuildDate><atom:link href="https://twistedminds.ru/tags/mssql/index.xml" rel="self" type="application/rss+xml"/><item><title>Shrink лог файлов в MSSQL 2008 и MSSQL 2008R2</title><link>https://twistedminds.ru/2010/09/shrinking-mssql-2008-log/</link><pubDate>Fri, 10 Sep 2010 05:49:06 +0000</pubDate><guid>https://twistedminds.ru/2010/09/shrinking-mssql-2008-log/</guid><description>&lt;p&gt;[sql]USE [database name]
ALTER DATABASE [database name] SET RECOVERY SIMPLE
DBCC SHRINKFILE([log file name], )
ALTER DATABASE [database name] SET RECOVERY FULL[/sql]&lt;/p&gt;</description></item><item><title>Подсчет количества записей в каждой из таблиц базы данных MSSQL</title><link>https://twistedminds.ru/2010/06/mssql-table-row-count/</link><pubDate>Thu, 10 Jun 2010 06:02:54 +0000</pubDate><guid>https://twistedminds.ru/2010/06/mssql-table-row-count/</guid><description>&lt;p&gt;[sql]select substring(o.name, 1, 30) Table_Name ,i.rows Number_of_Rows
from sysobjects o
inner join sysindexes i
on (o.id = i.id)
where o.xtype = ‘u’
and i.indid &amp;lt; 2
order by o.name[/sql]&lt;/p&gt;</description></item></channel></rss>