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 is the difference between sqlcommand and sqldataadapter?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
Explain sqlconnection object?
Define data adapter?
What is oledb driver?
What are typed and untyped dataset?
What do you know about ado.net's objects?
Define table relations?
Explain the difference in an abstract class and an interface?
What are the data providers used in ado.net
Is it possible to load multiple tables in a Dataset?
What is the hierarchy of data in databases?
What is the difference between Data adaptor and Data set?
How to enable and disable connection pooling?
How can we add relation between tables in a dataset?