Unix Technical Forum

xp_cmdshell

This is a discussion on xp_cmdshell within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> I have a VB6 application that uses DSO to process olap databases. It was built to use command line ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:05 PM
chris trailer
 
Posts: n/a
Default xp_cmdshell

I have a VB6 application that uses DSO to process olap databases. It was
built to use command line parameters for execution.

I use xp_cmdshell to execute it through TSQL. In the test environment, it
works great. However in production, it doesn't. And even more strange is
that the exact same command line string works fine if I run it in the
command prompt on the production server. Any assistance would be greatly
appreciated.

SQL Code:

declare @rc int
declare @t varchar(500)

SET @t = '"C:\Program Files\Data Center\ETLOlapProcessor1.0.5.exe" /a
Complete'

EXEC @rc = xp_cmdshell @t, NO_OUTPUT


Error Info:
Error Source: DSO
Error Desc.: Object variable or With block variable not set



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:05 PM
chris trailer
 
Posts: n/a
Default Re: xp_cmdshell

Thanks for the response. However, the SQL Service runs under the system
account and the file has the same permissions has in test. The System
"user" on the file security is set to Full Control. Also, it does execute
through some of the code in the VB app... until it encounters the DSO
object.

Any more thoughts?

using W2K sp2, SQL2K ENT sp2





"Edgardo Valdez" <edgardovaldez@hotmail.com> wrote in message
news:065a01c34fdd$c581a300$a101280a@phx.gbl...
> I suspect permissions. Check permissions for the SQL user
> to execute or see the file on the specific folder.
>
>
> Edgardo Valdez
> MCSD, MCDBA, MCSE, MCSE+I
> Database Administrator
> http://www.edgardovaldez.us/
>
>
> >-----Original Message-----
> >I have a VB6 application that uses DSO to process olap

> databases. It was
> >built to use command line parameters for execution.
> >
> >I use xp_cmdshell to execute it through TSQL. In the

> test environment, it
> >works great. However in production, it doesn't. And

> even more strange is
> >that the exact same command line string works fine if I

> run it in the
> >command prompt on the production server. Any assistance

> would be greatly
> >appreciated.
> >
> >SQL Code:
> >
> >declare @rc int
> >declare @t varchar(500)
> >
> >SET @t = '"C:\Program Files\Data

> Center\ETLOlapProcessor1.0.5.exe" /a
> >Complete'
> >
> >EXEC @rc = xp_cmdshell @t, NO_OUTPUT
> >
> >
> >Error Info:
> >Error Source: DSO
> >Error Desc.: Object variable or With block variable not

> set
> >
> >
> >
> >.
> >



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com