What's wrong ...man...
From: Utada P.W. SIU (wing0508_at_hotmail.com)
Date: 05/19/04
- Next message: vishal subramaniam: "RE: setupsql.exe hangs. Cannot Install SQL server 2K"
- Previous message: Michael Cheng [MSFT]: "Re: Sql web services"
- Next in thread: Jeff: "RE: What's wrong ...man..."
- Reply: Jeff: "RE: What's wrong ...man..."
- Reply: Tim: "Re: What's wrong ...man..."
- Reply: Utada P.W. SIU: "Re: What's wrong ...man..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 May 2004 14:29:54 +0800
I am using stored procedure in my Visual Basic program
however, when I call it from program, it prompt me following error:
Run-time error '-2147217900 (80040e14)':
Syntax error or access violation
Here a piece of code in my vb program
'-- getConnection is a valid function that return a ADODB.Connection object
'-- getCommand also a valid function, xp_getExtractHistory is the stored
procedure name
Set connection = getConnection()
Set command = getCommand("xp_getExtractHistory", connection)
With command
.Parameters.Append .CreateParameter("@orderField", adVarWChar,
adParamInput, 20, order_by)
End With
And here have some piece of my sp program
CREATE PROCEDURE xp_getExtractionHistory
@orderField VARCHAR(20),
@sortOrder CHAR(1)
AS
:
:
what's wrong....thanks~
- Next message: vishal subramaniam: "RE: setupsql.exe hangs. Cannot Install SQL server 2K"
- Previous message: Michael Cheng [MSFT]: "Re: Sql web services"
- Next in thread: Jeff: "RE: What's wrong ...man..."
- Reply: Jeff: "RE: What's wrong ...man..."
- Reply: Tim: "Re: What's wrong ...man..."
- Reply: Utada P.W. SIU: "Re: What's wrong ...man..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|