sql = "SELECT DISTINCT AgentName FROM Agent "
command = New SqlCommand(sql, connection)
reader = command.ExecuteReader()
While reader.Read()
cboAgentName.Items.Add(reader(0))
End While
reader.Close()
Tag : .NET, Ms SQL Server 2008, VB.NET, VS 2010 (.NET 4.x)