Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Write user data to external database.

  • ziggy03
  • ziggy03
  • OFFLINE
  • Posts: 17
  • Thanks: 5
  • Karma: 3
12 years 1 month ago #216120 by ziggy03
Write user data to external database. was created by ziggy03
Hello,
i tried and i tried but i couldnt succeed. the issue is simple and maybe i am just making a stupid mistake. Here's what i want to do...

use auto actions to write to an external database when a user registers at my site.
pass on the fields [username] [password] [cb_mobile] to the external database with conditional [cb_profession] is equal to LAWYER

here's the query i wrote (the query is just to check out if it passes any data, hence only username is used):
Code:
INSERT into [alphalawgic].[dbo].[UbersoftTable] (username) values ('[username]');

I am using a MySql Server, joomla 2.5 php 5.2.x on shared hosting and the xternal databse is MS SQL 2008 R2 on my virtual private server

i know there is no problem in my triggers & conditions ( as it is practically just selecting from drop downs) i think the problem might be that MySQL & MS SQL don't like each other! ;-P
Thanks,
Bhavin

I am an Indian; I know about & believe in Karma way before forums were even invented ;-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago - 12 years 1 month ago #216141 by krileon
Replied by krileon on topic Re: Write user data to external database.
You can't cross database driver query. The driver used when CB Auto Actions fires a trigger is based off the Joomla database, which in your case is MYSQL. So it's parsing your query and trying to execute it as if it was MYSQL.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

  • ziggy03
  • ziggy03
  • OFFLINE
  • Posts: 17
  • Thanks: 5
  • Karma: 3
12 years 1 month ago #216219 by ziggy03
Replied by ziggy03 on topic Re: Write user data to external database.
Thanks for the reply krileon,
so just to make it clear it is because of two different TYPES of Databse! and not because of two DIFFERENT LOCATIONS of the database?

I am an Indian; I know about & believe in Karma way before forums were even invented ;-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago - 12 years 1 month ago #216241 by krileon
Replied by krileon on topic Re: Write user data to external database.
Correct, the two different types of databases can't communicate with one another as the query action will use the same database driver as your Joomla install (MYSQL).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum