Connectiobn to SQL Server 2005 over non-standard port...

SteveoAtilla

Well-known member
Joined
Dec 22, 2004
Messages
79
Location
The Frozen Tundra
Hello!

I am developing and maintaining a large .NET 2.0 application for a customer, and we are migrating the application to their data center.

It has been working very well on the SQL Server 2005 installation, but it is being moved to the corporate data center, and they do not use the standard SQL port (1433) due to a previous virus attack.

How do I specify the actual SQL port used for connections in an ASP connection string? I tried putting "port=" in the connection string, but I was told that the keyword was not supported. Here is the connection string in the web.config file:

Code:
<add name="CustConnectionString" connectionString="Data Source=custSQLServer; Port=1433; Initial Catalog=custDatabase; Persist Security Info=True; User ID=dbuser; Password=p@ssw0rd" providerName="System.Data.SqlClient" />

This is what generates the error.

Any ideas?

Thanks.

Steve
 
Back
Top