Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

dts login failure

Posted on 2007-04-10
11
Medium Priority
?
798 Views
Last Modified: 2008-01-09
I have a DTS package which truly has been working error free for more than a year.  Last night it fails, wit this error:  

DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_1
DTSRun OnError:  DTSStep_DTSExecuteSQLTask_1, Error = -2147467259 (80004005)
   Error string:  Cannot open database requested in login 'DBNAME'. Login fails.
   Error source:  Microsoft OLE DB Provider for SQL Server
   Help file:  
   Help context:  0
Error Detail Records:
Error:  -2147467259 (80004005); Provider Error:  4060 (FDC)
   Error string:  Cannot open database requested in login 'DBNAME'. Login fails.
   Error source:  Microsoft OLE DB Provider for SQL Server
   Help file:  
   Help context:  0
DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_1
Error:  -2147220440 (80040428); Provider Error:  0 (0)
   Error string:  Package failed because Step 'DTSStep_DTSExecuteSQLTask_1' failed.
   Error source:  Microsoft Data Transformation Services (DTS) Package
   Help file:  sqldts80.hlp
   Help context:  700

Absolutely nothing has been changed in the package, or in any fo the sql config / settings. the job is just a basic loop and load...going to a remote destination, retrieving files and loading them.   i'm wondering if something's been changed on one of the resources to which sql is connecting to retrieve the files that are being loaded.  i am checking that, but i'd also like to know, where is this login specified?  surely i did it, i just don't know where, and i'd like to see if there's a problem there.  the login reported in the error log...where is this actually specified to the package?


this i very important, i do appreciate any insight
thank you much
0
Comment
Question by:dbaSQL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
11 Comments
 
LVL 18

Expert Comment

by:Sham Haque
ID: 18881906
can you run the package successfully manually, rather than as a schedule?
if so, then the finger of blame is pointing to the RunAs user specified in the scheduled job
0
 
LVL 18

Accepted Solution

by:
Sham Haque earned 1400 total points
ID: 18881931
>>the login reported in the error log...where is this actually specified to the package?

if you open your package in Design mode: Enterprise Manager > (your db) > Data Transformation Services > Local Packages, and right-click your package and choose "Design Package"

From there, your server connection will be a grey server box - right-click and choose Properties, and the login details are specified there...
0
 
LVL 17

Author Comment

by:dbaSQL
ID: 18881985
no, gbshahaq, i cannot run it manually or via the agent secheduler
and, the server connection specified there is windoes authentication -- my account and the login which sql server svc is running under, are admins on the box.
i guess i am going to change it to run as sa, but still, what puzzles me is the fact that nothing has been changed on the sql config, system security and/or dts package configuration.
what do you think could cause this?
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 17

Author Comment

by:dbaSQL
ID: 18882013
and, having changed it to sa, the package still fails at the same step, with the same failure message:

output                                                                                                                                                              ---------------------------------------------------------------------------------------------------------------------------
DTSRun:  Loading...
DTSRun:  Executing...
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_1
DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_1
DTSRun OnStart:  DTSStep_DTSActiveScriptTask_2
DTSRun OnFinish:  DTSStep_DTSActiveScriptTask_2
DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_1
DTSRun OnError:  DTSStep_DTSExecuteSQLTask_1, Error = -2147467259 (80004005)
   Error string:  Cannot open database requested in login 'DBNAME'. Login fails.
   Error source:  Microsoft OLE DB Provider for SQL Server
   Help file:  
   Help context:  0
Error Detail Records:
Error:  -2147467259 (80004005); Provider Error:  4060 (FDC)
   Error string:  Cannot open database requested in login 'DBNAME'. Login fails.
   Error source:  Microsoft OLE DB Provider for SQL Server
   Help file:  
   Help context:  0
DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_1
Error:  -2147220440 (80040428); Provider Error:  0 (0)
   Error string:  Package failed because Step 'DTSStep_DTSExecuteSQLTask_1' failed.
   Error source:  Microsoft Data Transformation Services (DTS) Package
   Help file:  sqldts80.hlp
   Help context:  700
(null)
0
 
LVL 18

Expert Comment

by:Sham Haque
ID: 18882016
you say "going to a remote destination" - is this set up as a linked server?
everything is all SQL Server - or other data sources?
0
 
LVL 17

Author Comment

by:dbaSQL
ID: 18882052
naah.... it's all sql.  my files are found at a location on a sql box, then loaded to another sql box
and, the sql server svc account, and my login, are admins across the board
this really puzzles me, as nothing has been changed at all.  or, at least nothing that i am aware of.  obviously, something has been altered somewhere.  why else would i suddently start failing w/login failures?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 18884070
>>this really puzzles me, as nothing has been changed at all.<<
You have mentioned this a number of times.  You need to get out of that rut.  Accept the fact that something has in fact changed or you would not have the problem, let alone posting a question here.  Not start thinking where it could have changed.  Execute one task after the other until you find the culprit.  You can then find out what permissions are missing.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 18884076
"Not start thinking... " -- > "Now start thinking... "
0
 
LVL 17

Author Comment

by:dbaSQL
ID: 18884400
very, very odd.  way back when i first created this task, i had two other connections in there, basically idle now, but they were created on my workstation where the task orginated.  when i deployed to prod, i was only using the two prod connections (one sql and one text file).  anyway, so last friday i do some cleanup on my workstations.  dropping a few dbs, bringing all the code up to speed...you know, that sort of thing.  that is what caused this problem.  i find it very odd, as those two cxns were not part of the file transfer/load process at all.  but, i guess maybe they were active connections and possibly the connection was made maybe upon each invokation of the task.  hard to say.  but, when i blew out those two un-used/old connections, the package is now working just fine.

you two ok if i split the points between you both ?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 18886547
Yes.  Even though they are not in any workflow they will be used.  Always make a habit of deleting any orphaned connections, especially before deploying to a production environment.

>>you two ok if i split the points between you both ?<<
Just award points to gbshahaq
0
 
LVL 17

Author Comment

by:dbaSQL
ID: 18888647
Alright, AC, and yes, I agree w/you.  I need to make it a point to ensure there are no orphaned connections.... well before i deploy to production.

Thank you both very much.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question