hi,
i have a column of type ntext in the db, we're using that to allow
users to store essays they can enter. problem is when i'm running a
select on the ntext column, data seems to be getting cut off, isn't
ntext suppose to hold a lot of data, we wanted to allow them in a min
of 1500 chars, while everytime i do a
select len(max (convert(nvarchar(2000), essaytext)))
just to see the max we one had it's always 200.
Thanks. 4 6407
"phil2phil" <ph*********@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
hi,
i have a column of type ntext in the db, we're using that to allow
users to store essays they can enter. problem is when i'm running a
select on the ntext column, data seems to be getting cut off, isn't
ntext suppose to hold a lot of data, we wanted to allow them in a min
of 1500 chars, while everytime i do a
select len(max (convert(nvarchar(2000), essaytext)))
just to see the max we one had it's always 200.
Thanks.
What tool are you using for this? If it's QA, you can adjust what it returns
via a setting.
--
Greg Moore
SQL Server DBA Consulting
Email: sql (at) greenms.com http://www.greenms.com
Hi,
I've tried both Sql sever 2000 QA and Sql server 2005 Management
Studio. For QA i set the Results Max chars to 8192 and in Management
studio i set the max chars per column for Text Retults to 8192 and for
Grid to Non XML 65535, but it's still not returning the full, and each
max length is always 200.
On Mar 12, 12:11 pm, "Greg D. Moore \(Strider\)"
<mooregr_deletet...@greenms.comwrote:
"phil2phil" <philtwop...@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
hi,
i have a column of type ntext in the db, we're using that to allow
users to store essays they can enter. problem is when i'm running a
select on the ntext column, data seems to be getting cut off, isn't
ntext suppose to hold a lot of data, we wanted to allow them in a min
of 1500 chars, while everytime i do a
select len(max (convert(nvarchar(2000), essaytext)))
just to see the max we one had it's always 200.
Thanks.
What tool are you using for this? If it's QA, you can adjust what it returns
via a setting.
--
Greg Moore
SQL Server DBA Consulting
Email: sql (at) greenms.com http://www.greenms.com
I think i found it, the stored proc doing the actual insert into the
table, was set to @ESSAYTEXT varchar(200) for that column, we decided
to restrict it to 2000 chars, so changing it to @ESSAYTEXT
varchar(2000), hopefully that's fix it, the varchar(200) explains the
max(len issue as well.
On Mar 12, 12:26 pm, "phil2phil" <philtwop...@yahoo.comwrote:
Hi,
I've tried both Sql sever 2000 QA and Sql server 2005 Management
Studio. For QA i set the Results Max chars to 8192 and in Management
studio i set the max chars per column for Text Retults to 8192 and for
Grid to Non XML 65535, but it's still not returning the full, and each
max length is always 200.
On Mar 12, 12:11 pm, "Greg D. Moore \(Strider\)"
<mooregr_deletet...@greenms.comwrote:
"phil2phil" <philtwop...@yahoo.comwrote in message
news:11*********************@v33g2000cwv.googlegro ups.com...
hi,
i have a column of type ntext in the db, we're using that to allow
users to store essays they can enter. problem is when i'm running a
select on the ntext column, data seems to be getting cut off, isn't
ntext suppose to hold a lot of data, we wanted to allow them in a min
of 1500 chars, while everytime i do a
select len(max (convert(nvarchar(2000), essaytext)))
just to see the max we one had it's always 200.
Thanks.
What tool are you using for this? If it's QA, you can adjust what it returns
via a setting.
--
Greg Moore
SQL Server DBA Consulting
Email: sql (at) greenms.com http://www.greenms.com
"phil2phil" <ph*********@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
>I think i found it, the stored proc doing the actual insert into the
table, was set to @ESSAYTEXT varchar(200) for that column, we decided
to restrict it to 2000 chars, so changing it to @ESSAYTEXT
varchar(2000), hopefully that's fix it, the varchar(200) explains the
max(len issue as well.
Yeah.. if you're only inserting 200.. ;-)
(note that text fields sometimes are better handled with readtext/writetext.
But if you're moving to SQL 2005 any time I'd highly recommend varchar(max)
--
Greg Moore
SQL Server DBA Consulting
Email: sql (at) greenms.com http://www.greenms.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Cally |
last post by:
Hello,
I would like to convert a field from ntext field found in one database
table to float field found in another database table. The reason why I
want to do this is a long one.
I have...
|
by: igorsl |
last post by:
Hi,
I have a problem to insert(update) a long text (more than 64K) into
SQL 2000 (datatype - 'text'). It cuts the data and insert only 64K.
MSDN says: "When the ntext, text, and image data values...
|
by: rey |
last post by:
Hello,
I need to produce with T-SQL a user defined function or stored
procedure that make one SLQ-Statement and prepare as string from the
result set.
The request muss be able to return a very...
|
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...
|
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;
|
by: Cylix |
last post by:
Is there any difference between a nText field value='' and value=NULL ?
|
by: xx75vulcan |
last post by:
I have created an ASP page that will "on the fly" create an XML feed from my MS SQL database and the contents within a specified table.
The Feed: http://www.rockwood.k12.mo.us/news/rss.asp
You...
|
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...
|
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) &...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |