July 15, 2019 at 8:42 am
I have a scenario, Need to create windows based authentication in SQL Server, but applications are running different PCs accessing the same SQL server, is it possible to Access the SQL server from Different machine using same window Account.
July 15, 2019 at 9:53 am
Yes, you can do that.
John
July 15, 2019 at 10:11 am
"is it possible to Access the SQL server from Different machine using same window Account."
It is possible if your applications run under the same AD account ("window Account") and use windows authentication connecting to the SQL server.
July 15, 2019 at 10:33 am
Actually SQL Server Account is windows based authentication and we have created a Service account using AD and now we want to allow the application need to connect the Server via single service account across the Organisation. here each machine have separate AD accounts but connect to SQL server is a windows Account. How can we achieve this.
July 15, 2019 at 10:35 am
(1) Grant the service account the necessary database access on the server
(2) Configure the application on each PC to run under the service account
John
July 15, 2019 at 10:50 am
Hi John,
I have did the same thing but while trying to connect SQL server its giving error, could u please advise how can we set the Application should run using windows service account. here i am using .net windows forms application and same application deployed across the multiple systems and they are connecting using same windows service account. when i enable the Integrated Security=TRUE it uses local/logged in user account for authentication then it got failed because local user doesn't have permission to access the SQL server
It is only SQL server service Account and server authentication mechanism is only windows based.
July 15, 2019 at 11:39 am
If you want to use a single account, you need to have your .net application use impersonation, so that it connects using an impersonated windows account.
Otherwise you could create a Login (and user) for an AD group and add your AD users to that AD group. Then the users would be able to connect to SQL server using their credentials, without having to give each them their own logins.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
July 15, 2019 at 12:27 pm
OK, please post the login failure message(s) from the errorlog, and the result of this query:
SELECT type
FROM sys.server_principals
WHERE name = 'SVCINFODEVEL'
John
July 15, 2019 at 1:03 pm
Please find the attached Screen shots
Those screenshots aren't Windows Authentication logins; they're SQL logins. If you're using SQL logins, who is running the application doesn't matter, as the AD credentials aren't use.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
July 15, 2019 at 1:12 pm
Prakash T wrote:Please find the attached Screen shots
Those screenshots aren't Windows Authentication logins; they're SQL logins. If you're using SQL logins, who is running the application doesn't matter, as the AD credentials aren't use.
I saw many times when users used AD accounts without domain and passwords trying to connect to SQL server.
So, it can be the similar case.
July 15, 2019 at 1:14 pm
I saw many times when users used AD accounts without domain and passwords trying to connect to SQL server. So, it can be the similar case.
This isn't the case here; the OP is clearly using SQL Server Authentication. You don't select "SQL Server Authentication" and enter a username and password using use AD authentication...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
July 15, 2019 at 1:25 pm
Andrey wrote:I saw many times when users used AD accounts without domain and passwords trying to connect to SQL server. So, it can be the similar case.
This isn't the case here; the OP is clearly using SQL Server Authentication. You don't select "SQL Server Authentication" and enter a username and password using use AD authentication...
I don't select, you don't select, but life is diverse and there are deviations.
Let's see what the author will say.
Viewing 15 posts - 1 through 15 (of 17 total)
You must be logged in to reply to this topic. Login to reply