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
mjsnow
NA
3
0
SqlDataAdapter Not working with parameters from C#
Apr 4 2005 1:45 PM
Hi, I build a SqlDataAdaptor in VS2003 and I am trying to get a set of records from a table using a stored procedure. I have tested the stored procedure and it generates the correct data. I have also tested the dataadaptor and it seems to work just fine. However, when I work it from C# I get an empty dataset. (Also, the dataset was built using VS as well). Here is the code. Can any one tell me what is wrong here? this.sqlDataAdapter3.SelectCommand.Parameters["@NameID"].Value = 1; this.sqlDataAdapter3.Fill(dsDNames); foreach(DataRow row in dsDNames.TraningDates.Rows) { Console.WriteLine(row[1]); }
Reply
Answers (
2
)
VERY basic one..
Selecting All Numeric Values With Query String