ciao!
vorrei capire come fare, con questa select
a vedere se un valore proveniente da un form (o via get) è già presente in tabella. Se non è presente, lo inserisco (classica INSERT INTO...) altrimenti mostro un messaggio di errore.codice:SqlDataAdapterTransID.SelectCommand.CommandText = "SELECT TOP 1 * FROM tabella WHERE id = ' valore_form '" SqlDataAdapterTransID.Fill(DataSetTransID)
![]()

Rispondi quotando