OSQL problem

  • I'm trying to write an osql script using xp_cmdshell. The test script that i'm trying out is:

    exec xp_cmdshell 'osql -Q "select * from sysobjects" '

    According to the books on line this should work. However, i'm getting and error which is:

    PASSWORD:

    [Shared Memory]SQL Server does not

    exists or access is denied

    [Shared Memory]ConnectionOpen (Connect()).

    NULL.

    I was wondering if anyone can help me out.

    Thank you

    RICHARD KIRMSS


    RICHARD KIRMSS

  • I've tried it both ways using the -E and the -U/-P options. I also have administrative rights so this should not be a problem. Through all this I still get the same errors. Any thoughts?

    Thanks

    RICHARD KIRMSS


    RICHARD KIRMSS

  • Oh jesus, allah, baghwan and all gods!

    Why are u going in for to go out and come back through the hintertür?

    *neverunderstandsuchpeople*

    yours

    walter

    jflksdjlk


    jflksdjlk

  • Oh jesus, allah, baghwan and all gods!

    Why are u going in for to go out and come back through the hintertür?

    *neverunderstandsuchpeople*

    yours

    walter

    jflksdjlk


    jflksdjlk

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply