TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
PankaJ D
NA
154
0
Error in SQL CODE
Mar 7 2011 2:11 AM
When I execute this code Syntax error is occured.
declare
@category
varchar
(
40
);
declare
@cat
varchar
(
40
);
SET
@category
=
'MotorCycle / ATV Audio(0)';
SET
@cat
=
SELECT
LEFT(
''''
+
@category
+
''
,
CHARINDEX
(
'('
,
''''
+
@category
+
''
)-
1
)
Incorrect syntax near the keyword 'SELECT',
Reply
Answers (
3
)
Create a copy of database
store procedure