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
abhilash bc
NA
68
664
System.Data.SqlClient.SqlException:Incorrect syntax near '='
Dec 10 2015 3:31 AM
my code is
SqlConnection con = new SqlConnection(clsutilities.STRCONN);
con.Open();
string query = "SELECT Rating FROM UserRating3 where pid=" + @pid;
SqlCommand cmd = new SqlCommand(query, con);
//SqlCommand cmd = new SqlCommand("SELECT Rating FROM UserRating1 ",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
if (dt.Rows.Count > 0)
{
Reply
Answers (
3
)
What is difference between Static and Private Constructor?
How to get one column value base on one condition Using EF