به عنوان مثال تابعی: BDC ADF که برای اتصال به پایگاه داده SQL با شناسه کاربری و رمز عبور تعبیه شده

I needed to wire up MOSS to a SQL database via BDC. For testing/POC purposes, I wanted to embed the SQL account user id and password in the ADF. Starting with this template (http://msdn2.microsoft.com/en-us/library/ms564221.aspx), I created an ADF that connects to a particular SQL server instance and logs in with a specific user id and password and shown in this snippet:

  <LobSystemInstances>
    <LobSystemInstance نام="ClaimsInstance">
      <خواص>
        <ویژگی نام="AuthenticationMode" نوع="System.String">PassThrough</ویژگی>
        <ویژگی نام="DatabaseAccessProvider" نوع="System.String">SqlServer</ویژگی>
        <ویژگی نام="RdbConnection Data Source" نوع="System.String">actual server\actual instance</ویژگی>
        <ویژگی نام="RdbConnection Initial Catalog" نوع="System.String">actual initial catalog</ویژگی>
        <ویژگی نام="RdbConnection Integrated Security" نوع="System.String">SSPI</ویژگی>
        <ویژگی نام="RdbConnection Pooling" نوع="System.String">غلط</ویژگی>

        <!-- These are the key values: -->
        <ویژگی نام="RdbConnection User ID" نوع="System.String">actual User ID</ویژگی>
        <ویژگی نام="RdbConnection Password" نوع="System.String">actual Password</ویژگی>
        <ویژگی نام="RdbConnection Trusted_Connection" نوع="System.String">غلط</ویژگی>

      </خواص>
    </LobSystemInstance>
  </LobSystemInstances>

It is not a best practice, but it’s useful for a quick and simple configuration for testing. This was surprisingly difficult to figure out. I never found a functional example with search keywords:

  • adf embedded userid and password
  • embed user id and password in adf
  • embed user id and password in adf bdc
  • sharepoint bdc primer
  • sharepoint embed user id and password in adf

</پایان>

مشترک شدن در وبلاگ من.

4 دیدگاه در "به عنوان مثال تابعی: BDC ADF که برای اتصال به پایگاه داده SQL با شناسه کاربری و رمز عبور تعبیه شده

  1. بدون نام

    I get this when trying to access wiht user id and Password

    A Metadata Exception was constructed in App Domain ‘/LM/W3SVC/1032898172/Root-2-128851566339311184’. The full exception text is: The LobSystemInstance Property ‘AuthenticationMode’ has a value that requires ‘Integrated Security’ in the connection string

    پاسخ
  2. Jan D'Hondt

    Havie struggled with LobsystemInstance connection setup too. Used your comments to check if everything worked.
    My setting differs in that i have set ‘Integrated security’ to false instead of SSPI
    and ‘rdbconnection Pooling’ to true.

    My observation about Connection Pooling: since the connection string for any user of this BDC will be exactly the same, the same connection will be used over and over again and therefore can be efficiently pooled by the system. Thus saving overhead on the sql server side. Or is there something I overlooked?

    پاسخ
  3. Leo wrote:
    What is the acutal instance and actual initial catalog? My guess is actual initial catalog should be the database. What is actual instance then? And if my MS SQL is using windows authentication ? what would be the user id and password in this case? domain\user then my windows log on password?
    پاسخ

پاسخ

آدرس ایمیل شما منتشر نخواهد شد. بخشهای موردنیاز علامتگذاری شدهاند *