Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

 

<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

The three most important things in life: God, your family, and the Green Bay Packers -- Not necessarily in that order.

Winning is not a sometime thing. You don't win once in a while, you don't do things right once in a while, you do them right all the time. Winning is a habit. Unfortunately, so is losing.

-- Vincent T. Lombardi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...