Showing posts with label connecting. Show all posts
Showing posts with label connecting. Show all posts

Thursday, March 29, 2012

DTS Select using record position

Hi there, it has been a while since i have posted. I am in a
situation where I am stumped. I am learning to build a dts package
where I am connecting to a table in an AS400. This database is being
maintained by an outsourced company and therefore I can't change the
table structure or even ask them to. Anyway, this table currently has
about 104,000 records. I am building a package to check it and pull
out the most recent records and put them where they go in my SQL
Server 2000 tables. The only way I can think of to get the most
recent records is to use a global variable in the package to remember
the record count and then get those records from that record position
on. Problem is, I have no idea how I would go about selecting records
from a record position. Does anybody have any ideas or should I be
using a different approach? There are no time stamps to work from. I
was told that the AS400 records, including updates, are appended to
the table, which is why I thought this approach made sense. I would
truly appreciate any help.phantomtoe@.yahoo.com (Rowan) wrote in message news:<4bbf8d70.0403031553.6e5f7de7@.posting.google.com>...
> Hi there, it has been a while since i have posted. I am in a
> situation where I am stumped. I am learning to build a dts package
> where I am connecting to a table in an AS400. This database is being
> maintained by an outsourced company and therefore I can't change the
> table structure or even ask them to. Anyway, this table currently has
> about 104,000 records. I am building a package to check it and pull
> out the most recent records and put them where they go in my SQL
> Server 2000 tables. The only way I can think of to get the most
> recent records is to use a global variable in the package to remember
> the record count and then get those records from that record position
> on. Problem is, I have no idea how I would go about selecting records
> from a record position. Does anybody have any ideas or should I be
> using a different approach? There are no time stamps to work from. I
> was told that the AS400 records, including updates, are appended to
> the table, which is why I thought this approach made sense. I would
> truly appreciate any help.

How would you know where the recorded position is? Does the AS/400
have a row number field, or something similar? And what happens if
rows are deleted in the source table?

Assuming that the AS/400 table has a primary key, then you might be
able to create a linked server from your MSSQL server, and then use a
query like this to insert all the rows which don't exist:

insert into dbo.MyTable (col1, col2, ...)
select col1, col2, ...
from AS400...Table t
where not exists (select * from dbo.MyTable mt
where mt.PrimaryKey = t.PrimaryKey)

Updates would be more difficult, as you'd need to have some way of
identifying the rows which have been modified. You might want to
consider looking at heterogeneous replication for this, so that
changes on the AS/400 are automatically replicated to the SQL Server,
although you would probably need a third-party tool for this.

Simon

Friday, March 9, 2012

DTS Package - Destination server is now off domain.

