NetTalk Central

Author Topic: Connect Multiple MSSQL database with FM3  (Read 2593 times)

ralonso2001

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Qúbigo ERP
    • Email
Connect Multiple MSSQL database with FM3
« on: March 27, 2013, 07:25:48 AM »
Hello, you can select using webserver user, password and database from a browser using Nettalk MsSql Fm3

Thanks

Rodrigo
Regards,
Rodrigo Alonso
Mendoza - Argentina

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Connect Multiple MSSQL database with FM3
« Reply #1 on: March 27, 2013, 02:32:59 PM »
1) You need a way of storing the DB connection string associated with each user (p_web.ssv is a good way)
2) In your web handler processlink embed set your glo:dbowner to what you saved.

After your app connects to SQL via fm3 when you start up, there is no need to use FM3 to do the connection again.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Connect Multiple MSSQL database with FM3
« Reply #2 on: March 27, 2013, 09:56:32 PM »
also, make sure your glo:owner string for the tables is THREADed.
Then, as Kevin says, it can (MUST) be set explicitly in the WebHandler, ProcessLink, Before parent call.

cheers
Bruce

ralonso2001

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Qúbigo ERP
    • Email
Re: Connect Multiple MSSQL database with FM3
« Reply #3 on: April 03, 2013, 09:19:55 AM »
This method works if you disable all file manager features

But I want to keep updating the tables

any ideas?
« Last Edit: April 04, 2013, 10:53:54 AM by ralonso2001 »
Regards,
Rodrigo Alonso
Mendoza - Argentina

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Connect Multiple MSSQL database with FM3
« Reply #4 on: April 04, 2013, 06:39:02 PM »
I have fm3 enabled at it still works as discussed.