Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cannot load data from database - error in simple small script

ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Incorrect syntax near '`'.

SQL

select `FirstName`, `LastName`

from `Person.Person`

where `FirstName` = 'Ken'

How do i make it work ?

SQL is -

select FirstName, LastName

from Person.Person

where FirstName = 'Ken'

1 Solution

Accepted Solutions
Not applicable
Author

Correct way is -

LOAD FirstName, LastName;

SQL SELECT FirstName, LastName

FROM AdventureWorks2008R2.Person.Person

WHERE FirstName = 'Ken';

View solution in original post

2 Replies
its_anandrjs

Write and try like

select `FirstName`, `LastName` where `FirstName` = 'Ken';

from `Person.Person`

Not applicable
Author

Correct way is -

LOAD FirstName, LastName;

SQL SELECT FirstName, LastName

FROM AdventureWorks2008R2.Person.Person

WHERE FirstName = 'Ken';