Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory Allocation Failure
Message
De
03/07/2009 11:51:34
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01409566
Message ID:
01409933
Vues:
39
>>>We only get this error when we pass a text file which is (171 MB) to a parameter of data type (TEXT)

What we did, is to pass the file in chunks rather than all at once. I got the idea from a CodeProject article (http://www.codeproject.com/KB/XML/MTOMWebServices.aspx), but this may not do much for you, as it's about web services and also about .NET.

But basically the idea is to break up the file into smaller chunks, and pass the chunks one at a time, then update the SQL Server table chunk-by-chunk, making use of SQL's .WRITE function:
UPDATE Attachmentdata SET content .WRITE( @content, NULL, 1 ) WHERE [attachmentdatakey] = @attachmentdatakey
Hope that helps some, hopefully you know or can figure out how to get the file into chunks to send it. I don't know off the top of my head how to do that in VFP (but I do have some C# code for doing it).

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform