ASP, SQL, long text data problems...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam

    ASP, SQL, long text data problems...

    I have an ASP page that will take form info that a user has entered,
    then save it into SQL server, and retrive and display the info on
    another page. My problem is with long text data (10,000 bytes or
    more). It appears to save the long text data, as in it gives no
    errors... but it does not save it. In the SQL table, the field is
    defined as ntext... So why won't it save?

    Thanks in advance,
    adam
  • Erland Sommarskog

    #2
    Re: ASP, SQL, long text data problems...

    Adam (ootena@imsg.co m) writes:[color=blue]
    > I have an ASP page that will take form info that a user has entered,
    > then save it into SQL server, and retrive and display the info on
    > another page. My problem is with long text data (10,000 bytes or
    > more). It appears to save the long text data, as in it gives no
    > errors... but it does not save it. In the SQL table, the field is
    > defined as ntext... So why won't it save?[/color]

    I guess you need to post your code, so that people here can have a
    reasonble chance to spot your error. You are using the AppendChunk on
    the Field object?


    --
    Erland Sommarskog, SQL Server MVP, sommar@algonet. se

    Books Online for SQL Server SP3 at
    SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

    Comment

    • Erland Sommarskog

      #3
      Re: ASP, SQL, long text data problems...

      Adam (ootena@imsg.co m) writes:[color=blue]
      > I guess I need an example of the GetChunk, AppendChunk... I havent
      > been able to find one that makes sense to me.[/color]

      In the MDAC Books Online there are examples of using AppendChunk. This
      should also be on MSDN.

      Did you try searching for AppendChunk on Google? I seem to get quite some
      hits.

      --
      Erland Sommarskog, SQL Server MVP, sommar@algonet. se

      Books Online for SQL Server SP3 at
      SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

      Comment

      • Adam

        #4
        Re: ASP, SQL, long text data problems...

        Cool, thanks for the books online... that helped a lot later man

        Comment

        Working...