Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:12:19+00:00 2026-06-10T11:12:19+00:00

I try and run update scripts for my software in this format: osql.exe -i

  • 0

I try and run update scripts for my software in this format:

osql.exe -i “path\to\script” -U “user” -P “Password” -S “Location of sqlserver” -d “Database name” -n -b

Most of the scripts are in the same format and all end in GO. A lot of them run just fine, but all the time random scripts return an error and won’t run. The error is “Incorrect syntax near ‘∩’. on line 1. The script might be as simple as just an INSERT, but it is always this error. I can’t seem to find anything online that has been able to help me. Can anyone provide any insight?

The scripts run just fine manually. Also something interesting is if I create a new text document and paste the script in the new file and change it to the .sql and run that file then it works just fine. I’d just do this for all the ‘broken’ scripts, but it continues to happen to new ones and will happen on changed ones as well eventually.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:12:21+00:00Added an answer on June 10, 2026 at 11:12 am

    Most likely because the file is encoded as Unicode instead of UTF-8. You can check this out in Notepad++ among other free utilities. Try converting it to UTF-8 and see if that helps.

    UPDATE

    Correction: As the article linked in comments explains, osql can parse text files encoded as UTF-16 (Unicode 1200) or ‘ANSI’ (Windows-1252), but it cannot parse UTF-8 encoded files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to run this script i get error in IE: Unterminated string
When I try to run update a credit card type by passing in the
When I try to run any update query in Access 2007, I get the
I'm getting this error when I try run DB:Rake : ** Invoke db:migrate (first_time)
Update: It's not really necessary to remove added scripts considering once they run you
Is there a way to run the following script via PHP http://www.magentoadvisor.com/magento-backup/tutorial-magento-backup-scripts-part-2/ I have
When try to run my Rails application (either by running rake, ./script/console or ./script/server),
[first of all; i run linux opensuse 11.4 ] i try to run this
i am using PHP to run exec() on a script which looks like this:
I try run jconsole with jar that contains my classes like: cd C:\Program Files\Java\jdk1.6.0_26\bin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.