Torna al Thread

Dim MyConn As New SqlConnection Dim MyComm As New SqlCommand ...imposti la stringa di connessione e la apri se non è già aperta... MyComm.CommandText = Query MyComm.Connection = MyConn MyComm.ExecuteNonQuery() 'ExecuteNonQuery() è un metodo che si usa per le query che non fanno select e ti restituisce il valore delle righe interessate (anche se nell'esempio qui non assegno questo valore a nessuna variabile)
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5