adocmd = New OleDbDataAdapter(sql, "provider=SQLOLEDB; data source=(local); data base=C:\Program Files\Microsoft SQL Server\MSSQL\Data\0501127.mdf")
本地的话,可以省去data source=(local);
adocmd = New OleDbDataAdapter(sql, "provider=SQLOLEDB; data base=C:\Program Files\Microsoft SQL Server\MSSQL\Data\0501127.mdf")