F
fiaolle
Hi
I'm woundering how I will find out what the SQL Server name is, without
running a stored procedure or something. Because if I am going to run a
stored procedure I have to know the server name. For example in the code
below I have to know the server name (.\\SQLEXPRESS) or do I or is there
another way to come around this?
The problem is I have two instances, SQL Server Express on one computer and
SQL Server
Enterprice on another computer. I don't want to have to change the
connectionstring in my application, when I'm moving the application to the
other computer.
I'm woundering how I will find out what the SQL Server name is, without
running a stored procedure or something. Because if I am going to run a
stored procedure I have to know the server name. For example in the code
below I have to know the server name (.\\SQLEXPRESS) or do I or is there
another way to come around this?
The problem is I have two instances, SQL Server Express on one computer and
SQL Server
Enterprice on another computer. I don't want to have to change the
connectionstring in my application, when I'm moving the application to the
other computer.