Search found 653 matches

by cdmmaui
Fri Nov 08, 2019 4:08 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 4051

Re: xBrowse jpg in SQL-database

Thanks Rao, that seemed to solve the problem. If I run in to any issues, I will contact you.
by cdmmaui
Fri Nov 08, 2019 4:34 am
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 4051

Re: xBrowse jpg in SQL-database

Hi Rao,

It did not work. Any ideas what needs to be done?
by cdmmaui
Fri Nov 08, 2019 2:13 am
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 4051

Re: xBrowse jpg in SQL-database

Rao,

I changed the following code and it seems to be working.

cSqlIns += STRTOHEX( MemoRead( cCft + aImages[nX1,1] ) )

I will let you know once process is complete
by cdmmaui
Fri Nov 08, 2019 1:14 am
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 4051

Re: xBrowse jpg in SQL-database

Rao, Here is the complete code in case you need it: TRY oSql:=TOleAuto():New("ADODB.Recordset") CATCH MsgWait( "Unable to Load SQL Driver" ) RETURN (.F.) END // Set... oSql:CursorType := 1 // opendkeyset oSql:CursorLocation := 3 // local cache oSql:LockType := 3 // lock opportuni...
by cdmmaui
Fri Nov 08, 2019 1:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 4051

Re: xBrowse jpg in SQL-database

Hi Rao, I am getting the following error while trying to save images to MS SQL table. What am I doing wrong? ERROR: Incorrect syntax near '+'. (0x80040E14) Code: cSqlIns := [INSERT INTO asset_chart(] cSqlIns += [itemnumber,] cSqlIns += [inspcft] cSqlIns += [)] cSqlIns += [ VALUES (] cSqlIns += ['] +...
by cdmmaui
Thu Nov 07, 2019 2:55 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Load image from file to MS SQL table
Replies: 1
Views: 517

Load image from file to MS SQL table

Good Day Everyone,

Does anyone have sample code that stores an image (JPG / PNG / etc.) from a directory to MS SQL table field?

Thank you in advance for your assistance!
by cdmmaui
Thu Aug 08, 2019 11:15 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

Re: SQL Update Response

Dear Rao,

Thank you!
by cdmmaui
Mon Aug 05, 2019 8:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

Re: SQL Update Response

Rick,

I found a Status property, however when I use it, the system errors out.

Error occurred at: 08/05/2019, 15:32:35
Error description: (DOS Error -2147352567) WINOLE/1007 Operation is not allowed when the object is closed. (0x800A0E78): ADODB.Recordset
by cdmmaui
Mon Aug 05, 2019 8:24 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

Re: SQL Update Response

Rick, The ERROR only occurs when the SQL statement fails to process correctly. If the SQL processes correctly but no record is updated, the ERROR catch does not work. I need to submit the SQL UPDATE statement and I need to get the response code that indicates number of records updated (should be one...
by cdmmaui
Mon Aug 05, 2019 3:50 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

Re: SQL Update Response

Hi Rick,

Ok, I will just use the CATCH to handle the error.
by cdmmaui
Mon Aug 05, 2019 2:29 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

Re: SQL Update Response

Dear Rick,

Thank you. What property of oSql will contain this response?
by cdmmaui
Sat Aug 03, 2019 8:06 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Update Response
Replies: 10
Views: 2080

SQL Update Response

Hello Everyone, can someone tell what response code I would get if UPDATE succeeded and failed? I want to determine if UPDATE FAILED so I can INSERT record. TRY oSql:=TOleAuto():New("ADODB.Recordset") CATCH MsgAlert("It seems that your PC does not have MDAC installed OR MDAC is corrup...
by cdmmaui
Thu Jun 20, 2019 6:37 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XML read, memory allocation error
Replies: 2
Views: 743

Re: XML read, memory allocation error

Dear Antonio,

Thank you! I hope you are well!
by cdmmaui
Thu Jun 20, 2019 5:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XML read, memory allocation error
Replies: 2
Views: 743

XML read, memory allocation error

Hello Everyone, We are using XML reader to process large amount XML messages. We are receiving the error below, how do I resolve this issue? /*********************************************** Application Internal Error - C:\winapps\vessel\xmlreader.exe Terminated at: 2019-06-09 08:54:10 Unrecoverable ...
by cdmmaui
Thu Jun 06, 2019 1:14 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XML help
Replies: 2
Views: 704

Re: XML help

Hello,

I was able to figure it out.

Sincerely,