473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some comments on DTS package


On quick observation, it seems to me DTS has a strange way to
interprete File System. ENV: NT OS, SQL Server 2000.
When a data import package (source point to c:\XYZdir) is executed at
EM level, sql server seems to think the "c:\XYZdir" is the current
user's "c:\XYZdir", however, if the same package is scheduled as a job
and executed as a job, then, sql server seems to think the "c:\XYZdir"
is THE SQL SERVER INSTALLTION MACHINE's C:\XYZdir. It's quite
inconsistent. Please let me know your finding about this.

Also, I use ActiveX scripts to perform exception handing (error
checking) for certain transaction. For instance before a package
imports a file an ActiveX script checks source file's existence and
format, if not as expected halt here (not to execute the package).
Now, the two cases of (a) file not exist; and (b) incorrect file format
can't be determined by not running the package. Probably, the ActiveX
script should capture each case by creating a record/row during the
file checking. What's your thought?
TIA.

Jul 23 '05 #1
4 1248
It wouldn't suprise me. I've had similar findings with other aspects of
DTS. For example, we had differing versions of MDAC on the server and
my development PC. It was enough of a difference to stop our package
working (connection string differences). From what I understand, DTS
uses the local user's settings if you run it manually as it knows you
have run the package, but when you run it as a scheduled job, the
server is the one that calls the job (not a user) and it therefore uses
the settings, files and permissions of the server as it can't determine
which user's settings it 'should' be using, this makes sense for it to
run as the server. It is consistent though. UNC paths should work fine
if you can use these or re-look at the specifics of what you want to
achieve. There may be some helpful stuff on www.sqldts.com

HTH

Ryan

Jul 23 '05 #2
On 20 Dec 2004 13:42:58 -0800, NickName wrote:
When a data import package (source point to c:\XYZdir) is executed at
EM level, sql server seems to think the "c:\XYZdir" is the current
user's "c:\XYZdir", however, if the same package is scheduled as a job
and executed as a job, then, sql server seems to think the "c:\XYZdir"
is THE SQL SERVER INSTALLTION MACHINE's C:\XYZdir. It's quite
inconsistent.


It's totally consistent. You give it an absolute path with a C: in it, it
uses an absolute path with a C: in it. When you execute immediately using
EM, the job is run using your credentials on your machine. When you
schedule it, it's run using the sql agent's credentials on the sql agent's
machine.

By way of analogy, if a .BAT file contained

FORMAT C:

would you expect it to always format the C drive of the person who wrote
it, no matter where the batch file was being run? Of course not. It would
format the local C: drive.
Jul 23 '05 #3
Good point on UNC.

Jul 23 '05 #4
And actually l was using that after the conventional drive pointer's
negative experience.

Jul 23 '05 #5

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

Similar topics

5
2800
by: C. Barnes | last post by:
Hi, I'm in the process of writing a Python linear algebra module. The current targeted interface is: http://oregonstate.edu/~barnesc/temp/linalg/ The interface was originally based on...
11
3113
by: David | last post by:
Comments on a program called PHP Page Generator? ( http://www.phppagegenerator.com) I received a email offer of $100 and the product appears to allow quick generation of code for SQL web...
8
1977
by: Will Pittenger | last post by:
I have a Windows program C# .NET solution where when I update its XML documentation, some tags are not recognized and turned into the corresponding HTML. Those tags include <c>, <code>, <para>,...
4
1844
by: Shiraz | last post by:
Hi I just made an installer package for an application in .NET which also uses COM dlls. It seems to work fine on my machine but when tried it on a co-worker's machine, the application installs,...
2
1381
by: Mythran | last post by:
I have asked this question here before but was given an answer I didn't like (stubborn I am!). I believe the way my question was interpreted was not as I had hoped...so I am trying again. In...
17
1551
by: Luke Matuszewski | last post by:
Hi ! Simple question (but thus it may appear no simple answer): If i putting a script onto the page i simply could inline it in <script> element or via its src attribute so (second way): <script...
56
4155
by: richard | last post by:
So I wrote PyPI back a couple of years ago. It was just a simple cgi script and some distutils code. I needed to call it *something* and "Python Package Index" seemed like a fairly obvious name....
15
5446
by: I. Myself | last post by:
This is about reading the .ini files which are used in several of our projects. Currently, the actual read of each line of the file is with this statement: fscanf(file, "%s %s", name, value);...
1
1616
by: Luciano A. Ferrer | last post by:
Wich script package do you recommend me? The goal is to build a site for news/articles, using categories, with comments by users... and maybe a forum I was thinking on xoops, but what about...
0
7260
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
7537
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...
1
7099
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
5685
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,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.