https://social.msdn.microsoft.com/Forums/sqlserver/en-US/174d4eb1-d4dc-46de-9223-23d063894233/how-to-start-and-stop-ssrs-services-using-windows-scheduler?forum=sqlreportingservices
More help is available by typing NET HELPMSG 2185.
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\R
eportServer\bin>
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\R
eportServer\bin>net stop ReportServer
The SQL Server Reporting Services (MSSQLSERVER) service is stopping.
The SQL Server Reporting Services (MSSQLSERVER) service was stopped successfully
.
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\R
eportServer\bin>net start ReportServer
The SQL Server Reporting Services (MSSQLSERVER) service is starting..
The SQL Server Reporting Services (MSSQLSERVER) service was started successfully
.
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\R
eportServer\bin>
2020年7月9日 星期四
2018年9月19日 星期三
sql 2008 reportdb detach
What does “Drop Connections” and “Update Statistics” in the “Detach Database” dialog do?
Drop Connections will force the database into Single User mode before detaching the database, thereby forcing all users to disconnect. If you don't check-mark that option, and users are connected to the database, the database will not be detached.
Update Statistics will refresh any out of date statistics before detaching the database. If you leave this option un-checked, statistics objects will remain as they were at the time you detached the database
在 SQL Server 中如何成功卸離資料庫
同場加映
How long will a database detach take?
Pareng Joseph...musta na?ang dbWizards?
A detach time depends on how big the database is. In our environment (average 50-100GB database size) we don't do detach regularly as it takes on the average 5-20 mins. You mentioned that your transaction log files grow very big. There are a lot of reasons why the database files grow very big. A few of them are:
• Uncommitted Transactions
• Extremely Large Transactions
• Operations: DBCC DBREINDEX and CREATE INDEX
• While Restoring from Transaction Log Backups
• Client Applications Do Not Process All Results
• Queries Time Out Before a Transaction Log Completes the Expansion and You Receive False 'Log Full' Error Messages
• Unreplicated Transactions
What we do is we monitor the databases on what is causing the transaction log file of a database to grow unexpectedly. After finding the root cause, we resolve accordingly. A recent issue in our environment indicates that the application codes are not committing transactions properly. So we asked our application vendor to modify the application which eventually solved the problem.
For more details on transaction log files growing unexpectedly, see http://support.microsoft.com/kb/317375/
Drop Connections will force the database into Single User mode before detaching the database, thereby forcing all users to disconnect. If you don't check-mark that option, and users are connected to the database, the database will not be detached.
Update Statistics will refresh any out of date statistics before detaching the database. If you leave this option un-checked, statistics objects will remain as they were at the time you detached the database
在 SQL Server 中如何成功卸離資料庫
同場加映
How long will a database detach take?
Pareng Joseph...musta na?ang dbWizards?
A detach time depends on how big the database is. In our environment (average 50-100GB database size) we don't do detach regularly as it takes on the average 5-20 mins. You mentioned that your transaction log files grow very big. There are a lot of reasons why the database files grow very big. A few of them are:
• Uncommitted Transactions
• Extremely Large Transactions
• Operations: DBCC DBREINDEX and CREATE INDEX
• While Restoring from Transaction Log Backups
• Client Applications Do Not Process All Results
• Queries Time Out Before a Transaction Log Completes the Expansion and You Receive False 'Log Full' Error Messages
• Unreplicated Transactions
What we do is we monitor the databases on what is causing the transaction log file of a database to grow unexpectedly. After finding the root cause, we resolve accordingly. A recent issue in our environment indicates that the application codes are not committing transactions properly. So we asked our application vendor to modify the application which eventually solved the problem.
For more details on transaction log files growing unexpectedly, see http://support.microsoft.com/kb/317375/
2018年5月16日 星期三
Listing information about all database files in SQL Server in MB size
https://stackoverflow.com/questions/43472717/get-actual-database-size-in-sql-server-2012-in-gb
https://stackoverflow.com/questions/27057000/sql-server-get-all-databases-with-mdf-and-ldf-file-location
https://stackoverflow.com/questions/27057000/sql-server-get-all-databases-with-mdf-and-ldf-file-location
SELECT
db.name AS DBName,
type_desc AS FileType, size * 8/1024 AS MBSize,
Physical_Name AS Location
FROM
sys.master_files mf
INNER JOIN
sys.databases db ON db.database_id = mf.database_id
Table Size
https://stackoverflow.com/questions/7892334/get-size-of-all-tables-in-database
Here is another method: using SQL Server Management Studio, in Object Explorer, go to your database and select Tables
Then open the Object Explorer Details (either by pressing F7 or going to View->Object Explorer
Details). In the object explorer details page, right click on the
column header and enable the columns that you would like to see in the page.
You can sort the data by any column too.
訂閱:
文章 (Atom)


