Click here to Skip to main content
16,014,589 members
Home / Discussions / Database
   

Database

 
GeneralRe: Datasets - Totally Stumped - Am I stupid or something? Pin
david@mindplay.com21-Oct-04 12:22
david@mindplay.com21-Oct-04 12:22 
GeneralRe: Datasets - Totally Stumped - Am I stupid or something? Pin
Colin Angus Mackay21-Oct-04 12:28
Colin Angus Mackay21-Oct-04 12:28 
GeneralRe: Datasets - Totally Stumped - Am I stupid or something? Pin
david@mindplay.com21-Oct-04 12:43
david@mindplay.com21-Oct-04 12:43 
GeneralCheck hardware status Pin
unambiguos20-Oct-04 6:41
unambiguos20-Oct-04 6:41 
Generalproblem with execute storedproc Pin
Anonymous19-Oct-04 23:41
Anonymous19-Oct-04 23:41 
Generalolapcubebrowser Pin
Yulianto.19-Oct-04 19:36
Yulianto.19-Oct-04 19:36 
Generalrestricted data type attribute violation Pin
Tom Wright19-Oct-04 12:09
Tom Wright19-Oct-04 12:09 
GeneralStored Procedure Pin
cooldev19-Oct-04 11:55
cooldev19-Oct-04 11:55 
Can anyone help me determine why I am getting the error "Object must implement IConvertible" when I execute the stored procedure? Below is the code. I have checked the stored procedure, database table column datatype and the sqldbtype and they are identical. So I am a little lost here. Any assistance is greatly appreciated.:

objConn.open
objCom = New SqlCommand("UPLOAD_A", objConn)
objCom.CommandType = CommandType.StoredProcedure

With objCom.Parameters
.Add("@col1", SqlDbType.Decimal, 9)
.Add("@col2", SqlDbType.Decimal, 5)
.Add("@col3", SqlDbType.VarChar, 6)
.Add("@Count", SqlDbType.Int)
End With

With objCom
.Parameters("@col1").Value = dt.Columns(0)
.Parameters("@col1").Precision = 11
.Parameters("@col1").Scale = 2
.Parameters("@col2").Value = dt.Columns(1)
.Parameters("@col2").Precision = 5
.Parameters("@col2").Scale = 4
.Parameters("@col3").Value = dt.Columns(2)
.Parameters("@Count").Direction = ParameterDirection.Output
End With

If objCom.ExecuteNonQuery() > 0 Then
'uploaded records
Dim iCount As Integer
iCount = objCom.Parameters("@Count").Value
Console.WriteLine(iCount)
Console.ReadLine()
Return True
Else
Return False
End If
GeneralRe: Stored Procedure Pin
Colin Angus Mackay20-Oct-04 5:30
Colin Angus Mackay20-Oct-04 5:30 
GeneralRe: Stored Procedure Pin
cooldev20-Oct-04 5:34
cooldev20-Oct-04 5:34 
GeneralSQL Server access across a network Pin
StephenMcAllister19-Oct-04 9:55
StephenMcAllister19-Oct-04 9:55 
GeneralRe: SQL Server access across a network Pin
Colin Angus Mackay19-Oct-04 11:28
Colin Angus Mackay19-Oct-04 11:28 
GeneralRe: SQL Server access across a network Pin
ramkylaks19-Oct-04 12:51
ramkylaks19-Oct-04 12:51 
GeneralRe: SQL Server access across a network Pin
StephenMcAllister19-Oct-04 16:20
StephenMcAllister19-Oct-04 16:20 
GeneralRe: SQL Server access across a network Pin
Mekong River19-Oct-04 16:40
Mekong River19-Oct-04 16:40 
GeneralRe: SQL Server access across a network Pin
ramkylaks20-Oct-04 13:34
ramkylaks20-Oct-04 13:34 
GeneralRe: SQL Server access across a network Pin
DreadPirateRoberts27-Oct-04 7:42
DreadPirateRoberts27-Oct-04 7:42 
GeneralODBC DNS connection to Access database Pin
rb15719-Oct-04 8:56
rb15719-Oct-04 8:56 
GeneralRe: ODBC DNS connection to Access database Pin
Tom Wright19-Oct-04 12:17
Tom Wright19-Oct-04 12:17 
GeneralRe: ODBC DNS connection to Access database Pin
Mekong River19-Oct-04 16:41
Mekong River19-Oct-04 16:41 
GeneralRe: ODBC DNS connection to Access database Pin
rb15719-Oct-04 20:25
rb15719-Oct-04 20:25 
GeneralRe: ODBC DNS connection to Access database Pin
rb15719-Oct-04 20:26
rb15719-Oct-04 20:26 
GeneralMessage Removed Pin
18-Oct-04 21:25
Andres Coder18-Oct-04 21:25 
GeneralRe: Creating a dynamic database (and tables) Pin
Michael Potter19-Oct-04 4:59
Michael Potter19-Oct-04 4:59 
GeneralWHERE caluse on derived column Pin
Christian Graus17-Oct-04 15:26
protectorChristian Graus17-Oct-04 15:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.