J
Jeppe Dige Jespersen
I have the following:
___________________________________
Dim cmdSaveUser As New SqlCommand
cmdSaveUser.Connection = con 'con has been configured previously
cmdSaveUser.CommandType = CommandType.StoredProcedure
cmdSaveUser.CommandText = "spInsertUser"
cmdSaveUser.Parameters.Add("@FirstName", "Joe")
cmdSaveUser.Parameters.Add("@Navn", "Brown")
cmdSaveUser.Connection.Open
......
___________________________________
What happens is this: As soon as i .open the connection, it seems that the
command is fired. I don't want this to happen, as I want to call
executeScalar and get an object in return.
Any ideas?
Jeppe Jespersen
___________________________________
Dim cmdSaveUser As New SqlCommand
cmdSaveUser.Connection = con 'con has been configured previously
cmdSaveUser.CommandType = CommandType.StoredProcedure
cmdSaveUser.CommandText = "spInsertUser"
cmdSaveUser.Parameters.Add("@FirstName", "Joe")
cmdSaveUser.Parameters.Add("@Navn", "Brown")
cmdSaveUser.Connection.Open
......
___________________________________
What happens is this: As soon as i .open the connection, it seems that the
command is fired. I don't want this to happen, as I want to call
executeScalar and get an object in return.
Any ideas?
Jeppe Jespersen