|
|
How To: Resolving unexpected behavior and errors using SQL Server views
Sometimes you have to create views which are based on other views or tables.
But there are some limitations and pitfalls when it comes to making changes in the structure of the underlying tables/v...
|
How to: Display current database and object size
I am often asked how to determine the current database size from SQL code.
SQL Server gives you the system stored procedure sp_spaceusedwhich does exactly this.
To retrieve the current size o...
|
How to: Hunting SQL Server Deadlocks and logging them to file
The following describes the possible ways and the steps needed the get more details about SQL Server dead locks.
The engine saves the information by default to the SQL Server error logs.
1. Use...
|
News: SQL Server 2008 CTP Released
On Monday, 04 June 2007, Microsoft released the first community technology preview (CTP)of SQL Server 2008, the official name for what was initially codenamed "Katmai." The announcement was made a...
|
How to: Ensure correct german characters in SQL scripts using sqlcmd.exe
The command line tool sqlcmd.exe is well known in the world of a Microsoft (SQL Server) developer.Normally you will execute SQL scripts using the following syntax: sqlcmd.exe -E -S <your_server...
|
How to: Switch SQL Server 2005 to single user mode
Here is a short tutorial on switching a SQL Server 2005 instance to single user mode:
1. Stop the service:
Using a command prompt type: net stop MSSQL$<your_instanceName>
2. Start t...
|
How to enable Snapshot Isolation on SQL Server 2005
SQL Server 2005 introduces a new snapshot isolation level to enhance concurrency for OLTP applications. In earlier days concurrency was based on frequent locks of rows, pages and tables. snapshot i...
|
Error 1939 when trying to create an index on View in SQL Server 2005
When you try to create an index on a column belonging to a view you receive the following error:
Error: sql server error 1939: The Index cannot be created because the view is not bound to a sche...
|
SQL Server 2005 management views
With SQL Server 2005 Microsoft introduced a new set of so called Dynamic Management Views (DMV).
The following views could be a good starter when searching for specific information in or around yo...
|
How to get current SQL connections
A frequently asked question is how to get currently opened and used connections on a SQL Server.
The easiest way is to use one of the SQL Server managed views to select all open connections:
sele...
|