Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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 November 4th, 2004, 05:21 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Gaz LG Danha
Default Connection Error over WAN

I keep getting the following Error when trying to access the SQL db over a WAN, (though it does work on some computers):

Number:- 2147467259
Description: (DBNMPNTW) Specified SQL server not found.
Source: Microsoft OLE DB Provider for SQL Server.

My application is running as a separate exe on individual computers across the WAN, all connectiong to a SQL server computer. I found that by cahanging my connectionstring from this:

.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=dbname;Data Source=servername"

to:

.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=dbname;Data Source=server ip address"

I connected without any problems and the connection proved to be quicker. However today this doesn't seem to be the case.
Anyone


It Ends Here
__________________
It Ends Here





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Error asters .NET Framework 1.x 3 April 4th, 2008 12:46 AM
Connection Error kingroon Classic ASP Basics 3 January 10th, 2008 08:48 PM
Connection Error zaghmout ASP.NET 2.0 Professional 3 October 31st, 2007 01:55 AM
connection error janees ASP.NET 2.0 Professional 1 March 2nd, 2007 02:26 PM
Connecting To DataBase in WAN simsimlhr C# 3 March 29th, 2004 04:41 PM





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