473,465 Members | 4,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL Server Text datatype and OleDBType in ASP.NET

I have a field in a table that is of the datatype "Text". I also have
a store procedure which updates this field and has a parameter of the
same datatype ("Text"). However, in ASP.NET, interfacing this store
procedure, there is no datatype called "Text" in the OleDBType
Enumeration. What would be comparable to use with this so that data is
not truncated?

THANKS!

Nov 19 '05 #1
1 1935
Hi void,

You can use varchar instead

Guillermo G.

--------------------------------------------------------------------------------
Guillermo González Arroyave :: MCP ASP.Net C# :: DCE4

<vo********@yahoo.com> wrote in message news:11**********************@g49g2000cwa.googlegr oups.com...
I have a field in a table that is of the datatype "Text". I also have
a store procedure which updates this field and has a parameter of the
same datatype ("Text"). However, in ASP.NET, interfacing this store
procedure, there is no datatype called "Text" in the OleDBType
Enumeration. What would be comparable to use with this so that data is
not truncated?

THANKS!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
24
by: Agnes | last post by:
my date format is in yyyy-mm-dd mycommandtext is 'select * from myTable where issuedate >='" & Me.txtStartDate.text & "' and issuedate <= '" & Me.txtEndDate.text & "' " It return zero records,...
3
by: darrel | last post by:
I'm using parameterized sql for my Db updates and typically use something like this: objCommand.Parameters.Add("@pageID", System.Data.OleDb.OleDbType.numeric).Value = 24 However, I now need...
6
by: dianaj86 | last post by:
Hello All, I wanna ask, if i have an sql server....how these codes will be written..they are using OLeDb....should I just change the word OleDb with SQl? Update example:- Dim key as String...
4
by: =?Utf-8?B?SmVyZW15IEJydWVuaW5n?= | last post by:
I have found numerous iterations of server classes creating controls and adding them to web pages. However, I have never found any uses with the databind. I would like to set the text of the...
6
by: rn5a | last post by:
I am inserting records in a MS-Access database table. The data type of one of the columns named *OrderDate* in the DB table is Date/Time. This is the SQL query I am using to insert the records in...
0
by: rejithes | last post by:
Hi, I had an application in which database swing will happen automatically. Some of my tables have field datatype - TEXT. It is found that the TEXT datatype is getting corrupted after database...
10
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0, and need to know how to save and use an image that is stored in an SQL Server image datatype. How can I do this using ASP.NET? Thanks.
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.