May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Use stored credentials as windows authentication in sqlServerQueryUse stored credentials as windows authentication in sqlServerQuery
Previous Previous
 
Next Next
New Post
 5/17/2011 3:11 PM
 

In the SSRS 2005 BIDS, rds data sources, when deployed to SharePoint 2007 as rsds data connections, can be set in the SharePoint library to use stored sql server credentials as Windows authentication credentials. My question is: is there a way to do this when using the new sqlServerQuery?

New Post
 5/17/2011 3:57 PM
 
 Modified By Marien Monnier  on 5/17/2011 3:57:36 PM

Hi jegan,

You have three ways to specify the SQL Server Credentials when using the sqlServerQuery statement. Here are your different options (based on the fact that a "Rick.Maverick" SQL Server user exists and has rights on the given SQL Server):

  • Directly specify the Username / Password inside the connection string of the sqlServerQuery statement.
    The username/password are directly stored within the report (not secure).
  • A second option is to use data source variables for specifying the username and password (available starting from the version 3.5 of Enesys RS Data Extension).
    The username/password are stored within the data source (not very secure).
    Instead of specifying the values, variables are defined inside the data source and used within the connection string:

    Here I defined two variables: $username! with the SQL server user name, and $password! with its password. I can re-use those variables:
  • The third option is to directly use the Data Source credentials.
    My data source uses specific user name and password (securely stored):


    I can use the same credentials for the sqlServerQuery statement, by checking the "Use Data Source Credentials" radio button:

You can find more information about this inside the "sqlServerQuery statement" chapter inside the Enesys SharePoint Query manual, and inside the "Joining SharePoint lists and external SQL data" chapter inside the Enesys SharePoint Query Designer manual. Both manuals can be found inside your installation folder.

I hope everything is clear enough. Don't hesitate to contact us if you need more information.

Regards,
Marien MONNIER
ENESYS

New Post
 5/17/2011 4:12 PM
 

Thanks. I understand all of that. My problem is that I only have a Windows authentication account available on the sql server; no sql server account is available for the data connection there. So I must be able to use stored credentials as Windows authentication to successfully connect to that source. The only way I see to do that so far, is via the data source.

Using the data source credential option (the last one you explain) does not seem to work in my case. The SSRS log shows failed login to the data source. I think this is because the data source for the dataset where I am using the sqlServerQuery is necessarily set to connect to the SharePoint list. Even if, after deploy to the SharePoint server, I go in to the data connection and modify it to use the stored credential as Windows authentication, I still get the login error.

Thanks for your help.

New Post
 5/17/2011 4:18 PM
 

The key limitation in my case seems to be the fact that the sql server will ONLY accept windows authentication.

New Post
 5/17/2011 4:29 PM
 

OK, I see how the data source configuration needs to go on this now:

Prior to deploy, the SP list data source must be set to use Windows Authentication. The sqlServerQuery must be set to use the data source credentials. Then, AFTER deploy, the data connection must be reconfigured to use stored credentials, and the checkbox must be selected to use as Windows credentials. Now everything works.

Sorry for the confusion, and thanks again for your help.

New Post
 5/17/2011 4:47 PM
 

I'm glad you could make it work.

We have an item on our to-do list about an improvement on this particular configuration. I will try to see it pushed to the top of the list, so that all those efforts are not needed, and that it directly works within the Query Designer.

Regards,
Marien Monnier
ENESYS

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Use stored credentials as windows authentication in sqlServerQueryUse stored credentials as windows authentication in sqlServerQuery

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement