473,320 Members | 2,094 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,320 software developers and data experts.

SQLDMO - Operating System Cannot Run %1

I have code that instantiates a sqlserver object and starts a job. I
have used this on numerous XP workstations successfully, when I tried
to move this to a Windows 2000 Application Server attached to a Small
Business Windows 2003 network and run the code, I am receiving the
error:

Automation Error. The Operating System Cannot Run %1.
(Error Number -2147024714)

The following is a code snippet:

*********
Dim app As New SQLDMO.Application
Dim oSQLServer As New SQLDMO.SQLServer
Dim oJob As SQLDMO.Job

oSQLServer.LoginTimeout = 30 ' ERROR OCCURS HERE
oSQLServer.LoginSecure = True
**********

The code fails when setting the LoginTimout parameter. The SQLDMO.dll
has been registered successfully on the server.

Any ideas whey the behavior of this code is different on my application
server vs the client workstations on the network?

Thanks

Mike G

Jul 23 '05 #1
2 8733
As an addendum:

I had a batch program that copied certain dlls to directories on my
local machine. All of the XP machines utilized the directory
c:\windows\System32. The server however utilized the directory
c:\WINNT\System32. Hence, my batch file was failing to copy over some
of the pertinent batch files ( I had hardcoded the path instead of
using system variables). In any event, this got me through the issue
of setting parameters on the SQLServer object. However, when I tried
to use the connect method (oSqlServerObject.Connect "<Server Name>",
"Login ID>","<Password>") I am now getting the error message
[Microsoft][ODBC SQL Server Driver]Invalid attribute/option identifier.
Using intellisense, I am definitely sending the connect method the
proper parameters, and, as I mentioned before, it works on my XP
desktops. Any ideas? Thanks.

Jul 23 '05 #2
I ended up going back and installing MDAC 2.8 on the application
server. This must have resolved an issue with one of the dependent dll
files. My application works fine now.

Jul 23 '05 #3

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

Similar topics

2
by: John Dalberg | last post by:
I have an application that's giving an error during installation. "Error 1935. An error occured during the installation of assembly interop.sqldmo, version 8.0.0.0, PublicKeyToken........" I am...
1
by: | last post by:
Hi all My requirement is to "on button_click, backup a SQL database using SQLDMO.Backup object and update the progress in a ProgressBar. The problem is the progress bar does not update at all...
2
by: | last post by:
Hi all, continued from yesterday's posting... I still haven't found a solution to this issue. I put a breakpoint in private void SqlBackupPercentComplete(string message, int Percent) {...
1
by: | last post by:
Hi all I am posting this to check if anyone could help me. The problem still persists. I am beginner in C#. Thanks. Subject: SQLDMO.Backup and ProgressBar - help please From: ...
6
by: Henry Padilla | last post by:
I am trying to use SQLDMO in C# and it's a nightmare. Any examples, suggestions, is there a different (managed) way to do this that I don't know about? Thanks for the help. Tom Padilla
2
by: Neo Chou | last post by:
Greetings! I'm converting a project written in VC6 to VS.NET 2003. When I built the solution that was generated automatically from VC6 workspace (.dsw), some errors occurred. "sqlole.h",...
0
by: Craig G | last post by:
i have a small application that uses the SQLDMO com object when i build a setup package to distribute it adds both the Interop.SQLDMO.dll assembly & sqldmo.dll File the problem is that the...
3
by: Zack Sessions | last post by:
I am using VB.NET 2003. I found the following sample code here in an article: Dim oSQLServerDMOApp As New SQLDMO.Application Dim i As Integer Dim namX As SQLDMO.NameList namX =...
1
by: PJHORNSA | last post by:
Hi all, I want to create a backup of a database using SQLDMO in C#. But I keep on getting a exception. If anyone can help me by providing code for this, it would be appreciated. Thanks in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.