Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 740017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:28:01+00:00 2026-05-14T08:28:01+00:00

Here’s my scenario. I’ve got SharePoint 2010 running on one server, with an SQL

  • 0

Here’s my scenario.

I’ve got SharePoint 2010 running on one server, with an SQL Server running on another. Both machines are on the same domain, but the logins involved are local to each machine. SharePoint is running as NT Authority\Network Service, if that makes any difference.

I’ve created a BCS that pulls data from the remove SQL Server. The connection string appears as follows: Data Source={0}; Initial Catalog={1};User Id={2}; Password={3}; Integrated Security=SSPI. I’ve confirmed that the connection string is well formed, once all the {x}’s are replaced.

This works just fine, provided you access the SharePoint site from a browser running on the same machine (the machine hosting SharePoint, that is to say). Once you connect to it from a browser on a different machine it fails.

Slapping a profiler on SQL Server reveals that when SharePoint is accessed ‘locally’, the user making queries is the logged-in account. When its running remotely, the user is ‘anonymous’. Due to the account permissions, the former succeeds while the latter fails. In no case is the user actually the one provided in the connection string.

This answer indicates that the problem is probably related to connection pooling, but hasn’t helped me resolve the issue.

So, in a nutshell, how can I get this BCS to actually honor the connection string username/password pair? Or, failing that, how can I achieve the equivalent end? The server setup (SharePoint on one, SQL Server on another) isn’t negotiable; unfortunately.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:28:02+00:00Added an answer on May 14, 2026 at 8:28 am

    You can have Integrated Security XOR you can have SQL authentication. But you can’t mix them. Once you specified Integrated Security=SSPI, your user name and password will be ignored, as integrated security will be used instead. If you want to specify a SQL authentication user and password, remove the ‘integrated security’ part.

    As with any integrated authentication connection, remote servers fall into the constrained delegation restriction and they authenticate as anonymous. To enable NT impersonated credentials to flow to the next hop (the SQL Server), constrained delegation must be enabled, see:

    • How To: Use Protocol Transition and Constrained Delegation in ASP.NET 2.0
    • How To: Use Impersonation and Delegation in ASP.NET 2.0
    • How to Implement Kerberos Constrained Delegation with SQL Server 2008
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.