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
Mobasir Hossain
NA
79
1.3k
Highest value reading Data Base Coloumn
May 24 2018 1:07 AM
Hello,
I am using bellow command to check max value of column .It works upto 10 after that it sends always 10 though my data base already increased upto 13 rows.
I also checked SELECT ISNULL (MAX(ID)+1,0)
SELECT ISNULL (MAX(ID),0)
Please suggest me what to do.
SqlCommand cmd = new SqlCommand("SELECT ISNULL (MAX(ID)+1,1) AS Result FROM CustomerDetail", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
id = dr[0].ToString();
id = (Convert.ToInt64(id) + 1).ToString();
}
}
Reply
Answers (
2
)
HttpModule supports for vb.net ???
Execute scalar c#