using System;
using System.Data;
using System.Data.SqlClient;
namespace ConsoleApplication2
{
class Class1
{
static void Main(string[] args)
{
string abc="Initial Catolog=Northwind;Data Source=(local);User ID=sa;Password=sa";
SqlConnection tt=new SqlConnection(abc);
try
{tt.Open();
Sqlcommand a=new SqlCommand();
a.Connection=tt;…………
请教这上面两句是不是有错误?我写完a.后面没有出现可供选择的东西,何来的Connection=tt
但书上是那样写的,有谁懂的帮帮我这个菜鸟。谢谢了。