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 ang template na ito (http://msdn2.microsoft.com/en-us/library/ms564221.aspx), Nilikha ko ang isang ADF na nag-uugnay sa isang partikular na halimbawa SQL server at mga log in gamit ang isang tiyak na user id at password at ipinakita ang snippet na ito:
<LobSystemInstances> <LobSystemInstance Pangalan="ClaimsInstance"> <Katangian> <Ari-arian Pangalan="AuthenticationMode" Uri="System.String">Ipinasang</Ari-arian> <Ari-arian Pangalan="DatabaseAccessProvider" Uri="System.String">SqlServer</Ari-arian> <Ari-arian Pangalan="RdbConnection Pinagmulan ng Data" Uri="System.String">aktwal na server aktwal na halimbawa</Ari-arian> <Ari-arian Pangalan="RdbConnection Paunang Catalog" Uri="System.String">aktwal na paunang catalog</Ari-arian> <Ari-arian Pangalan="RdbConnection Integrated Security" Uri="System.String">SSPI</Ari-arian> <Ari-arian Pangalan="RdbConnection Pooling" Uri="System.String">hindi totoo</Ari-arian> <!-- Ito ang mga mahahalagang halaga: --> <Ari-arian Pangalan="RdbConnection User ID" Uri="System.String">isangctual User ID</Ari-arian> <Ari-arian Pangalan="RdbConnection Password" Uri="System.String">aktwal Password</Ari-arian> <Ari-arian Pangalan="RdbConnection Trusted_Connection" Uri="System.String">hindi totoo</Ari-arian> </Katangian> </LobSystemInstance> </LobSystemInstances>
Ito ay hindi isang pinakamahusay na kasanayan, 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 naka-embed na userid at password
- i-embed ang user id at password sa adf
- i-embed ang user id at password sa adf bdc
- sharepoint bdc aklat ng baguhan
- sharepoint embed user id at password sa adf
</dulo>
Nakukuha ko ito kapag sinusubukang i-access wiht user id at Password
A Metadata Exception was constructed in App Domain ‘/LM/W3SVC/1032898172/Root-2-128851566339311184’. Ang buong teksto ng pagbubukod ay: The LobSystemInstance Property ‘AuthenticationMode’ has a value that requires ‘Integrated Security’ sa connection string
Havie struggled na may LobsystemInstance-setup ng koneksyon masyadong. Ginamit ang iyong mga komento upang suriin kung ang lahat ng bagay ay nagtrabaho.
My setting differs in that i have set ‘Integrated security’ sa False sa halip ng SSPI
and ‘rdbconnection Pooling’ sa totoo.
Aking mga obserbasyon tungkol sa Koneksyon Pooling: dahil ang connection string para sa anumang mga gumagamit ng BDC ito ay magiging eksaktong pareho, ang parehong koneksyon ay magagamit nang paulit-ulit at samakatuwid ay maaaring mahusay pooled ng system. Kaya pag-save ng overhead sa gilid SQL server. O kaya ay mayroong isang bagay ako overlooked?