473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

LoadFromSQLServer - 'Specified SQL server not found'

I am trying to start a remote DTS package from code and I am getting the
following error:

Description='[DBNETLIB][ConnectionOpen (Connect()).]Specified SQL server not
found.'
Error=-2147467259'
Source='Microsoft OLE DB Provider for SQL Server'

When I run the code from the local machine it works perfectly fine. Anyone
got any ideas?

The code (C# .Net) is shown below:

object obj = new object();
int intCookie;
cpPoint.Advise(PES, out intCookie);
pkg.LoadFromSQLServer(DtsSettingsSection.Server,
DtsSettingsSection.Username,
DtsSettingsSection.Password,

DTSSQLServerStorageFlags.DTSSQLStgFlag_Default,
"",
"",
"",
DtsSettingsSection.Package,
ref obj);

// The real work is done here...
pkg.Execute();
pkg.UnInitialize();
--
Cheers

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
Nov 16 '05 #1
1 3173
Hi

The message is probably correct! The server is not reachable from the where
you are running it from. Check that the network configuration allows access,
e.g if a firewall is blocking the port you are using and that the host is
"visable" from the server, and that you have the appropriate client libraries
configured.

John

"Ollie Riches" wrote:
I am trying to start a remote DTS package from code and I am getting the
following error:

Description='[DBNETLIB][ConnectionOpen (Connect()).]Specified SQL server not
found.'
Error=-2147467259'
Source='Microsoft OLE DB Provider for SQL Server'

When I run the code from the local machine it works perfectly fine. Anyone
got any ideas?

The code (C# .Net) is shown below:

object obj = new object();
int intCookie;
cpPoint.Advise(PES, out intCookie);
pkg.LoadFromSQLServer(DtsSettingsSection.Server,
DtsSettingsSection.Username,
DtsSettingsSection.Password,

DTSSQLServerStorageFlags.DTSSQLStgFlag_Default,
"",
"",
"",
DtsSettingsSection.Package,
ref obj);

// The real work is done here...
pkg.Execute();
pkg.UnInitialize();
--
Cheers

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jdionne | last post by:
I have a VB.NEt Winform app deplyed on ServerA. I have a DTS package on ServerB. When I try to load the package with: package.LoadFromSQLServer(serverB, uid, pwd,...
1
by: Corobori | last post by:
I have got an XP machine where I have installed a SQL Server for my testing. I recently started working on a vb.net project requiring MSDE. After executing the Setup, made using Install Shield,...
0
by: Ludvig | last post by:
Hi We where attacked by hackers, somehow. After kicking them out of the server, and cleaning up the mess, we can't connect to SQL. System.EnterpriseServices.Platform.Initialize() +503...
0
by: thatrickguy | last post by:
Hi everyone. I am developing on a Windows XP sp2 machine with VS.Net 2002 installed. Windows firewall is disabled. I have a Windows 2k Server sp4 with IIS 5 and VS.Net 2002 installed....
0
by: drewmania001 | last post by:
When trying to setup relplication for SQL i am getting the following error. "The system cannot find the path specified" The problem is when trying to run: sp_adddistributiondb line 434:...
1
by: Allan Ebdrup | last post by:
I have a asp.net v2 website that runs fine on our development server. I have published the website to a stage server and it runs fine, but when I publish it to production I get the following error:...
2
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
3
ashsa
by: ashsa | last post by:
Hi We have a job scheduled every morning 03:00 which has been running for years without any issue. However, it failed today saying in the log that LoadFromSQLServer failed. The work of the job is...
4
by: yogarajan | last post by:
The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.