Okay, I figured it out (right after I made my post). The issue was
that my connection in the DTS package was connecting to the database
that I was trying to drop. I changed it to default to the master
database and it worked fine.
Thank You,
Jeremy
jbiros wrote:
> We have a DTS package that refreshes our external website data on a
> nightly basis. I recently moved our external website off of our
> domain. The SQL Services were previously running as
> DOMAIN\Administrator account. When I moved the server off of the
> domain, I reinstalled SQL Server and set the services to run as a
> local, non-administrative account, MACHINE\sqlservices. The reason I
> did this is, if someone were to compromise the machine via the SQL
> Services, they would not have administrative access to the machine.
> Now, my DTS package fails. I have been reading many posts on the
> Internet to try to understand why the package fails, but I have not
> been able to figure it out. When it fails, I am logged into the
> Internal machine as DOMAIN\Administrator. The owner of the package is
> also DOMAIN\Administrator.
> Step 1: (succeeds) - sp_UserKill. This procedure kills all SPIDs with
> the specified database (DATABASENAME). It appears to be successful.
> Step 2: (fails) - drop database DATABASENAME. This fails with the
> following message: "Cannot drop the database 'DATABASENAME' because it
> is currently in use." Checking enterprise manager, it does not appear
> to be in use. I've cycled the SQL Services and rerun with no luck.
> I have a feeling that this is an issue with security, but I can't
> figure it out. Can someone please assist me?
> Thank you in advance.
> JeremyWe have a DTS package that refreshes our external website data on a
nightly basis. I recently moved our external website off of our
domain. The SQL Services were previously running as
DOMAIN\Administrator account. When I moved the server off of the
domain, I reinstalled SQL Server and set the services to run as a
local, non-administrative account, MACHINE\sqlservices. The reason I
did this is, if someone were to compromise the machine via the SQL
Services, they would not have administrative access to the machine.
Now, my DTS package fails. I have been reading many posts on the
Internet to try to understand why the package fails, but I have not
been able to figure it out. When it fails, I am logged into the
Internal machine as DOMAIN\Administrator. The owner of the package is
also DOMAIN\Administrator.
Step 1: (succeeds) - sp_UserKill. This procedure kills all SPIDs with
the specified database (DATABASENAME). It appears to be successful.
Step 2: (fails) - drop database DATABASENAME. This fails with the
following message: "Cannot drop the database 'DATABASENAME' because it
is currently in use." Checking enterprise manager, it does not appear
to be in use. I've cycled the SQL Services and rerun with no luck.
I have a feeling that this is an issue with security, but I can't
figure it out. Can someone please assist me?
Thank you in advance.
Jeremy|||Okay, I figured it out (right after I made my post). The issue was
that my connection in the DTS package was connecting to the database
that I was trying to drop. I changed it to default to the master
database and it worked fine.
Thank You,
Jeremy
jbiros wrote:
> We have a DTS package that refreshes our external website data on a
> nightly basis. I recently moved our external website off of our
> domain. The SQL Services were previously running as
> DOMAIN\Administrator account. When I moved the server off of the
> domain, I reinstalled SQL Server and set the services to run as a
> local, non-administrative account, MACHINE\sqlservices. The reason I
> did this is, if someone were to compromise the machine via the SQL
> Services, they would not have administrative access to the machine.
> Now, my DTS package fails. I have been reading many posts on the
> Internet to try to understand why the package fails, but I have not
> been able to figure it out. When it fails, I am logged into the
> Internal machine as DOMAIN\Administrator. The owner of the package is
> also DOMAIN\Administrator.
> Step 1: (succeeds) - sp_UserKill. This procedure kills all SPIDs with
> the specified database (DATABASENAME). It appears to be successful.
> Step 2: (fails) - drop database DATABASENAME. This fails with the
> following message: "Cannot drop the database 'DATABASENAME' because it
> is currently in use." Checking enterprise manager, it does not appear
> to be in use. I've cycled the SQL Services and rerun with no luck.
> I have a feeling that this is an issue with security, but I can't
> figure it out. Can someone please assist me?
> Thank you in advance.
> Jeremy

DTS Package

Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
Cindy
Try using a UNC path name to the file rather than a mapped
network drive...e.g.
\\ServerName\ShareName\date_from_country
In terms of the rest of your question, I'm not clear how you
are running the package. In terms of where you run it, that
depends. When you run a package manually, it runs under your
security context and from your PC. If you schedule it on
your PC, it runs from your PC and under the security context
you set in the scheduler. If you run it as a scheduled job
on SQL Server, it runs under the security context of the SQL
Agent service account (if the job is owned by a sysadmin)
and from the server.
For all of those different scenarios, you'd really want to
be using a UNC path as finding the file won't be dependent
on a profile's mapped drive, it won't matter if you execute
it from your machine or the server, etc.
In terms of the security issues, that will depend on the
security context used based upon how you are executing the
package. It sounds like you have permissions to the file. If
you schedule the package to run as a job on SQL Server, then
the SQL Agent service account will need to be a domain
account with appropriate permissions, access to the server
and file.
-Sue
On Fri, 20 Aug 2004 09:33:33 -0500, "Cindy"
<cindyhe@.bonestroo.com> wrote:

>Hi All,
>I created a SQL Server DTS package when connecting to the SQL server on my
>machine. We have a batch file created which was scheduled to run every Tue.
>night on the server where SQL server really sits. In the batch file, we use
>dtsrun to call this package. It has been running well. I shut my computer
>down this Tue. after work. I got an error message from running the package.
>Step Error Source: Microsoft JET Database Engine
>Step Error Description:'I:\68\data_from_county' is not a valid path. Make
>sure that the path name is spelled correctly and that you are connected to
>the server on which the file resides.
>Step Error code: 80004005
>Step Error Help File:
>Step Error Help Context ID:5003044
>Should the package be run on the server? It should have nothing to do with
>my computer, right? I got very confused. Any help will be greatly
>appreciated.
>Cindy
>

