SQL Integrity Check

USE DB_NAME;
DBCC CHECKDB;

No Comments »

admin on January 29th 2013 in MSSQL

How can I determine SQL Server INstance Name?

Check in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names

No Comments »

admin on November 28th 2012 in IT, MSSQL

Backup SQL Express 2005/2008

Unfortunately SQL Express 2005/2008 doesn’t come with a Backup Agent. So I searched the net for a couple of solutions to schedule it. There are some good TSQL scripts but a little program which you can run in Windows Task Planer. It is called ExpressMaint and can be downloaded here: Info ExpressMaint

No Comments »

admin on November 24th 2009 in MSSQL

MSSQL Login Failed

I tried to login to my SQL Server with a new user I created and got following error:
Login failed for user ‘root’. The user is not associated with a trusted SQL Server connection.

You need to activate MS Sql Authentication and Windows Authentication Mode:
1. Open MS SQL Server Manegement Studio
2. Right click on the server
3. Properties
4. Security
5. Change from Windows Authentication Mode to SQL Server and Windows Authentication mode

No Comments »

admin on May 11th 2008 in IT, MSSQL

MUST_CHANGE is ON

I tried to remove the check_policy and check_expiration from a user and got following error in MS SQL Server:

I forgot to remove the must change password flag when I created the user. A simple SQL query to change the users password solved the problem:

ALTER LOGIN %USERNAME% WITH PASSWORD='%PASSWORD%'

									

No Comments »

admin on May 11th 2008 in IT, MSSQL

Version MS SQL Server

Here a simple MS Query to get the version of MS SQL Server:
select @@version

No Comments »

admin on May 6th 2008 in IT, MSSQL




Check out new movies online website. Download and buy movies now.
1