Question

I have set up a little network with windows workgroup. My pc (windows 8) connected with server (sql server 2012) using windows authentication. Of course I had a local account and not the microsoft account and a pure mapping of the accounts did the job.

With the upgrade to windows 8.1 and in order to use skydrive I must use a Microsoft account. How can I connect to sql server using windows authentication and using this Microsoft account?

Était-ce utile?

La solution 2

If you are able to control the method that the client connects to the SQL Server, and have control of the SQL Server, then it might be best to switch the server to SQL Server and Windows Authentication mode instead of just Windows.

However, if you require the clients Windows login in order to differentiate the users accessing the SQL Server, then you may be out of luck. If the SQL Server is configured to only allow Windows Authentication, then it will only accept connections from the Windows logins defined on the Windows server - if the server is in workgroup mode and not domain mode.

The workaround for this has always been to ensure that a Windows account exists on the client and server with the same name and password, but if you are now required to use a Microsoft Account (formerly known as a Live Account) as your Windows login on your desktop I don't see how you would give that account access rights on the SQL Server.

Autres conseils

I have figured out a work around for this issue.

First create a local account that will work with your sql server. Then switch to your Windows Live account (a seperate user) and modify the shortcut's target.

C:\Windows\System32\runas.exe /user:domainName\localAccountName /savecred “pathToExecutable”

This should work for any program that needs to use Windows Authentication.

Actually there is a way you can add credentials to the "Microsoft account" the same as adding credentials to accounts in previous versions.

Not sure if this will work for you but it works for me with file share access over a network.

Under Control Panel Open the User Accounts and Family Safety section, then go to User Accounts. Your Microsoft account will be listed. From the left side click Manage your Credentials.

You can add Windows Credentials in there as well as a lot of other credentials.

Hope this helps

When using a Microsoft Account to logon in Windows, a local user is created. The name of the local user is your first name that is specified on the Microsoft account.

So if your first name is Eric, try connecting to SQL Server with Eric and your Microsoft Account's password.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top