DTS Package

Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
CindyDTS is a client side software. When invoked from Enterprise Manager on a
client, the package actually runs on the client PC. When invoked from a job,
it runs on the server side.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
Cindy|||Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>|||If u call it from a batch file, and the batch file is on your machine, then
the package will run on your machine, not server.
To make sure the package runs on the server, schedule it using an SQL Agent
job.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:O2O12YshEHA.1276@.TK2MSFTNGP09.phx.gbl...
Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>|||> To make sure the package runs on the server, schedule it using an SQL
Agent
> job.
Or, a windows scheduled task *on the server* calling a batch file *on the
server*...
The advantage this /could/ have is that the scheduled task could be run as a
different user than the SQL Agent service account...
A|||We have a windows scheduled task on the server calling a batch file on the
server. This is exactly what you mentioned here.
Will who owns this package make any difference or is it an issue that we
should take into account? Should I change the package owner to dbo?
Cindy
"Aaron [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:eGP93gshEHA.4064@.TK2MSFTNGP12.phx.gbl...
> Agent
> Or, a windows scheduled task *on the server* calling a batch file *on the
> server*...
> The advantage this /could/ have is that the scheduled task could be run as
a
> different user than the SQL Agent service account...
> A
>

Wednesday, March 7, 2012

DTS Package

Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
Cindy
DTS is a client side software. When invoked from Enterprise Manager on a
client, the package actually runs on the client PC. When invoked from a job,
it runs on the server side.
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
Cindy
|||Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>
|||If u call it from a batch file, and the batch file is on your machine, then
the package will run on your machine, not server.
To make sure the package runs on the server, schedule it using an SQL Agent
job.
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:O2O12YshEHA.1276@.TK2MSFTNGP09.phx.gbl...
Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>
|||> To make sure the package runs on the server, schedule it using an SQL
Agent
> job.
Or, a windows scheduled task *on the server* calling a batch file *on the
server*...
The advantage this /could/ have is that the scheduled task could be run as a
different user than the SQL Agent service account...
A
|||We have a windows scheduled task on the server calling a batch file on the
server. This is exactly what you mentioned here.
Will who owns this package make any difference or is it an issue that we
should take into account? Should I change the package owner to dbo?
Cindy
"Aaron [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:eGP93gshEHA.4064@.TK2MSFTNGP12.phx.gbl...
> Agent
> Or, a windows scheduled task *on the server* calling a batch file *on the
> server*...
> The advantage this /could/ have is that the scheduled task could be run as
a
> different user than the SQL Agent service account...
> A
>

DTS Package

Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
CindyDTS is a client side software. When invoked from Enterprise Manager on a
client, the package actually runs on the client PC. When invoked from a job,
it runs on the server side.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
Cindy|||Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>|||If u call it from a batch file, and the batch file is on your machine, then
the package will run on your machine, not server.
To make sure the package runs on the server, schedule it using an SQL Agent
job.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Cindy" <cindyhe@.bonestroo.com> wrote in message
news:O2O12YshEHA.1276@.TK2MSFTNGP09.phx.gbl...
Thanks for the quick response.
We have a batch file which calls to run this package on the server. Should
it run on the server side as you said? If so, it should have nothing with my
computer, right?
Cindy
"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in message
news:uvn14PshEHA.632@.TK2MSFTNGP12.phx.gbl...
> DTS is a client side software. When invoked from Enterprise Manager on a
> client, the package actually runs on the client PC. When invoked from a
job,
> it runs on the server side.
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
>
> "Cindy" <cindyhe@.bonestroo.com> wrote in message
> news:uIkoZNshEHA.3988@.tk2msftngp13.phx.gbl...
> Hi All,
> I created a SQL Server DTS package when connecting to the SQL server on my
> machine. We have a batch file created which was scheduled to run every
Tue.
> night on the server where SQL server really sits. In the batch file, we
use
> dtsrun to call this package. It has been running well. I shut my computer
> down this Tue. after work. I got an error message from running the
package.
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'I:\68\data_from_county' is not a valid path. Make
> sure that the path name is spelled correctly and that you are connected to
> the server on which the file resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
> Should the package be run on the server? It should have nothing to do with
> my computer, right? I got very confused. Any help will be greatly
> appreciated.
> Cindy
>
>
>|||> To make sure the package runs on the server, schedule it using an SQL
Agent
> job.
Or, a windows scheduled task *on the server* calling a batch file *on the
server*...
The advantage this /could/ have is that the scheduled task could be run as a
different user than the SQL Agent service account...
A|||We have a windows scheduled task on the server calling a batch file on the
server. This is exactly what you mentioned here.
Will who owns this package make any difference or is it an issue that we
should take into account? Should I change the package owner to dbo?
Cindy
"Aaron [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:eGP93gshEHA.4064@.TK2MSFTNGP12.phx.gbl...
> > To make sure the package runs on the server, schedule it using an SQL
> Agent
> > job.
> Or, a windows scheduled task *on the server* calling a batch file *on the
> server*...
> The advantage this /could/ have is that the scheduled task could be run as
a
> different user than the SQL Agent service account...
> A
>

DTS Package

Hi All,
I created a SQL Server DTS package when connecting to the SQL server on my
machine. We have a batch file created which was scheduled to run every Tue.
night on the server where SQL server really sits. In the batch file, we use
dtsrun to call this package. It has been running well. I shut my computer
down this Tue. after work. I got an error message from running the package.
Step Error Source: Microsoft JET Database Engine
Step Error Description:'I:\68\data_from_county' is not a valid path. Make
sure that the path name is spelled correctly and that you are connected to
the server on which the file resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Should the package be run on the server? It should have nothing to do with
my computer, right? I got very confused. Any help will be greatly
appreciated.
CindyTry using a UNC path name to the file rather than a mapped
network drive...e.g.
\\ServerName\ShareName\date_from_country
In terms of the rest of your question, I'm not clear how you
are running the package. In terms of where you run it, that
depends. When you run a package manually, it runs under your
security context and from your PC. If you schedule it on
your PC, it runs from your PC and under the security context
you set in the scheduler. If you run it as a scheduled job
on SQL Server, it runs under the security context of the SQL
Agent service account (if the job is owned by a sysadmin)
and from the server.
For all of those different scenarios, you'd really want to
be using a UNC path as finding the file won't be dependent
on a profile's mapped drive, it won't matter if you execute
it from your machine or the server, etc.
In terms of the security issues, that will depend on the
security context used based upon how you are executing the
package. It sounds like you have permissions to the file. If
you schedule the package to run as a job on SQL Server, then
the SQL Agent service account will need to be a domain
account with appropriate permissions, access to the server
and file.
-Sue
On Fri, 20 Aug 2004 09:33:33 -0500, "Cindy"
<cindyhe@.bonestroo.com> wrote:

>Hi All,
>I created a SQL Server DTS package when connecting to the SQL server on my
>machine. We have a batch file created which was scheduled to run every Tue.
>night on the server where SQL server really sits. In the batch file, we use
>dtsrun to call this package. It has been running well. I shut my computer
>down this Tue. after work. I got an error message from running the package.
>Step Error Source: Microsoft JET Database Engine
>Step Error Description:'I:\68\data_from_county' is not a valid path. Make
>sure that the path name is spelled correctly and that you are connected to
>the server on which the file resides.
>Step Error code: 80004005
>Step Error Help File:
>Step Error Help Context ID:5003044
>Should the package be run on the server? It should have nothing to do with
>my computer, right? I got very confused. Any help will be greatly
>appreciated.
>Cindy
>

DTS not connecting to oracle

It tells me client for Oracle not installed. I found an installation of the
client but it's 200MB!!! Is this really it?!!
tia
ZarkoYou need to install Oracle ODBC connectivity on the box(es) that connect to
Oracle. I think it is called SQL *NET ?
--
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"®arko Jovanoviæ" <zarko.jovanovic_protiv_spama_@.fina.hr> wrote in message
news:1071583104.91341@.internet.fina.hr...
> It tells me client for Oracle not installed. I found an installation of
the
> client but it's 200MB!!! Is this really it?!!
> tia
> Zarko
>|||reinstall oracle client and make sure you can TNSPING the oracle server you want to connect to...
tnsping servername
>--Original Message--
>You need to install Oracle ODBC connectivity on the box
(es) that connect to
>Oracle. I think it is called SQL *NET ?
>-- >--
>Allan Mitchell (Microsoft SQL Server MVP)
>MCSE,MCDBA
>www.SQLDTS.com
>I support PASS - the definitive, global community
>for SQL Server professionals - http://www.sqlpass.org
>
>"=AEarko Jovanovi=E6" <zarko.jovanovic_protiv_spama_@.fina.hr> wrote in message
>news:1071583104.91341@.internet.fina.hr...
>> It tells me client for Oracle not installed. I found an installation of
>the
>> client but it's 200MB!!! Is this really it?!!
>> tia
>> Zarko
>>
>
>.
>