I using syntax like this :
=Switch(RTrim(Parameters!companyID.Value)=”01”,"Data Source=ServerName;Initial Catalog=SC","Data Source=ServerName;Initial Catalog=BI")
I put it to dataset->edit->data source->connection string..
When I deploy, no error, but when i preview i got error "error during processing of the connectstring expression of datasource".
So I change the syntax like :
=IIf(Parameters!companyID.Value="01","Data Source=ServerName;Initial Catalog=SC","Data Source=ServerName;Initial Catalog=BI")
But I got the same message..So what can I do?Can I using 2 databases in one dataset?
Thanks for Advance!!
=Switch(RTrim(Parameters!companyID.Value)=”01”,"Data Source=ServerName;Initial Catalog=SC","Data Source=ServerName;Initial Catalog=BI")
I put it to dataset->edit->data source->connection string..
When I deploy, no error, but when i preview i got error "error during processing of the connectstring expression of datasource".
So I change the syntax like :
=IIf(Parameters!companyID.Value="01","Data Source=ServerName;Initial Catalog=SC","Data Source=ServerName;Initial Catalog=BI")
But I got the same message..So what can I do?Can I using 2 databases in one dataset?
Thanks for Advance!!