Forum: VB.NET |
Thema:
AW: AW: AW: VB 2005: String in Wert |
Von:
Bernhard Grojer (
02.08.2006 00:18) |
Stored Procedure hat das nix zum tun!
http://www.galileocomputing.de/openbook/asp/asp120003.htm
Dim strSQL as String
strSQL = "Insert INTO Stundensatz (IDMa, StdSatz) VALUES (@IDMa, @StdSatz)"
Dim myConnection As New SqlConnection(myConnString)
Dim myCommand as New SqlCommand(strSQL, myConnection)
myCommand.parameters.addwithvalue("@IDMa", hier_kommt_der_wert)
myCommand.parameters.addwithvalue("@StdSatz", hier_kommt_der_wert2
myCommand.executeNonQuery()
Ich hab das jetzt aus dem Kopf raus getippt. Ansonst schau mal kurz in google falls die Syntax nicht 100% richtig ist!
Betreff |
Von |
Datum |
|
|
a
b
|
02.08.2006 08:15 |
|
|
Bernhard
Grojer
|
02.08.2006 08:37 |
|
|
a
b
|
03.08.2006 16:30 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!