For one you need to add a # sign after #form.addr.
The other things is that your parameter name must match the name use in the
Stored Proc.
@testaddr must be @theaddr
<cfstoredproc procedure="test1" datasource="test" returncode="Yes">
<cfprocparam type="In"
cfsqltype="CF_SQL_CHAR"
dbvarname="@testaddr"
value="#form.addr">
<cfprocresult name="checkmaster">
</cfstoredproc>
Steve Weiner <[EMAIL PROTECTED]> on 09/11/2000 01:14:20 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc: (bcc: Jerry Tolentino/SIAC)
Subject: Stored Procedures
Can anyone give me a clue here? I've just started working with SQL 7.0 and
stored procedures.
My stored procedure code is as follows:
declare @theaddr varchar(48)
select * from master where addr like '%@theaddr%'
My cold fusion code is as follows:
<cfstoredproc procedure="test1" datasource="test" returncode="Yes">
<cfprocparam type="In"
cfsqltype="CF_SQL_CHAR"
dbvarname="@testaddr"
value="#form.addr">
<cfprocresult name="checkmaster">
</cfstoredproc>
My error is as follows:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure test1 has no
parameters and arguments were supplied.
----------------------------------------------
Can anyone point me in what I am doing wrong?
Thanks,
[EMAIL PROTECTED]
---------------------------------------------------------------------------
---
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
---------------------------------------------------------------------------
---
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.