If you are using SQL Server in hosting enviorment then like all other web site owners you are looking for a better hosting company. There are many hosting companies out there which can provide you with database hosting in shared and dedicated enviorment but they lack expertise in sql server database administration and management.
In my recent research i found one sql server hosting provider company which also provides database administration services including design, monitoring and performance tunning. They do not support all features but hardly any small to medium size business is using all sql server features.
Showing posts with label SQL Server.. Show all posts
Showing posts with label SQL Server.. Show all posts
Tuesday, April 7, 2009
Friday, August 10, 2007
Kill SQL Server connections by username
You can use following SQL Script to kill connections by a single user, make sure you set the username in @UName variable.
SET NOCOUNT ON
DECLARE @UName varchar(50)
DECLARE @spidstr varchar(8000)
DECLARE @ConnKilled smallint
SET @ConnKilled=0
SET @spidstr = ''
Set @UName = 'USERNAME'
SELECT @spidstr=coalesce(@spidstr,',' )+'kill '+convert(varchar, spid)+ '; '
FROM master..sysprocesses WHERE loginame=@UName
IF LEN(@spidstr) > 0
BEGIN
EXEC(@spidstr)
SELECT @ConnKilled = COUNT(1)
FROM master..sysprocesses WHERE loginame=@UName
END
SET NOCOUNT ON
DECLARE @UName varchar(50)
DECLARE @spidstr varchar(8000)
DECLARE @ConnKilled smallint
SET @ConnKilled=0
SET @spidstr = ''
Set @UName = 'USERNAME'
SELECT @spidstr=coalesce(@spidstr,',' )+'kill '+convert(varchar, spid)+ '; '
FROM master..sysprocesses WHERE loginame=@UName
IF LEN(@spidstr) > 0
BEGIN
EXEC(@spidstr)
SELECT @ConnKilled = COUNT(1)
FROM master..sysprocesses WHERE loginame=@UName
END
Saturday, July 28, 2007
SQL Server 2008 Release
Microsoft creates products faster then people are making babies in highly populated countries. Half of the SQL Server users have not upgraded to SQL Server 2005 and now microsoft is releasing new version SQL Server 2008. I guess releasing a new version is the best excuse of not fixing problems in current version. I have not read whats new in 2008 but i am sure there will be alot to impress my directors and purchase officers to spend money on it.
I dont know honestly, its my first blog. If you dont know which version of SQL Server you are using, type this command in Query Analyzer
SQL Command : SELECT @@VERSION
I dont know honestly, its my first blog. If you dont know which version of SQL Server you are using, type this command in Query Analyzer
SQL Command : SELECT @@VERSION
Subscribe to:
Posts (Atom)