teferi2002
Technical User
first off,I am just wondering if it is always the case to have the same name for datatable with
database table name.in my case datatable name is product and there is a table in the
database called products. what would happen if i give the dataTable a different name
second,can i construct a datatables from multiple database table for example select a, b, c
from a, b,c whre a=b and b=c something like this.
thanks
sub page_load
dim conNorhtwind as sqlConnection
dim daProducts as sqlDataAdapter
dtsProducts = new DataSet()
conNorthwind = new sqlConnection()
"server=localhost;database=Northwind;uid=sa;pwd=secrete")
dadProducts = new sqlDataAdapter("select top 10 * from products",conNorthwind)
dadProducts.fill(dstProducts,"products")
dgrdProducts.datasource=dstProducts
databind()
end sub
database table name.in my case datatable name is product and there is a table in the
database called products. what would happen if i give the dataTable a different name
second,can i construct a datatables from multiple database table for example select a, b, c
from a, b,c whre a=b and b=c something like this.
thanks
sub page_load
dim conNorhtwind as sqlConnection
dim daProducts as sqlDataAdapter
dtsProducts = new DataSet()
conNorthwind = new sqlConnection()
"server=localhost;database=Northwind;uid=sa;pwd=secrete")
dadProducts = new sqlDataAdapter("select top 10 * from products",conNorthwind)
dadProducts.fill(dstProducts,"products")
dgrdProducts.datasource=dstProducts
databind()
end sub