Databases Reference
In-Depth Information
The rss extension is not unique, in that it is used in contexts other than Reporting
Services (see http://en.wikipedia.org/wiki/RSS_(disambiguation) ), including
the most popular Web feed format RSS ( Really Simple Syndication ). If you need to
debug, you need to use VS 2010.
Hands-on exercise 8.10 - creating a data
source on the Report Server using rs.exe
and a script file
We will prepare a script file, which provides the code to create a data source
taking data on a SQL Server. The script file is then provided as an input file to the
rs.exe program, as shown in the invocation line. This creates a data source called
rsCreated in the Data Sources folder on the Native Report Server:
1.
Copy the following code in a notepad and save it as rsDataSource.rss
to C:\ . Make sure it is not saved as a text file, with the extension (. txt ).
Here is the code to use (purposely inserted in a column):
'----------------------------------------
------File name: rsDataSource.rss------
'------Demo of rs.exe utility----------
'------the i switch requires an input file
----- -the s switch points to the Report Server url
----invocation as in C:\>rs -i 'rsDataSource.rss 'http://
HodentekWin7/ReportServer_HI'-------------------------------------
----
Public Sub Main()
'provide credentials
rs.Credentials= System.Net.CredentialCache.DefaultCredentials
'call up the procedure
CreateSampleDataSource( )
end sub
Public Sub CreateSampleDataSource( )
'Define the data source definition.
Dim definition As New DataSourceDefinition()
Dim dsname as string
dsname="rsCreated"
 
Search WWH ::




Custom Search