Incorrect syntax

Posted on 2012-08-17
Last Modified: 2012-08-17
I am inserting an SQL query I found online to create a user, to a program that runs on SQL databases. The passwords have been lost to this program that is why I am trying to run the query. Here is my code and error.  I am using SQL server 2008

INSERT INTO [dbo].[OrionUsers]
(Name, AuthURI, Admin, Disabled, Visible, Interactive, Removable, Editable)
VALUES (‘epoadmin’,'auth:pwd?pwd=7LTSeirrzM8EjqttaozV4cSiPGQWi8w3',1,0,1,1,1,1)

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '‘'.
Msg 105, Level 15, State 1, Line 3
Unclosed quotation mark after the character string 'auth:pwd?pwd=7LTSeirrzM8EjqttaozV4cSiPGQWi8w3',1,0,1,1,1,1)
Question by:LIBBB
    LVL 13

    Accepted Solution

    It looks like your single quotes have changed.  Delete them and retype them in.  All 4 of them, though I think its just the ones on the 2nd field (AuthURI)

    Author Closing Comment

    Worked perfect, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now