473,396 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

unable to submit more than 8000 characters with stored procedure

Hi all,

I have a internet page written in asp to submit into authors
curriculum vitae publications (title, author, year, etc.).
If the author submit less than 8000 characters it functions OK, but If
the author try's to submit more than 8000 characters the asp page does
not return an error but the text is not saved in the database or,
sometimes, it returned a "Typ mismatch" error.

Here is the sp:

---------------------------------------------------------------------
CREATE PROCEDURE sp_CV_publications
(
@formCommand
nvarchar(255)='process',
@id numeric=null,
@id_person int=null,
@typPubID tinyint= NULL,
@publications text=null
)
AS
if @formCommand='process'
begin

INSERT INTO CV_publications(
idperson,
typPubID,
publications

)
VALUES (
@id_person
@typPubID,
@publications
);
select 1 as status, @@IDENTITY AS insertedID, * FROM
CV_publications WHERE id=@@IDENTITY
end
----------------------------------------------------------------------------
The server is running IIS5 and SqlServer 2000
Any ideas ???
Jul 20 '05 #1
1 2199
(ca************@fct.mces.pt) writes:
I have a internet page written in asp to submit into authors
curriculum vitae publications (title, author, year, etc.).
If the author submit less than 8000 characters it functions OK, but If
the author try's to submit more than 8000 characters the asp page does
not return an error but the text is not saved in the database or,
sometimes, it returned a "Typ mismatch" error.

CREATE PROCEDURE sp_CV_publications


Not that it applies to this problem, but don't call your procedures
sp_something. sp_ is a prefix reserved for system objects, and SQL
Server first looks in master for these.

I would like to have seen the ASP code, to know how you call the procedure.
Do you use adLongVarchar for the parameter?

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2

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

Similar topics

5
by: Jay Chan | last post by:
I am trying to use a command line program to run a stored procedure that generates output in a comma-delimitted format. Somehow, ISQL or OSQL always wrap the lines at 256 characters. I believe this...
3
by: Robert Hogan | last post by:
Hello, I am attempting to send emails using T-SQL (in a SQLServerAgent Job) using the stored procedure sp_SendSMTPMail. I created the stored proc using the following script that I got off a post...
7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
1
by: Jeff Thur | last post by:
I have a listbox with all the US States. I need the user to select multiple States from that listbox and pass them on as parameters to a SQL Stored Procedure that will give them a count of all the...
5
by: Terje Sæternes | last post by:
It seems that this script wont run, any idea what I have don wrong+ Code----- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title>...
2
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following...
2
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored...
5
by: AJA | last post by:
Hello I have problem with reading from XML when XML is to large. Program delare 1-n variables where is declaration but can no make more delarations than length 8000 :(( drop table...
1
by: sheenaa | last post by:
Hello Members, I m creating my application forms in ASP.Net 2005 C# using the backend SQL Server 2005. What i have used on forms :: ? On my first form i have used some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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...
0
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,...

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.