August 23, 2013 at 3:06 am
Hi,
Task is to access the sharepoint file using the service account of SQL Agent.
My setup is
1> SQL agent service is running under domain/user1
2> A Proxy is created which has domain/user1 in its principal
3> This proxy is used to as 'RUN AS' to execute a SSIS package.
4> This package will access the shrepoint file.
5> domain/user1 has full access to this sharepoint file.
Can you please help what do I pass the request.credentials so it picks the domain/user1 account
below is the code snippet.
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim url As String
url = "https://*******/GoStSe/Business%20Intelligence/Test/test.txt"
System.Net.htt()
request = CType(WebRequest.Create(url), HttpWebRequest)
request.Credentials = System.Net.CredentialCache.DefaultCredentials
response = CType(request.GetResponse, HttpWebResponse)
Viewing post 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy