Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2005, 01:27 AM
Authorized User
 
Join Date: Oct 2004
Location: Hyderabad, Andhra Pradesh, India.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to store ntext or text value to local variable

Hi,

My question is:

How to retrieve a value that comes from ntext or text fields and store them in a local variable for a Stored Procedure?

Table Description:

Id Int
Name varchar
Message ntext or text

Expecting for reply.

Ramkumar
__________________
Ramkumar A D
 
Old September 14th, 2005, 07:47 PM
Friend of Wrox
 
Join Date: Jan 2004
Location: , , USA.
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't do that..
I mean you can't set local variable values to text or ntext data type within stored procedure


 
Old September 14th, 2005, 07:58 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure I understand the question but a stored procecure can accept a text paramert if thats what your saying. I you send it a parameter it can use it within the procedure as a variable.

Is that what your asking? If so goto the SQL help files and look at stored procedure parameters. If thats not what you want please try to clarify your question.

 
Old September 14th, 2005, 07:59 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry for the typo (damn laptop keyboard) 'paramert' should have been 'parameter'





Similar Threads
Thread Thread Starter Forum Replies Last Post
access the local variable value out side ravi_sri24 XSLT 17 May 7th, 2008 08:43 AM
comapring global variable value to local variable amhicraig XSLT 6 December 5th, 2007 12:16 PM
Returning primary key into asp local variable! jowjow Oracle ASP 0 April 5th, 2006 09:06 AM
How to store single value in variable? sacred21 Classic ASP Basics 1 December 29th, 2004 05:25 AM
How to Search in nTEXT or TEXT field gaupa SQL Server 2000 1 December 21st, 2004 07:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.