CRM Software - CABC | Maximizer | Maximizer Add-ons | Services | Support | Store | News

    Find out about Linktracker for Maximzier
CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Insert Contact
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I am trying to insert a new contact via Maximizer ODBC. I keep on getting that the Client_ID does not exist in the Company table.

I then tried to a small script to see if the Company does exist in the Company ODBC table, and it does. What can be wrong?

Tobie
 
Posts: 17 | Registered: July 18, 2004Reply With QuoteEdit or Delete MessageReport This Post
Master
Picture of Gord
Posted Hide Post
I dunno, the simplest case...

INSERT INTO PEOPLE ( Client_Id, Last_Name )
SELECT '040809000021010294922C' AS Expr1, 'AnotherLastName' AS Expr2

...works for me. Confused
 
Posts: 722 | Location: Canada | Registered: July 14, 2000Reply With QuoteEdit or Delete MessageReport This Post
Master
Picture of Gord
Posted Hide Post
This VBScript works, too:

Option Explicit

Dim oCon 
Set oCon = CreateObject("ADODB.Connection")
oCon.Open("DSN=CampaignTest;UID=MASTER;PWD=control;")

Dim oCmd
Set oCmd = CreateObject("ADODB.Command")
Set oCmd.ActiveConnection = oCon

Dim RecCount

oCmd.CommandText = _
   "INSERT INTO PEOPLE (Client_Id, Last_Name) " & _
      "VALUES ('040809000021010294922C', 'YetAnotherLastName');"
oCmd.Execute RecCount
Wscript.Echo RecCount & " Contact record(s) inserted"

Set oCmd = Nothing
oCon.Close
Set oCon = Nothing
 
Posts: 722 | Location: Canada | Registered: July 14, 2000Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Gord, is your CampaignTest DSN use the Maximizer ODBC Driver ? We've got 8.0 Enterprise, and Im looking to fill a datagrid (.net) with data from the people table.

My understanding is that the Maximizer ODBC driver simplifies what you could otherwise do with Pervasive's ODBC driver. From the queries I've seen, Maximizer's ODBC driver is almost a go-between with Pervasive's driver.


-Ben
 
Posts: 11 | Registered: August 20, 2004Reply With QuoteEdit or Delete MessageReport This Post
Master
Picture of Gord
Posted Hide Post
>is your CampaignTest DSN use the Maximizer ODBC Driver ?

Yes.

>My understanding is that the Maximizer ODBC driver simplifies what
>you could otherwise do with Pervasive's ODBC driver.

The Maximizer ODBC driver is designed to manipulate Maximizer data. The Pervasive ODBC driver can manipulate Pervasive data tables but it doesn't know anything about Maximizer specifically, so it can't do things like enforce referential integrity or make changes that can be synchronized via MaxExchange.
 
Posts: 722 | Location: Canada | Registered: July 14, 2000Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Insert Contact

© CABC Ltd 2002 - 2005. All Rights Reserved.
Maximizer is a trademark of Maximizer Software inc.