CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 2/23/2007 12:21:32 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
KenA
Asp.Net User
AddParameter method for sqlServer TEXT field type2/23/2007 12:21:32 AM

0/0

Hi,

Normally I use the following method to add parameters:

oDb = DatabaseFactory.CreateDatabase();
oCmd = oDb.GetStoredProcCommand( "usp_someSproc" ); 
oDb.AddInParameter( oCmd, "@someField", DbType.String, pDesc );
oDr = oDb.ExecuteReader( oCmd );

Works fine, considering that @someField is a varchar field in the DB. BUT in case @someField is a TEXT field in the DB, if
I still use oDb.AddInParameter( oCmd, "@someField", DbType.String, pDesc ); it will work for small amounts of text, but for
real long text I need a DbType.TEXT which I don?t have through the AddInParameter way ...

Would someone post a code sample on how to add parameters for the Text field in sql server?

 


??? KenA
SGWellens
Asp.Net User
Re: AddParameter method for sqlServer TEXT field type2/23/2007 11:22:27 PM

0/0

You may find this thread helpful:

http://forums.asp.net/thread/437849.aspx


Steve Wellens
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning Visual Basic 2005 Databases Authors: Thearon Willis, Pages: 736, Published: 2006

Web:
AddParameter method for sqlServer TEXT field type - ASP.NET Forums AddParameter method for sqlServer TEXT field type. Last post 02-23-2007 6:22 PM by SGWellens. 1 replies. Sort Posts: ...
Class wwSQL InsertBinaryField, Inserts binary data into a SQL Server Image field.This method updates a single image field on a specific record specified by a WHERE ...
CodeProject: ASP.NET Query control. Free source code and ... To map the sql text to the string property Sql of the Query control is a .... AddParameter() method at run-time. Given the associated Query control and a ...
SqlServer ntext truncated I am seeing the text truncated to about 255 chars. Can anyone tell me why ... how to get row number from DataTable.Compute method ...
HTTPPost Object This object is returned by the CreateHTTPPost method. ... Script & Test Device