Showing posts with label sqlserver 2005. Show all posts
Showing posts with label sqlserver 2005. Show all posts

Thursday, May 03, 2007

Sql Server 2005 - How to change sqlserver authentication mode - windows authentication / sql server and windows authentication mode

Sql Server 2005 - How to change sqlserver authentication mode - windows authentication / sql server and windows authentication mode:

When we install Sql server 2005 during the installation it would prompt us for what kind of authentication mode to use (windows authentication or mixed mode[both sql and windows]), but at any point of time we can change this (similar to how we do it in sql2000) but with the new sql server management studio, the way we do it has slightly changed, this blog entry explains how to do the same.

1) Launch Sql Server Management Studio (SSMS), usually found in start > program files > Microsoft sql server 2005 > Sql Server Management Studio,

2) SSMS is nothing but a single IDE which combines both sql server 2000 enterprise manager and sql server 2000 query analyzer.

3) Since the mode is right now windows authentication, select the server type as "database engine" and then server name: the name of the sql server 2005 instance you are trying to connect to and authentication as "windows authentication" and click connect,

Note: If sql server 2005 is not yet started you may get an error msg (but in sql 2000 it used to start the sql server if it was not yet started but in 2005 it does not start it automatically).


4) Now the ssms will be connected, start the object explorer, several ways to start it, easiest is to press F8 or click on the icon in the menu which has the tool tip object explorer, (3rd from the right), object explorer is nothing but an tree view of all existing sql server instances, the databases and other agents (similar to sql 2000 enterprise manager left hand tree).

5) Right click on the sql server 2005 instance name and select properties to open the server properties popup window, in this window click on "security page" in the left hand side tree menu, and this page shows the server authentication, change it from windows authentication to sql server and windows authentication.


6) Now we need to perform one more additional step, configuring "sa" login or some other login and enabling it.

7) In the object explorer (F8) expand security, click on logins, the existing logins are shown in the right hand side, right click "sa" the default system administration login and select properties to show the properties window for "sa" login, here change the password of the login.

8) The main step is click on status page in the left hand side and change the status of the login to enabled (if not you will not be able to connect back using sa login)




Thus you can change the authentication modes in sql server 2005, but this may require a restart of the instance.

After restarting sql server 2005 try launching ssms and this time select mode as "sql server authentication" and enter login - "sa" and the password which you had changed in previous step and click "connect" and it should log you in.

Tags: , ,





Friday, March 02, 2007

Sql Server 2005 - A look at Installation : Instances

About Sql Server 2005 Instances:
  • More than one Sql Server 2005 can be installed on the same server, each installation is an instance,
  • On the same machine you can have both Sql server 2000 and also Sql Server 2005 running side by side (like i do on my laptop),
  • When you install Sql Server 2005 you are asked whether you want it to be installed as a default instance (no name for the instance) or you want to give it a name.
  • During installation you can look at already existing instances as shown in the figure,



Why we need multiple instances?

  • If you are planning to have a test environment and a production environment i would recommend installing Sql Server Developer edition on another pc and use it as a test environment, i do not like having test and production on the same OS box. Then why do we need multiple instance support? which is a great question, my answer is below,
  • When you need to have multiple versions of sql server like 2000 & 2005 each run in their own instances,
  • When you need to give admin or sa access to two different administrators to maintain their own sql servers,
  • When you want to have another instance on the same OS where you can first test the service packs and ensure it works fine on the production OS and then do it to the other live instance,
  • When you install other software like Vault or Sharepoint Portal Server 2007 or Visual Studio IDE 2005 they install their own instances of sql server 2005 or Sql Server 2005 Express editions.

SqlServer 2005 - About Sql 2005 & various editions

Sql Server 2005 is a robust database which is a version upgrade after 5+ years, the previous one was Sql Server 2000 and the one before was Sql Server 7.0





Microsoft spent 5 years to come up with this next release which has a lot of cool features,

  • Improvements in performance,
  • More analysis tools,
  • Integrated development with cool dot net IDE and management studio,
  • CLR capabilities,
  • Http end points,
  • Support for service broker and SOA,
  • Better Sql jobs control with the new Sql Agent,
  • Database Snapshots feature,
  • Great database mirroring,
  • Log shipping feature,
  • Replication improvements,
  • and lots n lots of T-Sql and Sql improvements.

I have been working with Sql 2000 for the past 5+ years, and it is one of my favourite databases, i had previous experience working with My Sql and i used to wonder why such a robust database like Sql did not have some good features which mysql had at that time. Example: it had paging at the backend level, you can specify in a query itself how many rows you want, even oracle had pagenum but sql lacked it in 2000 sql server.

The new sql 2005 is very promising and has made up for all the lacking features.

Sql Server 2005 is shipped free with VS Dot net IDE as sql express edition, it comes with sharepoint portal server 2007 and a bunch of other dot net applications. Any developer should learn the new features of Sql server 2005 and my entries would be helpful in that regard.

Sql Server comes in 5 editions:

  • Sql Server 2005 Enterprise edition,
  • Sql Server 2005 Standard edition,
  • Sql Server 2005 Work group edition,
  • Sql Server 2005 Developer edition (free for development and testing, exactly like EE),
  • Sql Server 2005 Express edition (free like former MSDE)

Best ways to learn sql server 2005:

1) Books online free download - http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx

2) Free E-learning courses from Microsoft - (for a limited time it is free soon to end)

https://www.microsoftelearning.com/sqlserver2005/

http://www.microsoft.com/events/series/technetsqlserver2005.mspx

3) Official site - http://www.microsoft.com/sql/default.mspx

4) Cost in $$ for Sql server 2005 - http://www.microsoft.com/sql/howtobuy/default.mspx

5) Made up your mind try it for free (180 day evaluation) - http://www.microsoft.com/sql/downloads/trial-software.mspx

6) Edition comparisons - http://www.microsoft.com/sql/editions/enterprise/comparison.mspx

7) Post a comment on my blog, if i know the answer will let you know :)