Question : SQL and Windows authentication

I have a SQL 2005 standard 64 bit sp3 install on a 64 bit W2K3 server SP2.  The db SQL was installed for required SQL authentication.  I have a web app on another server that I want to migrate.  The web app uses Windows Authentication.  Will I have to install another SQL instance with Windows Authentication to get the web app to run?

Thanks,
Tim

Answer : SQL and Windows authentication

Hi

"the db SQL was installed for required SQL authentication"

When you install the DB you had 2 options
1. Windows Autentication mode
2.SQL Server and Windows Autentication mode  
   (If you choose that one you had to enter sa password)

Any way -  to allow you web application to connect to the SQL SERVER
you need to create SQL SERVER LOGIN

CREATE LOGIN [DOMAIN_NAME\WEBSERVER_USER_NAME]
FROM WINDOWS WITH DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english]
GO
then you sould grant te permission to this user


USE [db_dba]
GO
CREATE USER [DOMAIN_NAME\WEBSERVER_USER_NAME] FOR LOGIN [DOMAIN_NAME\WEBSERVER_USER_NAME]
GO
USE [db_dba]
GO
EXEC sp_addrolemember N'db_owner', N'DOMAIN_NAME\WEBSERVER_USER_NAME'
GO


Good luck
Guy H
Random Solutions  
 
programming4us programming4us