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
What are the Data providers in ADO.Net?
What are the key events of sqlconnection class?
What is the difference between Dataset. clone and Dataset.copy?
What providers does Ado.net uses?
What is difference between datareader and dataadapter?
What is maximum pool size in ado.net connection string?
What is ado net stands for?
What is partial class?
Which database is the ado.net sql connection object designed for?
What are the different ado.net namespaces are available in .net?
What is bubbled event?
Define isolation?
Describe the command object and its method.
What is ado and rdo?
Is it possible to edit data in Repeater control?