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
vsr_prasad
NA
6
0
reading a dataset
Nov 12 2004 2:14 AM
Hi, i have a function which returns a dataset. their after i need to read this dataset and fill the variables. my function: public DataSet SelectODBCData(string QueryString, string TableName) { DataSet ds = new DataSet(); OdbcDataAdapter ad = new OdbcDataAdapter(); try { ad.SelectCommand = new OdbcCommand(QueryString, WifiDbCon); if (TableName.Trim().Length > 0) ad.Fill(ds,TableName); else ad.Fill(ds); } catch (System.Exception e) { throw e; } return ds; } after this i did like this in my client procedure: SQLQuery = "Select taglabel from MSAssetTag where MAC = " + "'" + xml.Value + "'"; DataSet ds = new DataSet(); ds = SelectODBCData(SQLQuery,"MSAssetTag"); but from here how to read ds dataset to fill the variable 'TagLabel'?? help me please.. thanks., Prasad
Reply
Answers (
1
)
Open Connection using OLEDB
Format exception