Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...It is good to know that there are groups such as this willing to share knowledge in this money driven economy..."

Geography

Where in the world do Tek-Tips members come from?

Getting Server Does not Exist Error on SQL 2k DTS package running on SQL 2005

smatthews (IS/IT--Management)
3 Jul 12 9:23
Hello,

We recently upgraded from SQL2k to SQL2005 and our DTS packages, we have two, run fine when I run them right from the Legacy folder created when we converted them after the upgrade but fail when they run as a job. This is the error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. Error source: Microsoft OLE DB Provider for SQL Server

It gets an error when it gets moved to a staging area, here is the vbscript

Dim o ''As Scripting.FileSystemObject
Dim f ''As Scripting.File
Dim destinationFolder ''As Scripting.Folder
Dim t ''As Scripting.TextStream

Const LS_DESTINATION_FILENAME = "\\servername\d$\Inetpub\wwwroot\ourfolder\webdir\document.txt"
Const LS_SOURCE_FILENAME = "\\servername\data\InfoService\ASSOC\WebDir\Test\document.txt"

Set o = CreateObject("Scripting.FileSystemObject")

o.CopyFile LS_SOURCE_FILENAME, LS_DESTINATION_FILENAME, True

Set destinationFolder = o.GetFolder("\\servername\d$\Inetpub\wwwroot\ourfolder\webdir")
Set t = o.OpenTextFile("C:\myfile.txt", 8, -1)

For Each f In destinationFolder.Files
t.WriteLine f.Name
Next

SET o=nothing
SET f = Nothing
SET d = Nothing
SET t = Nothing


Thanks!
dhulbert (TechnicalUser)
3 Jul 12 10:12

The error you get isn't coming from this piece of script, once you've moved the files to the destination folder what's the next step?

I would guess thats where somethign actually refers to the SQL server.

The messhge you get is beacuse of the ODBC you use to connect to the server, this exists on your machine but whne the package is run as a job the ODBC won't exist on the server.

Have a look at the next step, find the ODBC connection then create it on the server.

I love deadlines. I like the whooshing sound they make as they fly by
Douglas Adams
(1952-2001)

smatthews (IS/IT--Management)
3 Jul 12 11:31
Thanks Doug. Working on it now. Will keep you posted.

Smatthews
smatthews (IS/IT--Management)
5 Jul 12 13:30
I added the ODBC connections that I was missing on the server from my workstation but I still get the same error.

They run on my workstation and the server when I run them from the Legacy folder but they won't run from either place when I run them through SQL Server Agent as a job.

Any other suggestions?

Thanks.

Smatthews
gmmastros (Programmer)
5 Jul 12 13:52
I have a hunch, but could be wrong, so...

Can you check something for me on your server?

Open the services control panel, scroll down to the SQL Server service. Right Click -> Properties, click "Log On" tab. What do you have it configured for?

Do the same thing for the SQL Server Agent service.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom

smatthews (IS/IT--Management)
5 Jul 12 14:27
Both are configured for This Account with the NetworkName\Administrator as the user.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close