Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««45678»»»

Dynamic Connection Strings in Reporting Services 2005 Expand / Collapse
Author
Message
Posted Thursday, April 1, 2010 10:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 2:53 PM
Points: 6, Visits: 71
i have to use the dynamic connection string as it was shown in here and i have to get a list of database values if the user selects a particular server name and i tried to use exec sp_databases and in order to populate this data set i need to pass the connection string and the connection string does not have the database name in it so how can i get the list of the database names and give them as available values for the initial catalog parameter. i think you get my point but i really need to get this working. also i am concerned about how are we going to work with reports that share a same datasource. do we have to pass in the satasource for each report individually or is there a way out of that. any help would be apperciated. thanks
Post #895073
Posted Thursday, April 1, 2010 11:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 8:37 AM
Points: 7, Visits: 136
I believe you could connect to Master as the default database, run your query to get the list of databases to populate the drop down.
Post #895126
Posted Thursday, April 1, 2010 2:08 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 2:53 PM
Points: 6, Visits: 71
ok i have been able to get the database names by changing the connection string for the specific dataset but i would also like to get the dropdown list for the server names on the network. any idea
Post #895284
Posted Thursday, April 1, 2010 2:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 8:37 AM
Points: 7, Visits: 136
A couple questions:
1) Are you using Active directory?
2) Are you servers named in such a way that you can filter out which one's are SQL Servers and which ones are not?
Post #895307
Posted Monday, April 5, 2010 1:22 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, July 15, 2014 4:53 AM
Points: 229, Visits: 166
Hi,
not sure where u want to load teh list of sql servers in a list box, if its supports .net language u can ue sql serevr smo and there are classes which will list the sql servers in LAN
Jeswanth


--------------------------------
Post #896568
Posted Monday, April 5, 2010 11:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 2:53 PM
Points: 6, Visits: 71
i am trying work on a report with dynamic connection strings in ssrs2005. i was able to generate the list of the databases to use for the initial catalog= Databasename but i would like to know if we can generate the list of the servers using a query so that we can select the list of the servers. also i have a question with the username and password. when i try to give them dynamically it is not working for me. any guess.my main aim is to get the name of the server as available values for the data source = parameters!servername.value

Post #896880
Posted Monday, April 5, 2010 11:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 8:37 AM
Points: 7, Visits: 136
There is no table is SQL Server that will give you this information unless you want to create and maintain a table with this information. Otherwise you need to look at some sort of query outside of SQL Server to get this information, like using AD to query all the computers in the domain, but even with that unless your computer names have a unique id to tell you that it's a SQL Server you are stuck. Jeswanth may have the better idea for you but not having ever used that method I can't validate it.
Post #896889
Posted Monday, April 5, 2010 8:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 2:53 PM
Points: 6, Visits: 71
how about username and password are there any methods for dynamically allocating them. i am aksing you this in the context of having multiple datasets. i have 6 to 7 datasets each having same login id and password. so if i can use parameters for the username and password then it would be help full but 205 does not allow me to do that
Post #897219
Posted Tuesday, April 6, 2010 7:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 8:37 AM
Points: 7, Visits: 136
If you are using Active Directory (AD) user accounts then this is easy, you just have the datasource use Windows Integrated Security. If you are not using AD then I suspose you could probably create some code to map the users AD account to a SQL Server account and have it logon automagically. Otherwise you could use "Credentials Stored Securely on the server" where you use a single user name and password for the data source and control access to the reports by user using the security tab under each report or folder.
Post #897526
Posted Tuesday, April 6, 2010 10:12 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 9, 2014 7:00 AM
Points: 65, Visits: 27
Also, what if we don't know the credentials. can we dynamically supply the user and its password to the datasource?
Post #897684
« Prev Topic | Next Topic »

Add to briefcase «««45678»»»

Permissions Expand / Collapse