C操作SQLServer数据库培训教材.pptVIP

  • 1
  • 0
  • 约小于1千字
  • 约 21页
  • 2020-06-12 发布于天津
  • 举报
C#语言操作SQLServer数据库;;;;;;;;;;例1;;;例2;例3;;;;string StrUserName; string StrPassword; string StrEmployID; string SQLCommand = select * from Tab_Account; string Str_Connection = @Data Source=FIREFOX\SQLEXPRESS;Initial Catalog=mydatabase;Integrated Security=True; SqlConnection Sql_Connection = new SqlConnection(Str_Connection); Sql_Connection.Open(); SqlCommand Sql_Command = new SqlCommand(); Sql_Command.Connection = Sql_Connection; //Sql_Command = Sql_Connection.CreateCommand(); Sql_Command.CommandType = System.Data.CommandType.Text; Sql_Command.CommandText = SQLCommand; SqlDataReader reader = S

文档评论(0)

1亿VIP精品文档

相关文档