473,796 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ntext

If I insert 8000 byte of data, in the one of the column. now I want to
read the data, is there any to see all the data, through select
statement?
Jul 20 '05 #1
3 2636

"Anand" <ve************ *@yahoo.com> wrote in message
news:13******** *************** **@posting.goog le.com...
If I insert 8000 byte of data, in the one of the column. now I want to
read the data, is there any to see all the data, through select
statement?


In Query Analyzer, go to Tools-Options-Results and set maximum characters
per column to 8000. If you're using a different client tool, then you might
need to do something similar (I don't think this is possible in EM).

Simon
Jul 20 '05 #2
Hi Simon,

Thanks for your answer.
but through frontend, is there any way read all the data..

--create table table1 (test ntext)
insert into table1(test)
values (
'Tables are database objects that contain all the data in a database.
A table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
junk data.. up to 8KB'
)

select test from table1
------------------------------------------------------
if I use set TEXTSIZE 8000, still this not work,
is there any other way to select all the data.
(any help from READTEXT,UPDATE TEXT,WRITETEXT) ?

"Simon Hayes" <sq*@hayes.ch > wrote in message news:<41******* ***@news.bluewi n.ch>...
"Anand" <ve************ *@yahoo.com> wrote in message
news:13******** *************** **@posting.goog le.com...
If I insert 8000 byte of data, in the one of the column. now I want to
read the data, is there any to see all the data, through select
statement?


In Query Analyzer, go to Tools-Options-Results and set maximum characters
per column to 8000. If you're using a different client tool, then you might
need to do something similar (I don't think this is possible in EM).

Simon

Jul 20 '05 #3
You can use SET TEXTSIZE so that a normal SELECT can return over 4KB to your
app:

SET TEXTSIZE 32768
SELECT test FROM Table1

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Anand" <ve************ *@yahoo.com> wrote in message
news:13******** *************** ***@posting.goo gle.com...
Hi Simon,

Thanks for your answer.
but through frontend, is there any way read all the data..

--create table table1 (test ntext)
insert into table1(test)
values (
'Tables are database objects that contain all the data in a database.
A table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
Tables are database objects that contain all the data in a database. A
table definition is a collection of columns. In tables, data is
organized in a row-and-column format similar to a spreadsheet. Each
row represents a unique record, and each column represents a field
within the record. For example, a table containing employee data for a
company can contain a row for each employee and columns representing
employee information such as employee number, name, address, job
title, and home phone number.
junk data.. up to 8KB'
)

select test from table1
------------------------------------------------------
if I use set TEXTSIZE 8000, still this not work,
is there any other way to select all the data.
(any help from READTEXT,UPDATE TEXT,WRITETEXT) ?

"Simon Hayes" <sq*@hayes.ch > wrote in message
news:<41******* ***@news.bluewi n.ch>...
"Anand" <ve************ *@yahoo.com> wrote in message
news:13******** *************** **@posting.goog le.com...
> If I insert 8000 byte of data, in the one of the column. now I want to
> read the data, is there any to see all the data, through select
> statement?


In Query Analyzer, go to Tools-Options-Results and set maximum characters
per column to 8000. If you're using a different client tool, then you
might
need to do something similar (I don't think this is possible in EM).

Simon

Jul 20 '05 #4

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

Similar topics

1
4489
by: tony | last post by:
I changed the datatype of a field in a SQL Server 2000 database from nvarchar to ntext, but now nothing is being displayed. The "Body" column of the datatable used to be nvarchar(8000) and the below code works fine. However once I changed the datatype of "Body" from nvarchar to ntext, it no longer is displayed. Changing the field back to nvarchar and it is fine again. Is there a special way for me to retrieve ntext fields? Any help...
0
1707
by: Tom | last post by:
Hi, I've got problems using ntext data in a stored procedure (SQL-Server 2000): create procedure testproc @xmldata ntext as declare @Param ntext
3
8914
by: Matik | last post by:
Hello to all, Below the sample code: declare @arg_szMsgText ntext set @arg_szMsgText = isnull(@arg_szMsgText, N'unknown message') Now the error message I get: "The assignment operator operation cannot take a ntext data type as an
7
12195
by: Oleg Ogurok | last post by:
Hi all, I need to store data into about 104 columns. This is problematic with MS SQL, since it doesn't support rows over 8kb in total size. Most of the columns are of type NVARCHAR(255), which means we can't have more than 8092/(255*2) = 15 columns of this type. With a row length of more than 8kb, SQL gives a warning that any rows over that amount will be truncated.
1
6303
by: Derek Erb | last post by:
SQL Server 2000 : I have a series of tables which all have the same structure. When any of these tables are modified I need to syncrhonise all of those modifications with one other table wich is a sort of merge of the individual tables with one extra column. For most of these tables this is not a problem. The problem arrives when one of the tables has an ntext column which obviously can not be used in an update or insert trigger. ...
2
8778
by: Sileesh | last post by:
HI I know this is not the right forum to post this question, but i think some one might have a suggestion. I have a Table "Test" with columns Id bigint (PK), Number Varchar(50), Notes ntext. in sql server 2000 I ahve a stored procedure in which i am trying to insert the same data as new record with column "Number" changed.
4
8780
by: Igor | last post by:
I have one SELECT statement that needs to return one ntext field from one table and count something from other table, problem is that all fileds that are not in count have to be in group by and ntext can't be in group by... i hope you understend what i want to say here :), so is there any solution to this problem or what is the best workaraund you would use? example: TABLE projects project_id int
2
2756
by: Igor | last post by:
Is there a way to transfer ntext data from one table to another? I tried this UPDATE SET = (SELECT FROM WHERE =1) WHERE = 1;
3
2961
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I try to follow Steve's paper to build a database, and store a small text file into SQL Server database and retrieve it later. Only difference between my table and Steve's table is that I use NTEXT datatype for the file instead of using IMAGE datatype. I can not use SqlDataReader to read the data. I need your help, Thanks. -David (1) I have a table TestFile for testing: ID int FileName navrchar(255)
2
4421
by: verb13 | last post by:
I am running this query to an sql server 2000 database from my asp code: "select * from MyTable where MySqlServerRemoveStressFunction(MyNtextColumn) = '" & MyAdoRemoveStressFunction(MyString) & "'" The problem is that the replace function doesn't work with the ntext datatype (so as to replace the stresses with an empty string). I had to implement the MySqlServerRemoveStressFunction, i.e. a function that takes a column name as a...
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10236
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9055
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6793
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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 we have to send another system
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.