SQLServer-QA.net - Knowledge Sharing Network (SSQA.net)
Invisible community contributions, Visible success to users
Browse by Tags
All Tags
»
tsql
»
sql server
(
RSS
)
2005
access
backup
baseline
begin
best practice
best practices
blocking
blog
cache
check
clr
clustered index
code
collation
columns
constraint
create
dac
data file
data sources
database
database mirroring
databases
dba
dbcc dbreindex
ddl
declare
default
definition
deletes
demo
display
distribution
distributor
dmv
download
drop
dump
dynamic
edition
engine
enhancement
enterprise
enterprise manager
entity
error handling
errorr
event
execution
expensive query
function
high availability
iif
indexes
information schema
kba
locks
management
mdx
memory
merge
microsoft
monitoring
object_name
parameter
performance
permission
profiler
publisher
query
query plan
replication
report builder
reporting services
schema
script
security
select
server
size
snapshot
ssms
statistics
stored procedure
sysindexes
system
table
tablename
tables
technet
top
trace
transaction
transactional
trigger
tuning
version
view
views
TSQL to get TOP 10 queries that are using I/O generation, SQL Server 2005
Published 14 July 8 5:26 AM |
SSQA.net
DMVs are most helpful to find instant information on SQL instance without causing further delays, in any performance degradation time you can execute following TSQL to get top 10 queries that are generating lots of I/O on the server: SELECT TOP 10 total_logical_reads...
Quick and simple way to know the stored procedures parameters using TSQL
Published 8 July 8 6:13 AM |
SSQA.net
As you may be aware that you can pass parameters to the stored procedure when you have the selection of data requirement such as stored procedure with data type,length, parameter position and also the mode of parameter (Input or Output). Using INFORMATION_SCHEMA...
FIX: Error message after you run the DBCC DBREINDEX Transact-SQL statement on a table that does not have a unique clustered index on a SQL Server 2005-based computer: "Msg 2511"
Published 3 July 8 4:46 PM |
SSQA.net
The following pages were recently modified. Source: Knowledge Base Product: Microsoft SQL Server 2005 Enterprise Edition, SQL Server 2005 Standard Edition & SQL Server 2005 Enterprise X64 Edition Notification Contents: New FIX: Error message after...
SQL Server 2005 DMV - quick information to find resource allocation & DDL bottleneck
Published 9 June 8 3:29 AM |
SSQA.net
Initially I preferred to put this blog post within Performance tuning blog section here, but as it relates to the TSQL script thought this is best place to go. Anyways, if you have a performance problem the foremost option is to find whether the server...
SQL Server: Creating BlackBox kind of trace with TSQL
Published 28 May 8 6:59 AM |
SSQA.net
Here is the kind of scripts defined within TEchnet articles about running black-box kind of traces against your SQL Server instance, then also you can take advantage of the blackbox trace if you are facing intermittent problems, you want to make sure...
How to drop all tables, all views, and all stored procedures from a SQL Server 2005 Database?
Published 20 May 8 3:12 AM |
SSQA.net
It may not be a hardcore requirement on day-to-day basis to drop all tables, views and stored procedures from a SQL Server database within your environment, but it will be handy to have such a code at your end when such task is required. There are 2 ways...
SQL Server 2005 detect DAC session with TSQL
Published 9 May 8 1:11 PM |
SSQA.net
SQL Server 2005 has introduce a secret-door for Admins to identify and resolve any connect lockout issues within your database instance, as on http://sqlserver-qa.net/blogs/tools/archive/2007/08/04/dedicated-administrator-console-dac-saved-an-important...
SQL Server: Quick way to find Active & idle connections on a SQL instance
Published 2 May 8 4:32 AM |
SSQA.net
Using SQL Server 2005 you can take help of DMV - sys.dm_exec_connections that will give server-level information about the connections. In the olden days usage of sysprocesses system table used to be heavy and same approach can be achieved by using system...
SQL Server 2005 unable to drop schema error: Cannot drop schema <> because it is being referenced by object
Published 22 April 8 3:1 AM |
SSQA.net
Recently I have received an email about unable to drop schemas that are adopted in the database design within an environment, here it goes. I'm setting up an automatic build process that also includes building one or more databases. Initially it was...
SQL Server Replication - resolving too many snapshots issues?
Published 15 April 8 6:15 AM |
SSQA.net
In case you have many snapshots generated within your Replication setup and having troubles in finding what kind of scheduled job is running during the time of snapshot publication. By default you coudl take help of system catalog MSsnapshot_agents and...
SQL Server 2008 TSQL enhancements - what I like?
Published 4 April 8 9:58 AM |
SSQA.net
Simple, short and crisp - I would like to say about TSQL enhancements within SQL Server 2008. You may already aware about what's new and how best you can take advantage within your code, most of the Developers would agree about IntelliSense functionality...
SQL Server 2008 - TSQL behavioural changes and enhancements
Published 31 March 8 2:0 PM |
SSQA.net
As usual the new release of SQL Server version 2008 had few changes from 2000 to 2005 and as usual this control-of-flow sequence should occur in order to take advantage of performance with transaction/rollback advantages. Such direction of flow should...
Error while executing DMV - Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '('.
Published 17 March 8 4:39 AM |
SSQA.net
DMV - has got very special place for DBAs since the inception of SQL Server 2005. In this case one of the thme is very important to find out the index statistics within your database, such as sys.dm_db_index_physical_stats statement. Recently one of the...
TSQL to change collation of database, whats new in SQL 2008 then?
Published 12 March 8 1:24 PM |
SSQA.net
Cross post from my BlogCasts site....( read more ) Read More...
Let a user with minimal privileges see another user, simple with TSQL - SQL Server 2005
Published 11 March 8 7:5 PM |
SSQA.net
You may be aware that by default, users that have minimal privileges cannot see other users in the sys.database_principals and sys.server_principals catalog views. This means that a user with minimal privileges that owns a table cannot see other users...
TSQL to get clustered index information in SQL Server 2005
Published 10 March 8 3:0 AM |
SSQA.net
Recently within a supportal case with CSS we have been given the following TSQL to get information on indexes, where I have modified a bit to get 'Clustered' index information alone that was helpful to see which tables lack of clustered index...
SQL Server Audit Trace - things you need to take care!
Published 6 March 8 3:17 AM |
SSQA.net
Audit trace is very helpful when you want to monitor a particular processes on your SQL Server, even for the successful logins and recent users activity on the databsaes. But the default trace would have many columns with the information and you need...
SQL Server Management Studio snap-in - get alerted when executing a TSQL code!
Published 15 February 8 4:26 AM |
SSQA.net
Do you like color-coded alert say when you are executing a TSQL script or code against a SQL Server instance, say if its a production server with 'red' indicator or 'green' when it is on testing platform! I have no doubt in stating the...
TSQL to get current executing statements - SQL Server 2005
Published 12 February 8 2:27 PM |
SSQA.net
Using SP_WHO or SP_WHO2 is a common way to get list of executing processes currently on the server, within SQL Server 2005 you could take advantage of DMV that lists currently-executing statements. select r.session_id ,status ,substring(qt.text,r.statement_start_offset...
SQL Server 2005 TSQL to obtain buffers by object (table, index) in the buffer cache?
Published 1 February 8 6:30 AM |
SSQA.net
As a programmer interacting with SQL Server's cache is not often needed, but when you do need to determine what is going on with the cache, or you simply need to flush the execution plans or data pages to tune a query, you now have the means to do...
More Posts
Next page »
Search
Go
This Blog
Home
Contact
About
Tags
2005
2008
best practice
best practices
blogs
database
databases
dmv
download
error
high availability
indexes
kba
management
microsoft
performance
query
replication
reporting services
security
server
sql server
ssis
ssms
tsql
Community
Home
Blogs
Media
Groups
Archives
July 2008 (18)
June 2008 (39)
May 2008 (60)
April 2008 (35)
March 2008 (48)
February 2008 (59)
January 2008 (63)
December 2007 (58)
November 2007 (43)
October 2007 (100)
September 2007 (110)
August 2007 (146)
July 2007 (106)
June 2007 (114)
May 2007 (78)
April 2007 (2)
News
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go