executing script from file and redirecting to file

  • I Used

    isql -Sdevserver -Usa -P123YY -IC:\test.sql -OC:\a.out

    the test.sql contant is

    use testdb

    go

    select name from sysobjects where type = 'U'

    go

    Could some one help me PLEASE.

    THANKS IN ADVANCE

  • Very close, try lower case -i, and lower case -o like this:

    isql -Sdevserver -Usa -P123YY -iC:\test.sql -oC:\a.out

    Gregory Larsen, DBA

    If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples

    Gregory A. Larsen, MVP

  • Thanks it works.

Viewing 3 posts - 1 through 2 (of 2 total)

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