... Creating a Command Object Using Visual Studio .NET To create a SqlCommand object using Visual Studio .NET (VS .NET), you drag a SqlCommand object from the ... query using the Add Table dialog Next, you construct your query using Query Builder. You select the columns you want to retrieve here. Add the CustomerID, CompanyName, and ContactName columns using ... Figure 8.1: A SqlCommand object in a form You then set the Connection property for your sqlCommand1 using the drop-down list to the right of the Connection property in the Properties window. You...