Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BCP won't run as a Service? Trying to Schedule BCP without the "AT"cmd

Status
Not open for further replies.

kbilling

Programmer
Joined
Mar 12, 2002
Messages
2
Location
US
I wrote a service that checks for a tag file with a date in it. I capture the date and then run a batch file to load the data in question. It works fine running from the "AT" service or a cmd window but not from my service. Tried everything with security and believe that's OK. However I found that a CMD.EXE window that is run from a service in Win2k SP2 doesn't pick up the system path when it starts. I wonder is anything else (like permissions) doesn't get inherited.
The load seems to go along fine and even makes the >>%log% file with all of the appropriate entries but then it must get an error and back out all of the new records because when it's done they are not there.

Thanks,
Kris L. Billingsley

Using SS7 sp2 with the BCP program from 6.5 due to date format issues.
 
DTS not nearly fast enough. I must load half million records each to 6 databases.!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top