CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Packet size

  1. #1
    Join Date
    Mar 2001
    Location
    Romania
    Posts
    71

    Packet size

    How can I sent in a single sql statement a string with more than 30000 chars. I incresed "Packet size" prop from SQL Server to 35000, but no result.

    Thanks.

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210
    Hi
    I don't know a solution for the packet size problem..
    but i think you have a big problem with the database design..
    such large queries sould be stored in the database as stored procedurs..
    this will :
    • Decrease network traffic.
    • Increase DB performance as the Prcedure will be compiled and cached.
    • Improve the readability of your application.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    Send it through as a blob (use BlobToFile & FileToBlob, or stream methods) If you search here using those as keywords, you should find the correct code to do what you want.
    Be nice to Harley riders...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured