473,378 Members | 1,343 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,378 software developers and data experts.

Start database ved AT.exe

jj
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb" (I
activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj
May 24 '06 #1
11 1851
* jj:
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb" (I
activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj


This is a complete guess, but maybe worth a try. Put the TestDB.mdb in
a directory. (c:\temp\TestDB.mdb). Maybe the Scheduler has trouble
writing to C:\. That would explain why it works for a logged in user.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
May 24 '06 #2
jj
Thanks Randy

Unfortunately it doesn't work :-(

/Jj
"Randy Harris" <pl****@send.no.spam> skrev i en meddelelse
news:dn*******************@newssvr13.news.prodigy. com...
* jj:
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj


This is a complete guess, but maybe worth a try. Put the TestDB.mdb in a
directory. (c:\temp\TestDB.mdb). Maybe the Scheduler has trouble writing
to C:\. That would explain why it works for a logged in user.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.

May 25 '06 #3
> "C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file


Try to change that line in the batch file, preceding it with the CALL batch
statement.

--
PBsoft di Gabriele Bertolucci
www.pbsoft.it
skype: pbsoftsolution
May 25 '06 #4
Yes, Access does not work well with AT.

Either use a different scheduler (which will allow
you to run as a full user), or don't use Access.

Speaking of which, why open a GUI using a scheduler?

You probably want to script DAO or ADO, not Access.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb" (I
activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj

May 25 '06 #5
jj
Hi david

I need to start a database every night, which (when activated) opens another
database and calls a module where some data is imported calculated etc. Here
after the second database is closed, and compressed by the first database,
which is then closed.

When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.

I have also tried to use VB NT service, but again i have problems activating
the database.

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en meddelelse
news:44***********************@lon-reader.news.telstra.net...
Yes, Access does not work well with AT.

Either use a different scheduler (which will allow
you to run as a full user), or don't use Access.

Speaking of which, why open a GUI using a scheduler?

You probably want to script DAO or ADO, not Access.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj


May 25 '06 #6
jj
Hi

Thanks for your answer, but I'm not sure what you mean - do you mean That I
should just write: call "C:\Programmer\Microsoft
Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
Instead of
"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
?

/jj
"PBsoft" <in**@REMOVEpbsoft.it> skrev i en meddelelse
news:87**************************@news.tin.it...
"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file


Try to change that line in the batch file, preceding it with the CALL
batch statement.

--
PBsoft di Gabriele Bertolucci
www.pbsoft.it
skype: pbsoftsolution

May 25 '06 #7
> Thanks for your answer, but I'm not sure what you mean - do you mean
That I
should just write: call "C:\Programmer\Microsoft
Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
Instead of
"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
?


Yes.

--
PBsoft di Gabriele Bertolucci
www.pbsoft.it
skype: pbsoftsolution
May 25 '06 #8
> When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.
Yes, Access requires that a specific user is logged on. You can't
use AT because it does not provide that capability.

It sounds like you should be using DAO or ADO/ADOX to import,
calculate, and compress.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. .. Hi david

I need to start a database every night, which (when activated) opens
another database and calls a module where some data is imported calculated
etc. Here after the second database is closed, and compressed by the first
database, which is then closed.

When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.

I have also tried to use VB NT service, but again i have problems
activating the database.

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en
meddelelse news:44***********************@lon-reader.news.telstra.net...
Yes, Access does not work well with AT.

Either use a different scheduler (which will allow
you to run as a full user), or don't use Access.

Speaking of which, why open a GUI using a scheduler?

You probably want to script DAO or ADO, not Access.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj



May 26 '06 #9
jj
Hi David

Thanks for your answer. I'm not realy sure what you mean - can you specify
it a little bit, or give me a hint to where I can find some examples.?

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en meddelelse
news:44***********************@lon-reader.news.telstra.net...
When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.


Yes, Access requires that a specific user is logged on. You can't
use AT because it does not provide that capability.

It sounds like you should be using DAO or ADO/ADOX to import,
calculate, and compress.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi david

I need to start a database every night, which (when activated) opens
another database and calls a module where some data is imported
calculated etc. Here after the second database is closed, and compressed
by the first database, which is then closed.

When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.

I have also tried to use VB NT service, but again i have problems
activating the database.

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en
meddelelse news:44***********************@lon-reader.news.telstra.net...
Yes, Access does not work well with AT.

Either use a different scheduler (which will allow
you to run as a full user), or don't use Access.

Speaking of which, why open a GUI using a scheduler?

You probably want to script DAO or ADO, not Access.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi Ng

When I use the AT.exe to schedule a job and I write:
at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.

In the bat file I have wrote:

copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
C:\testfolder)

Then when I Change the test.bat file to:

"C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
(I activate the test database) - This doesn't work!!!!

It works when I double click the bat-file

TIA
jj



May 26 '06 #10
you might check out workspace and opendatabase in the help...

May 26 '06 #11
for example, using VBS

dim dbe
dim db
set dbe = createobject("dao.dbengine.36")
set db = db.opendatabase("a.mdb")
db.Execute "MyAppendQuery"
dbe.CompactDatabase "a.mdb","b.mdb"

(david)
"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi David

Thanks for your answer. I'm not realy sure what you mean - can you specify
it a little bit, or give me a hint to where I can find some examples.?

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en
meddelelse news:44***********************@lon-reader.news.telstra.net...
When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.


Yes, Access requires that a specific user is logged on. You can't
use AT because it does not provide that capability.

It sounds like you should be using DAO or ADO/ADOX to import,
calculate, and compress.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
Hi david

I need to start a database every night, which (when activated) opens
another database and calls a module where some data is imported
calculated etc. Here after the second database is closed, and compressed
by the first database, which is then closed.

When I schedule it from windows scheduler it works fine, but this method
requires that a specific user is logged on.

I have also tried to use VB NT service, but again i have problems
activating the database.

/jj
"david epsom dot com dot au" <david@epsomdotcomdotau> skrev i en
meddelelse news:44***********************@lon-reader.news.telstra.net...
Yes, Access does not work well with AT.

Either use a different scheduler (which will allow
you to run as a full user), or don't use Access.

Speaking of which, why open a GUI using a scheduler?

You probably want to script DAO or ADO, not Access.

(david)

"jj" <jj@get2net.dk> wrote in message
news:44*********************@dread11.news.tele.dk. ..
> Hi Ng
>
> When I use the AT.exe to schedule a job and I write:
> at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect.
>
> In the bat file I have wrote:
>
> copy c:\TestDB.mdb c:\testfolder (I copy the Test database from C to
> C:\testfolder)
>
> Then when I Change the test.bat file to:
>
> "C:\Programmer\Microsoft Office\OFFICE11\msaccess.exe" "C:\TestDB.mdb"
> (I activate the test database) - This doesn't work!!!!
>
> It works when I double click the bat-file
>
> TIA
> jj
>
>



May 27 '06 #12

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

Similar topics

0
by: Jagdip Singh | last post by:
Hi all, I wanted to created sample database and issued db2sampl command which gave me error SQL1032N No start database manager command was issued. SQLSTATE=57019 I issued db2start command to...
0
by: R.Freitag | last post by:
Hi all, i installed a DB2 on a win XP machine. I gave the command db2start. The return: The command cannot be executed, because the command db2start has not been executed yet. sqlstate...
3
by: alan_sec | last post by:
Hi everybody, i need some help please. I have installed DB2 UDB 7.2 on Windows and created database and it worked fine (i could access it from control centar nad using eclipse plug-in...
4
by: Jeff | last post by:
Hi - I'm building a VB.NET Windows application with an MSDE database. Anticipating the possibility that the MSDE service may have been stopped outside of my app, I'm trying to code a way to...
4
by: jbaron | last post by:
I have just successfully installed DB2 8.2 under SLES8.2 and when trying to create a new database I get the following error: db2inst1@pjbrlnx:~> db2start SQL6036N START or STOP DATABASE MANAGER...
0
by: serge | last post by:
I have 2 SQL Enterprise Editions running SP2 and same collation. When i try to start database mirroring I get the following error message: "The remote copy of database "ABC" has not been...
2
by: anujs | last post by:
Hi members, Please let me know how to solve the problem while initializing the DB2. the message is - IBM] SQL1032N No start database manager command was issued. SQLSTATE=57019.
0
by: kally | last post by:
Hi, I tried to do ML_upgradation for aix server...but when db2 guys tried to start the service its ending up with error...i have pasted the error below..could anybody suggest me on this..pls ...
3
by: Ivan Delic | last post by:
Hi all! This is my first email message about DB2 Universal database so don't mind if it looks like confusion. Recently I have installed DB2 UDB (Try and by Version) on my OS. It is, as follows ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.