Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Allocation Failure
Message
From
03/07/2009 11:51:34
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01409566
Message ID:
01409933
Views:
40
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform