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 ole in excel?
What is the difference between sqldatareader and sqldataadapter?
Give an example that shows how to execute a stored procedure in ado.net?
What is untyped dataset?
What is command class in ado.net?
What is the functionality of data provider in ado.net?
What is difference between datagridview and datagrid control in winforms?
Explain how to pass multiple tables in datasets simultaneously?
What is the full form of ado.net?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What is the difference between Command and CommandBuilder object?
What is a datagridview?
What do you know about ado.net's objects?
What is ado.net components?
What is the default provider in ado.net?