you need to declare your variable @theaddr varchar(48) before the 'AS'
statement in your SP.
>From the snippet, it looks like you declared it after.
Tim
>From: Steve Weiner <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Stored Procedures
>Date: Mon, 11 Sep 2000 13:14:20 -0400
>
>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.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
------------------------------------------------------------------------------
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.