Sequence to connect and retrieve data from database useig
dataset ?
Answer Posted / ashokdahiya
We r talking about vb.net not c# codding
system.data
system.data.sqlclient
dim con,s as string
con="Server=servername;database=name;uid=sa;pwd=;"
s="Select * from tablename"
dim ad as new sqldataadapter(s,con)
dim ds as dataset
ad.fill(ds)
dim dv as dataview= new dataview(ds.tables("tablename"))
dv.sort="Name desc"
listbox.datasource=ds
listbox.displayMember="Name"&"Age"&"sex"...
it will work fine thanx!
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
Define different execute methods of ADO.NET command object ?
What is the difference between ado.net and oledb?
Define Execute Scalar?
What are typed and untyped dataset?
Which database is the ado.net sql connection object designed for?
What is csdl entity framework?
What is ado asp?
How can we save all data from dataset?
How to check if the Dataset has records ?
What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
What is data adapter in ado.net with example?
What are the connected and disconnected modes in ado.net?
What is Data view?
Explain ado.net features? Benefits? Drawbacks?
What is command class in ado.net?