Solved

SQL 7.0 jobs failing

Posted on 2004-10-12
9
559 Views
Last Modified: 2008-02-01
SQL 7.0 scheduled jobs failing after installation of Symantec Corporate edition Antivirus 8.1.

Errors shown

'osql' is not recognized as an internal or external command,
operable program or batch file.
 
'findstr' is not recognized as an internal or external command,
operable program or batch file.
 
'bcp' is not recognized as an internal or external command,
operable program or batch file.

SQL is currently running on a Windows 2000 SP2 platform, which i do intend to upgrade to SP4.
0
Comment
Question by:Baron12
[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
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 9

Expert Comment

by:rherguth
ID: 12291498
It sounds like the path no longer contains the path to the SQL server binaries directory which ought to look something like:
C:\Program Files\Microsoft SQL Server\80\Tools\BINN;

You can fix this by:
1. right-clicking "My Computer"
2. selecting Properties from the menu
3. clicking the advanced tab
4. clicking the Environment Variables button
5. Scroll through the System Variables (Bottom window) looking for Path
6. Select the Edit button and make sure that the SQL Server path to the binaries is correctly typed
0
 
LVL 6

Expert Comment

by:Duane Lawrence
ID: 12291932
1.
Check the registry to see if the path to the dll is good.  BCP lives in

"C:\\WINNT\\TEMP\\_ISTMP1.DIR\\_ISTMP0.DIR\\FileGrp\\ntwdblib.dll"=dword:00000001

2.
Check the service pack level of MS SQL Server v7.0.  I found an unpatched MS SQL Server v 7.0 a couple of months back, it had some wierd errors similar to the ones you discribe.

0
 

Author Comment

by:Baron12
ID: 12296772
Thanks for the response,
 
Currently i cannot find either C:\\WINNT\\TEMP\\_ISTMP1.DIR\\_ISTMP0.DIR\\FileGrp\\ntwdblib.dll"=dword:00000001 (Where the path is ok until "C:\\WINNT\\TEMP\\_ISTMP1.DIR\". Plus i have checked System Variables and the is PATH: C:\MSSQL7\BINN not C:\Program Files\Microsoft SQL Server\80\Tools\BINN.

I forgot to mention that some SQL jobs are still running!!!

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 12296796
if you open the command prompt, and type osql or bcp, what is the return? An error (same as from job) or do the tools run correctly?
0
 

Author Comment

by:Baron12
ID: 12296809
SQL version running (7.00.961 December 15, 2000 SP3).
0
 

Author Comment

by:Baron12
ID: 12297254
When the commands are run from the command prompt they seem to work.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 12297288
can you try to use the full path instead of only bcp and osql?:

C:\MSSQL7\BINN\bcp ... etc

CHeers
0
 

Author Comment

by:Baron12
ID: 12298098
I have tried from the directory routes and they seem to work..
0
 
LVL 6

Accepted Solution

by:
Duane Lawrence earned 250 total points
ID: 12304435
Your path to MS SQL server 7 looks fine.

Your registry looks bad.

I think Installing the service pack will fix your registry settings.

Your in luck, there is a service pack 4.
7.00.1063       SQL Server 7.0 with SP4

Duane
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Special characters in a TCPDF 4 28
MySQL-Design Help 12 44
Options for Linking SQL tables to Access 2013 9 44
Dump data from mysql to xls php 10 25
Creating and Managing Databases with phpMyAdmin in cPanel.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

730 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