Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reliability: SQL Blob; ActiveX Data objectsl; streams and Files

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,212
US
I wrote some procedures to 'download' and 'upload' files to a SQL server storing the data in an image datatype using streams and the Active X data objects.

I thought everything was working great but I have had an instance of file corruption. Specifically I had an Accde runtime file come out and retrieve 'null' text to an unbound form using DAO Recordsets from ODBC linked tables instead of null values (finite hours, mandatory migration to SQL). Unfortunately I did not realize soon enough to figure out whether the server side version of the file was bad or if it happened in the 'download'. This feels to me like a bit flag for the ODBC call in the compiled code got to flipped but ultimately I am filing it under some things are easier to fix than to explain.

I am hoping someone has enough experience to tell me if file corruption is likely or if I won the improbable bit flip lottery?
 
I gave up on SQL file storage, I just had too many bugs, database size issues and proprietary format issues. Now I just store just the disk path of the file in the SQL table, and and use one of these methods to open the file using VBA:


Storing these files on the file system itself has also paid off in the .net and php apps I've written where I have embedded Google stacks into my web pages.
 
Out of curiosity what kinds of issues did you have? All I am doing is reading files in and out from the client box for install purposes.

It took over a month to get a data reader user group created and added to the SQL Server.... So I took the road less travelled [noevil].

Turns out my issue was code... Another developer in order to concatenate parameters into a SQL statement changed the values to the text "null" rather than wrap them with say NZ... <I've seen a smiley face hitting its forehead on a brick wall in posts here but don't see it in the emoticons.>

Best I can figure a user inadvertantly clicked a button (failed to report it as part of the issue) or changed the data before I saw it to test. In any case I was more relieved it was a code problem than a file transfer problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top