NetTalk Central

Author Topic: MS-SQL demon select statement  (Read 5994 times)

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
MS-SQL demon select statement
« on: April 03, 2016, 04:25:41 PM »
Hi Bruce,

I wanted to bump this in case it fell off your to-do list.
 
This one is bizarre and I’m still debating if it’s a Clarion or Nettalk issue.
The environment is Clarion 10.12104, MSSQL 2008-14, NT9.05
 
I’ve have an application running for several years with C9 and NT8.6x, it runs solid but when I tried converting it to the later C10 builds it blows out when doing a very specific PropSQL call on a TurboSQL table. With all the chatter on the news groups about SQL issues in the current releases of C10 I chalked it up to that, particularly as if I put the MSSQL DLL from build 11822 in place it works again.
 
I prepared an example to report to SoftVelocity but the sample desktop app ran fine with the same query. So I built a very stripped down NT9 app to do the same thing and it crashes every time.
 
In the attached zip file are the 2 example apps I created (no dictionary required) both are designed to execute an SQL statement using a internally defined TurboSQL file and return the result. It also contains a backup of the sample MSSQL database they are both accessing, you would need to restore this to an SQL server of course.
 
Compile both apps, the desktop client when run has a menu option named “Open Form”, it will automatically populate the fields with the connect string which you need to change for your server, and the problematic SELECT statement. If you click the Execute SQL button several times it will return a total amount. Other values in the table besides 3100 that can be used in the WHERE clause are 3300 and 8393.
 
Run the web app and the server will crash on either the very first or second execution of the SQL statement.
 
If you remove the WHERE clause it will run successfully multiple times without issue.
 
So a Clarion driver or an NT issue with the new Clarion driver?
 
Thanks for looking.
 
Regards
 
Parker

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #1 on: April 18, 2016, 06:58:14 PM »
bump

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #2 on: April 19, 2016, 03:39:47 AM »
downloaded your app and run more than 100 times and no error, i think the problem is a SQL Client version, recently i have a conversion problem 6.3 NT to C10 and I thought that the problem is clarion but the problem is caused by a SQL Driver version, by default clarion use a older version installed in machine and you have to tell clarion that use a new version, try install SQL Client version 11 and force to use a last version in your connection string like this:

DRIVER={SQL Server Native Client 11.0}


JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #3 on: April 19, 2016, 07:50:36 AM »
Thanks for that but no joy.

SQL driver 10.0 was in place and I installed 11.0 (2011.110.5058.00)
Modified the connection string to force the use of version 11 of the driver and it still GPFs on the 2nd or 3rd try.

What version of C10 are you using when you compile and run this?
Are you getting a result back other than zero?

Regards

Parker

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #4 on: April 19, 2016, 09:49:24 AM »
C10 11726, see image total number request 15 with ret value..

show me your connection string, my connection string is:

Windows8,bugDB,sa,*****;MARS_Connection=Yes;BUSYHANDLING=2;DRIVER={SQL Server Native Client 11.0}

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #5 on: April 19, 2016, 10:59:30 AM »
Hi,

Yes, as mentioned this will work in C10 up to and including 11822 but it's broke in versions after that.
I think I have a work around for this for now.

Thanks for taking a look at this.

Regards

Parker

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: MS-SQL demon select statement
« Reply #6 on: April 19, 2016, 02:33:01 PM »
in what version don't work?

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: MS-SQL demon select statement
« Reply #7 on: April 19, 2016, 05:16:46 PM »
Hi Parker,

what was your work around?