Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: TEXT datat type for Stored Proc.


Message #1 by "Rizan" <rizan.rizvi@e...> on Tue, 27 Jun 2000 13:11:20
I have a text type field in a table.
I wrote a tored procedure to insert and update the tables record.
In the stored Procedure I accept the incomming parmeter as 
	@ParameterName_xxx text = null

Now I am finding a suitable datat type (for text data type parameter)  to 
be specified when calling this stroed proc.

Am I missing somethign out here ???

Rizan

SP sample


CREATE PROC usp_AddSubmission
	@LoginID		numeric,
	@AccessLevel		smallint,
	@CurrentDate		datetime	= NULL,
	@ParentUserID		numeric 	= 0,
	@Body			text		= NULL,	 -- PROBLEM IS HERE
	@Description		varchar(300)	= NULL,
	@Title			varchar(100)	= NULL,
	@Images		varchar(100)	= NULL,
	@CotergoryID		smallint 		= 0,

  Return to Index