I have this storeD procedure that inserts info into a database for me, and I have a page that has a subject and a large field (textarea) for the message. Sometimes this field will get up to 6000 characters big, so I just used a varchar(8000) for this. (I'm usgin SQL Server 7).
When I pass my value from the HTML page into a asp page (the next page in line), i put it into a variable, and then use ADO to execute the SQL. I get an error. But if I do a plain insert w/ the same data, i have no problem.
Here is the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]The identifier that starts with 'this is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testth' is too long. Maximum length is 128.
/dev/addrelease.asp, line 12
Here is my asp:
Call Connection()
Dim Info, Headline, stuff
Info = TRIM(Request.Form("info"
)
Headline = TRIM(Request.Form("headline"
)
objConn.Execute SQL
Call CloseConnections()
Here is my SPROC:
CREATE proc spPR_ReleaseInsert
@UPDATE varchar(8000),
@HEADLINE text,
@PRIORITY int
AS
INSERT INTO PR_Releases
(tstamp, headline, release, priority)
VALUES (GETDATE(), @HEADLINE, @UPDATE, @PRIORITY)
Any ideas? Thanx man
When I pass my value from the HTML page into a asp page (the next page in line), i put it into a variable, and then use ADO to execute the SQL. I get an error. But if I do a plain insert w/ the same data, i have no problem.
Here is the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]The identifier that starts with 'this is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testthis is s testth' is too long. Maximum length is 128.
/dev/addrelease.asp, line 12
Here is my asp:
Call Connection()
Dim Info, Headline, stuff
Info = TRIM(Request.Form("info"
Headline = TRIM(Request.Form("headline"
objConn.Execute SQL
Call CloseConnections()
Here is my SPROC:
CREATE proc spPR_ReleaseInsert
@UPDATE varchar(8000),
@HEADLINE text,
@PRIORITY int
AS
INSERT INTO PR_Releases
(tstamp, headline, release, priority)
VALUES (GETDATE(), @HEADLINE, @UPDATE, @PRIORITY)
Any ideas? Thanx man