Re: xp_cmdshell and vb programs and SQL Server 2000

From: Alex (anonymous_at_discussions.microsoft.com)
Date: 03/02/04


Date: Tue, 2 Mar 2004 14:31:58 -0800

VB can be launched from batch and terminates without user
interaction. Executed from the desktop. Only hangs if
executed from xp_cmdshell even using a batch or without a
batch. Even putting CMD /C in the batch to force it to
terminate after executing. This has been working on a
Windows NT with SQL 7. Not working on SQL2000 and Windows
2000 Server. Tested on SQL2000 and Windows NT. Does not
work in that combination either. One more combination to
try. SQL7 and Windows 2000 Server.

>-----Original Message-----
>Can you launch your VB within a batch file and it
successfully terminates
>without user-interaction.
>
>--
>-oj
>http://www.rac4sql.net
>
>
>"Alex" <anonymous@discussions.microsoft.com> wrote in
message
>news:2dc101c3fcc7$3cb915c0$a301280a@phx.gbl...
>> The VB does open a form, but does not need user
>> interaction to terminate. The MSSQLSERVER service
account
>> is not set to LocalSystem. Is this the service account
you
>> are referring to?
>>
>>
>>
>> >-----Original Message-----
>> >This is generally if the program tries to open some
>> window... Perhaps the
>> >service account on your SQL2 is LocalSystem and it is
>> configured to
>> >"interact with Desktop"?
>> >
>> >--
>> >Tibor Karaszi, SQL Server MVP
>> >Archive at:
>> >http://groups.google.com/groups?
>> oi=djq&as_ugroup=microsoft.public.sqlserver
>> >
>> >
>> >"Alex" <anonymous@discussions.microsoft.com> wrote in
>> message
>> >news:0f7d01c3fb4b$03790e50$a301280a@phx.gbl...
>> >> Does anyone have any issues with xp_cmdshell with SQL
>> >> Server 2000 on Windows 2000 Server? The vb program
runs
>> >> but does not end properly. In other words, the task
>> >> manager shows the vb program hanging there. The same
>> >> program that shells out of SQL Server 7 on Windows NT
>> has
>> >> no problem. It's not a permissions issue either.
dir.exe
>> >> works. xp_sqlagent_proxy_account is set. Program is
>> >> running but does not terminate. Program does run and
>> >> terminate if run from the DOS prompt. Any clues?? I
am
>> in
>> >> the process of installing a SQL Server 7 on a Windows
>> 2000
>> >> Server to see if the shell works with the program
there.
>> >
>> >
>> >.
>> >
>
>
>.
>



Relevant Pages

  • Re: Problem when executing application from batch file
    ... My batch file has 4 lines. ... > Apparently this is only supported in XP and most likely Windows 2000. ... >>> returned immediately before they finished executing. ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem when executing application from batch file
    ... I think that your app maybe ... If you see 4 copies of the MsgBox, then the batch file is executing as ... >> Apparently this is only supported in XP and most likely Windows 2000. ...
    (microsoft.public.vb.general.discussion)
  • Re: xp_cmdshell and vb programs and SQL Server 2000
    ... xp_cmdshell seems more particular than SQL 7. ... >VB can be launched from batch and terminates without user ... >terminate after executing. ...
    (microsoft.public.sqlserver.programming)
  • Re: Automated script to backup IE favorites?
    ... Diego - disregard last message I got it! ... If you don't want to use a batch file, ... you have to create a GPO to run the batch or WSH script on user logoff ... MS MVP Windows - Internet Explorer ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: digital pictures: reordering and renaming (in a different way)
    ... While searching google no how to use the batch mode in picasa, I discovered that Windows XP also has the feature to do this. ... this is a surprise for me actually that this dragging and dropping files to order them and then to rename them in a batch mode was more easily accomplised in Windows than in Linux. ... I have discovered that there is krename in KDE which can rename selected files. ...
    (Debian-User)