combo boxes and datasources???
I am using VB.NET and SQL Server. I have created a store procedure (getcompany) in SQL Server that gets one column of information from a table. i was to link this store procedure outcome to a combo box in a form. This is the code to get the store procedure:
Dim strcon As String = "data
source=BFS1;database=BS2;uid=sa;pwd=vonag340;"
Dim myadapter As New SqlClient.SqlDataAdapter("getcompany", strcon)
Dim ds As New DataSet
myadapter.SelectCommand.CommandType = CommandType.StoredProcedure
myadapter.Fill(ds, "output")
how do i link this to combobox1???
Thanks