Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a way to hardcode connection string to RDLC?
    primarykey
    data
    text
    <p>I need to make report viewer that will handle reports localy. I got RDL files with querys. Is there a way to insert conenction string into report's XML code so the report can get data from database directly? reports will be display in MS reportViewer.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"&gt; &lt;DataSources&gt; &lt;DataSource Name="BIA"&gt; &lt;DataSourceReference&gt;BIA&lt;/DataSourceReference&gt; &lt;rd:DataSourceID&gt;98fa74a9-d829-4196-be9d-49697ded5201&lt;/rd:DataSourceID&gt; &lt;/DataSource&gt; &lt;/DataSources&gt; &lt;DataSets&gt; &lt;DataSet Name="RelItems"&gt; &lt;Fields&gt; &lt;Field Name="RelItemID"&gt; &lt;DataField&gt;RelItemID&lt;/DataField&gt; &lt;rd:TypeName&gt;System.Int32&lt;/rd:TypeName&gt; &lt;/Field&gt; &lt;Field Name="SSISPackageName"&gt; &lt;DataField&gt;SSISPackageName&lt;/DataField&gt; &lt;rd:TypeName&gt;System.String&lt;/rd:TypeName&gt; &lt;/Field&gt; &lt;/Fields&gt; &lt;Query&gt; &lt;DataSourceName&gt;BIA&lt;/DataSourceName&gt; &lt;CommandText&gt;select b.ID as RelItemID, SSISPName --+ ' ('+s.Name + ' -&amp;gt; ' + d.Name + ')' as SSISPackageName from dbo.RelTypes_ProvTypes a inner join dbo.RelItems b on a.RelTypeID = b.RelTypeID inner join dbo.ObjItems s on b.ObjItemIDSource = s.ID and a.ObjTypeIDSource = s.ObjTypeID inner join dbo.ObjItems d on b.ObjItemIDDest = d.ID and a.ObjTypeIDDest = d.ObjTypeID where SSISPName is not null order by 2&lt;/CommandText&gt; &lt;rd:UseGenericDesigner&gt;true&lt;/rd:UseGenericDesigner&gt; &lt;/Query&gt; &lt;/DataSet&gt; ... and so on </code></pre> <p>This is RDL I have. Any other tips or help is welcome, just need to make it work :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload