Skip to Content
0
Former Member
Apr 13, 2011 at 01:42 PM

Adding ServerName\InstanceName in C# at Runtime

34 Views

How do you add the sql server name plus the Instance name in C#

I've tried many different ways.

strServerName = "Homer" + "\" + "Budget";

rpt.SetDatabaseLogon("xxxx", "xxxx", strServerName , strDatabase);

I've created the reports on another server and now I have to add the instance name.