CREATE DATABASE sqldbpool
–Solution – I
EXEC Sp_renamedb ‘SQLDBPool’, ‘Jugal’
–Solution – II
ALTER DATABASE sqldbpool MODIFY name=jugal
CREATE DATABASE sqldbpool
–Solution – I
EXEC Sp_renamedb ‘SQLDBPool’, ‘Jugal’
–Solution – II
ALTER DATABASE sqldbpool MODIFY name=jugal
Problem:-
One of my friend was installing cluster SQL Server, installation was stopped in the middle of something and he was not able to remove the SQL Server from add/remove programs or SQL Server setup. He has deleted the registry, folder manually but still he can see the SQL Server Services in Services.msc. He called me for the issue, I have provided him the below solution and it will work.
Solution:
1) Go to command prompt and use SC command to delete service
sc delete sqlserveragent
sc delete mssqlserver
2) You have to also delete the services registry entry using regedit
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
In SQL Server 2000
sp_configure ‘allow’ ,1
GO
Reconfigure with override
GO
Update sysdatabases set status = status&(~32768) where name = ‘SQLDBPool’
GO
sp_configure ‘allow’, 0
GO
Reconfigure with override
go
IN SQL Server 2005/2008
ALTER DATABASE sqldbpool
SET online
Problem
What are the different ways to secure the SA login? Everyone is aware of the SA login and its administrator rights, so it is very risky if some unwanted users try to use the SA account or hack the SA account. It is also not advisable to use the SA account in any application or by users. In this article we cover a few ways to reduce the risk.
Solution
Read article on MSSQLTips.com here. http://www.mssqltips.com/tip.asp?tip=2221
Many times when we are copying result from the Result Set GRID, column headers are not copied with it. To copy the column header you have to enable it.
Go to Tools menu -> Option -> Query Results -> SQL Server -> Results to Grid -> Checked the “Include column headers when copying or saving the result” check box