Can I use SQL Authentication to log into SQL Server 2008 that was set up with Windows authentication? -


i have sql server on local machine ever set windows authentication. @ login screen, show hostname\sqlserver , i'd log in using windows authentication.

i've been moved new machine different hostname, , database has been moved. can't log-in since windows username different. how can database? want login using "sa" account on. sql server 2008

you need alter registry key hkey_local_machine\software\microsoft\microsoft sql server\mssql10.mssqlserver\mssqlserver mssql10.mssqlserver name of current instance.

it should "1" now, windows. change "2", mixed.

i believe initial sa password @ point blank. however, possible sa password set already, may not able login using sa after altering registry.

you can read more at: http://www.mssqltips.com/sqlservertip/1441/correct-the-sql-server-authentication-mode-in-the-windows-registry/

good luck.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -