Viewing 15 posts - 466 through 480 (of 708 total)
Tools -> Options... -> Click 'Query Results' -> in the right pane, check 'Play the Windows default beep when a query batch completes'
October 22, 2007 at 8:01 pm
SELECT OBJECT_NAME(object_id) AS TableName, name AS ColumnName
FROM sys.columns
WHERE object_id = OBJECT_ID('YourTableNameGoesHere') AND is_identity = 1
October 22, 2007 at 7:55 pm
dots67 (10/18/2007)
Results can not be cached as underlying data changesRegarding data (buffer cache) you can not control what is cached (the minor exception is PINTABLE)
PINTABLE is ignored in SQL Server...
October 18, 2007 at 8:54 pm
Central Indiana (I live and work in Indy) is actually pretty fertile ground for SQL Server DBAs. Many places don't post ads on Monster because (and I've been through...
October 18, 2007 at 8:47 pm
Tracing should be used to identify specific reasons for specific problems. It comes later in the tuning process. You first need to answer the questions "Is there a...
October 18, 2007 at 1:06 pm
SELECT login_name FROM sys.dm_exec_sessions WHERE session_id = @@spid
Check BOL for both sys.dm_exec_sessions and sys.dm_exec_requests to see what other useful info is available. (host_name, etc.)
-Eddie
October 17, 2007 at 10:05 am
Just script your backup with T-SQL and set up an agent job on each server to execute that script. The first step in the script can check if the...
October 17, 2007 at 8:22 am
We use the PolyServe Matrix Server Database Utility for SQL Server to run 2 distinct 5+1 'clusters'.
http://www.polyserve.com/sql_server_consolidation.php
They push it as useful for consolidation, we went with it to get rid...
October 16, 2007 at 9:12 pm
The virtual SQL Server has a different IP address from the cluster itself. Network names, such as SQLET01, are resolved into IP addresses through DNS. A single network...
October 13, 2007 at 10:38 am
Using windowed aggregates (using the OVER clause) avoid the messy join-back stuff:
SELECT n.caption, AVG(b.availability) AS Availability, AVG(AVG(b.availability)) OVER () AS 'Average of Availability'
FROM nodes n INNER JOIN
...
October 10, 2007 at 11:40 am
DevTeamLead (10/5/2007)
One of the most disparaging things I run across in SQL code is the use of;
SELECT *
[...]
-Microsoft promises to deprecate...
October 8, 2007 at 10:28 am
There's a lot of info in that book that is related to tuning hardware and windows server monitoring, which is valid info regardless of the version of SQL Server. ...
October 3, 2007 at 11:33 am
From http://www.microsoft.com/sql/editions/enterprise/comparison.mspx
High Availability “Always On” Comparison
SQL Server 2005 Standard Edition
Failover clustering
Two-node only
SQL Server 2005 Enterprise Edition
Failover clustering
Up to 9 nodes
-Eddie
October 3, 2007 at 11:19 am
Use datepart to get the day of year:
SELECT datepart(dy, getdate())
October 1, 2007 at 6:57 pm
Viewing 15 posts - 466 through 480 (of 708 total)