Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 17th, 2006, 10:28 AM
Registered User
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to connect to ms sql 2000 via ip address


i wrote a small project, with asp.net2 and ms sql 2000, i was able to execute the project on my local iis, but when i uploaded to my online webspace its giving an error!

i want to find what should be in my connection string if i want to connect to a ms sql 2000 server which in online and has a static ip with port number.

Old October 18th, 2006, 02:13 AM
Authorized User
Join Date: Jul 2006
Location: Mumbai, , India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Try following connectionstring:

Dim Sqlconn = New SqlConnection
(1) Sqlconn = New SqlConnection("SERVER=ipaddress;UID=loginid;PWD=pw d;DATABASE=databasename")

Sqlconn = New SqlConnection("Data Source=ipaddress,1433;Network Library=DBMSSOCN;Initial Catalog=databasename;User Id=loginid;Password=pwd")

Hope this will help,

Also make <customErrors mode="Off" /> for the time being to get exact error message

Similar Threads
Thread Thread Starter Forum Replies Last Post
connect jdbc/odbc bridge to ms- sql server 2000 sushant2002 SQL Server 2000 0 July 3rd, 2007 08:28 PM
Database migration MS Access 2003 to MS SQL 2000 ayazhoda SQL Server 2000 3 April 23rd, 2007 11:38 AM
Connect SQL 2000 at home Jane SQL Server 2000 5 May 31st, 2006 10:17 AM
Connect to MSSQL using IP Address echovue PHP How-To 1 April 12th, 2006 03:15 AM
Retreiving IP address & gateway address sjangit VBScript 0 February 3rd, 2004 02:02 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.