Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 适配器的事情让我很困惑。我同时得到了很多新信息。我很感激你简洁明了的回答。很高兴能帮上忙。作为一名新用户,我建议您也阅读 SqlQuery = "Update MasterVars set Active = 0 where PKEY = @key;" &a_Sql Server_Vb.net_Winforms - Fatal编程技术网

Sql server 适配器的事情让我很困惑。我同时得到了很多新信息。我很感激你简洁明了的回答。很高兴能帮上忙。作为一名新用户,我建议您也阅读 SqlQuery = "Update MasterVars set Active = 0 where PKEY = @key;" &a

Sql server 适配器的事情让我很困惑。我同时得到了很多新信息。我很感激你简洁明了的回答。很高兴能帮上忙。作为一名新用户,我建议您也阅读 SqlQuery = "Update MasterVars set Active = 0 where PKEY = @key;" &a,sql-server,vb.net,winforms,Sql Server,Vb.net,Winforms,适配器的事情让我很困惑。我同时得到了很多新信息。我很感激你简洁明了的回答。很高兴能帮上忙。作为一名新用户,我建议您也阅读 SqlQuery = "Update MasterVars set Active = 0 where PKEY = @key;" & _ "Insert into MasterVars (Vers, Testing, .....) VALUES (@p1, @o2, ....)" Using Conn = New SqlConnection("D


适配器的事情让我很困惑。我同时得到了很多新信息。我很感激你简洁明了的回答。很高兴能帮上忙。作为一名新用户,我建议您也阅读
SqlQuery = "Update MasterVars set Active = 0 where PKEY = @key;" & _
           "Insert into MasterVars (Vers, Testing, .....) VALUES (@p1, @o2, ....)"
Using Conn = New SqlConnection("Data Source=SQL01;......")
Using cmd = New SqlCommand(SqlQuery, Conn)
    Conn.Open()
    cmd.Parameters.Add("@key", SqlDbType.Int).Value = PKEY 
    cmd.Parameters.Add("@p1", SqlDbType.NVarChar).Value = vers 
    cmd.Parameters.Add("@p2", SqlDbType.Int).Value = testing
    ... and so on with other parameters .... 
    cmd.ExecuteNonQuery()
End Using
End Using