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
Nepethya Rana
NA
335
152k
I do not know why do not get data back - Ado.net
Jun 30 2017 3:03 PM
My sqlQuery = string sql = "SELECT StoreType from location where locationId in (@pRowValue) order by region, district, locationId";
This is my code:
string storeNum = "";
foreach (DataRow row in dt.Rows)
{
storeNum += row["store"] + ",";
//storeNum += string.Format(@"'{0}',", row["store"]);
}
storeNum = storeNum.Remove(storeNum.LastIndexOf(','));
SqlDataAdapter da = new SqlDataAdapter(sql, con);
da.SelectCommand.Parameters.AddWithValue("@pRowValue", storeNum);
da.Fill(dtStoreType);
but I do not get any records back?
Reply
Answers (
3
)
What is the difference between file structure and storage
Auto calculation in Datatable