Check you field type. nvarchar vs varchar and ntext vs text. If the field
types
in your tables are nvarchar or ntext I would expect other problems. However
you have your input vars defined as nvarchar in your stored procedure.
> @cfid nvarchar,
> @member_id nvarchar (50),
> @member_password nvarchar (10),
> @password_hint nvarchar (50)
but are passing -- cfsqltype="CF_SQL_VARCHAR"
CF is not happy with nvarchar and ntext.
Jeff Craig
----- Original Message -----
From: "Bill Killillay" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 7:46 PM
Subject: Stored Procedures??
> Can anybody see what I am doing wrong here? I am not getting any errors,
> but it's not updating either. On the SQL server I have the permissions
> execute box checked for the dbo user (the only user in there). This same
> exact task works just fine if I use a standard CFQUERY instead of the
method
> below.
>
> <!--- CF Code in Question --->
> <cfstoredproc procedure="update_member_id_and_pass"
> datasource="#request.maindsn#">
> <cfprocparam type="IN" dbvarname="@cfid" value="#Client.cfid#"
> cfsqltype="CF_SQL_VARCHAR">
> <cfprocparam type="IN" dbvarname="@member_id" value="#attributes.email#"
> cfsqltype="CF_SQL_VARCHAR">
> <cfprocparam type="IN" dbvarname="@member_password"
> value="#attributes.password#" cfsqltype="CF_SQL_VARCHAR">
> <cfprocparam type="IN" dbvarname="@password_hint"
> value="#attributes.pass_hint#" cfsqltype="CF_SQL_VARCHAR">
> </cfstoredproc>
>
>
>
> <!--- SQL Stored Procedure Code --->
> CREATE PROCEDURE update_member_id_and_pass
> (
> @cfid nvarchar,
> @member_id nvarchar (50),
> @member_password nvarchar (10),
> @password_hint nvarchar (50)
> )
> AS UPDATE member
>
> SET member_id = @member_id,
> member_password = @member_password,
> password_hint = @password_hint
> WHERE
> (
> cfid = @cfid
> )
>
>
> The syntax checker in the SQL SP builder says it's correct.
>
> Bill
>
> --------------------------------------------------------------------------
----
> 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.