Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Active Link not adding New Record

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Active Link not adding New Record

    Originally posted by christobal View Post
    The table is an existing sql table to which I connect to. As stated before using V8 Ent I added records to this table with no problem using the following code.
    Code:
    DIM conn as SQL::Connection
    dim flagResult as l 
    flagResult = conn.open("::Name::demo")
    if flagResult = .f. then 
    	ui_msg_box("Error","Could not connect to database. Error reported was: " + crlf() + cn.CallResult.text)
    	end 
    end if
    dim ti as SQL::TableInfo
    dim rs as SQL::ResultSet
    dim tbl as P
    dim insert as C
    if .not. SQL_TableInfoOfDBF("C:\a5\app_settings\dtemp.dbf", ti) then
    ui_msg_box("Error", "Cannot populate SQL::TableInfo")
    conn.close()
    end
    end if
    ti.Name = "Accounts"
    insert = conn.GenerateInsertStatement(ti)
    tbl = table.open("C:\a5\app_settings\dtemp.dbf")
    rs = conn.ResultSetFromDBF(tbl)
    if .not. conn.ApplyData(insert, rs)
    ui_msg_box("Error", conn.CallResult.text)
    end
    end if
    tbl.close()
    conn.close()
    With the launch of V9 and active link tables I hoped to discard the use
    of the above procedure as it would remove the need of a "temp table" and all the associated procedures to retrieve the required result.

    The returning message box notifies the number of records added as successful.

    V9 when connecting to this same table using the same named connection "demo" it apparently hooks up to a server side table schema index from within the data base , which returns the second column of the table defined as "C" "15" in table schema, as an "autoincrement type field". This index is not connected in any way for data entry. From within the V9 database explorer the field returns the same autoincrement description. From within V8Ent this is not the case the same field is represented as defined before "C" "15"
    thanks. unfortunately, this is not very helpful. we need to duplicate the problem. to do that i need to create the same table that you have.

    i need the 'create table' sql statement so that i can create the table.

    i presume you have 'SQL Server Management Studio' installed? If so you can right click on the table and get the 'Create table' statement.

    if you don't have it installed, open the Database Explorer in a5 (tools, external databases, database explorer) and right click on the table. you will see an option to get the create table statement.

    thanks

    Comment


      #17
      Re: Active Link not adding New Record

      The table is remotely based and we have started the Passover Holiday here . Will only be able to get back to you with this info on Monday
      TNX for the quick responses
      Chris
      �There is nothing like a dream to create the future.�
      But then again:
      Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

      Comment


        #18
        Re: Active Link not adding New Record

        Originally posted by Tom Cone Jr View Post
        Chris, I know nothing about SQL Server data but I'm curious whether you've defined an autoinc field rule in the active link table? If so, do you get the same error if you remove that field rule?
        I don't think you *can* define autoincrements for active link tables, can you?

        Comment


          #19
          Re: Active Link not adding New Record

          This is the V8Ent database explorer view of the table:



          Whilst using the same connection string definition in V9 I get the following information from the same remote table :




          The V8Ent create table script is:

          Code:
          CREATE TABLE ACCOUNTS
          (
          ID	integer IDENTITY (1, 1)  NOT NULL,
          ACCOUNTKEY	varchar(15)	NULL,
          FULLNAME	varchar(50)	NULL,
          SORTGROUP	integer	NULL,
          ADDRESS	varchar(50)	NULL,
          CITY	varchar(20)	NULL,
          ZIP	varchar(10)	NULL,
          COUNTRY	varchar(20)	NULL,
          PHONE	varchar(30)	NULL,
          FAX	varchar(30)	NULL,
          BALANCECODE	integer	NULL,
          BALANCE	numeric(53)	NULL,
          CREDITTERMSCODE	integer	NULL,
          TFTALDISCOUNT	numeric(53)	NULL,
          VATEXAMPT	tinyint	NULL,
          DISCOUNTCODE	integer	NULL,
          FILTER	varchar(5)	NULL,
          WORF	varchar(15)	NULL,
          DETAILS	varchar(50)	NULL,
          DATF1	datetime	NULL,
          DATF2	datetime	NULL,
          SUF1	numeric(53)	NULL,
          SUF2	numeric(53)	NULL,
          SUF3	numeric(53)	NULL,
          SUF4	numeric(53)	NULL,
          AVGLATEPAY	smallint	NULL,
          MAXCREDIT	numeric(53)	NULL,
          MAXCREDITCURRENCY	varchar(5)	NULL,
          MAXOBLIGO	numeric(53)	NULL,
          MAXOBLIGOCURRENCY	varchar(5)	NULL,
          CUSTOMERNOTE	varchar(50)	NULL,
          ASSIGNKEY	varchar(15)	NULL,
          AGENT	smallint	NULL,
          DEDUCTIONPRC	numeric(53)	NULL,
          DEDUCTIONVALID	datetime	NULL,
          BANKCODE	varchar(3)	NULL,
          BRANCHCODE	varchar(5)	NULL,
          BANKACCOUNT	varchar(20)	NULL,
          TAXFILENUM	varchar(20)	NULL,
          SALES	numeric(53)	NULL,
          SALESCURRENCY	varchar(5)	NULL,
          PURCHASE	numeric(53)	NULL,
          PURCHASECURRENCY	varchar(5)	NULL,
          OBLIGO	numeric(53)	NULL,
          SPECIALITEMBALANCE	numeric(53)	NULL,
          MAINACCOUNT	integer	NULL,
          FIXEDORDERCOST	numeric(53)	NULL,
          VISITPERIOD	integer	NULL,
          AVERAGESUPPLYPERIOD	numeric(53)	NULL,
          SDSUPPLYPERIOD	numeric(53)	NULL,
          DUMI	tinyint	NULL,
          BALANCENAME	varchar(50)	NULL,
          MAINACCOUNTNAME	varchar(50)	NULL,
          PROTECTED	tinyint	NULL,
          COSTCODE	varchar(5)	NULL,
          DIFFERACC	varchar(15)	NULL,
          MATCHCURR	varchar(5)	NULL,
          MATCHCURRFLAG	tinyint	NULL,
          EMAIL	varchar(50)	NULL,
          MASAV	tinyint	NULL,
          ACCPASS	varchar(4)	NULL,
          DELIVERY	numeric(53)	NULL,
          DEDUCTFILE	varchar(20)	NULL,
          DOCCURR	varchar(5)	NULL,
          ACCEDI	varchar(15)	NULL,
          EXFILE	varchar(50)	NULL,
          VARIETYID	integer	NULL,
          PRE	varchar(15)	NULL,
          PREDATE	datetime	NULL,
          ACCCUTFLAG	tinyint	NULL,
          SBCARDNO	varchar(50)	NULL,
          SBMON	varchar(2)	NULL,
          SBYEAR	varchar(2)	NULL,
          SBID	varchar(30)	NULL,
          SB4DIGITS	varchar(30)	NULL,
          SBCVV	varchar(60)	NULL,
          SBPHONE	varchar(20)	NULL,
          SBTYPE	varchar(50)	NULL,
          SBPAYS	smallint	NULL,
          SPHONE	varchar(30)	NULL,
          WEBSITE	varchar(250)	NULL,
          TAXREPCODE	integer	NULL,
          PrtTo	tinyint	NULL,
          PointsQunt	numeric(53)	NULL,
          RntSplitCode	smallint	NULL,
          RntQuant	numeric(53)	NULL,
          DistLine	integer	NULL,
          obligoDelivery	numeric(53)	NULL,
          obligolaybuy	numeric(53)	NULL,
          PRIMARY KEY (ID))


          The V9 statement is :
          Code:
          CREATE TABLE ACCOUNTS
          (
          ID	integer IDENTITY (1, 1)  NOT NULL,
          ACCOUNTKEY	varchar(15) IDENTITY (1, 1)  NOT NULL,
          FULLNAME	varchar(50)	NULL,
          SORTGROUP	integer	NULL,
          ADDRESS	varchar(50)	NULL,
          CITY	varchar(20)	NULL,
          ZIP	varchar(10)	NULL,
          COUNTRY	varchar(20)	NULL,
          PHONE	varchar(30)	NULL,
          FAX	varchar(30)	NULL,
          BALANCECODE	integer	NULL,
          BALANCE	numeric(53)	NULL,
          CREDITTERMSCODE	integer	NULL,
          TFTALDISCOUNT	numeric(53)	NULL,
          VATEXAMPT	tinyint	NULL,
          DISCOUNTCODE	integer	NULL,
          FILTER	varchar(5)	NULL,
          WORF	varchar(15)	NULL,
          DETAILS	varchar(50)	NULL,
          DATF1	datetime	NULL,
          DATF2	datetime	NULL,
          SUF1	numeric(53)	NULL,
          SUF2	numeric(53)	NULL,
          SUF3	numeric(53)	NULL,
          SUF4	numeric(53)	NULL,
          AVGLATEPAY	smallint	NULL,
          MAXCREDIT	numeric(53)	NULL,
          MAXCREDITCURRENCY	varchar(5)	NULL,
          MAXOBLIGO	numeric(53)	NULL,
          MAXOBLIGOCURRENCY	varchar(5)	NULL,
          CUSTOMERNOTE	varchar(50)	NULL,
          ASSIGNKEY	varchar(15)	NULL,
          AGENT	smallint	NULL,
          DEDUCTIONPRC	numeric(53)	NULL,
          DEDUCTIONVALID	datetime	NULL,
          BANKCODE	varchar(3)	NULL,
          BRANCHCODE	varchar(5)	NULL,
          BANKACCOUNT	varchar(20)	NULL,
          TAXFILENUM	varchar(20)	NULL,
          SALES	numeric(53)	NULL,
          SALESCURRENCY	varchar(5)	NULL,
          PURCHASE	numeric(53)	NULL,
          PURCHASECURRENCY	varchar(5)	NULL,
          OBLIGO	numeric(53)	NULL,
          SPECIALITEMBALANCE	numeric(53)	NULL,
          MAINACCOUNT	integer	NULL,
          FIXEDORDERCOST	numeric(53)	NULL,
          VISITPERIOD	integer	NULL,
          AVERAGESUPPLYPERIOD	numeric(53)	NULL,
          SDSUPPLYPERIOD	numeric(53)	NULL,
          DUMI	tinyint	NULL,
          BALANCENAME	varchar(50)	NULL,
          MAINACCOUNTNAME	varchar(50)	NULL,
          PROTECTED	tinyint	NULL,
          COSTCODE	varchar(5)	NULL,
          DIFFERACC	varchar(15)	NULL,
          MATCHCURR	varchar(5)	NULL,
          MATCHCURRFLAG	tinyint	NULL,
          EMAIL	varchar(50)	NULL,
          MASAV	tinyint	NULL,
          ACCPASS	varchar(4)	NULL,
          DELIVERY	numeric(53)	NULL,
          DEDUCTFILE	varchar(20)	NULL,
          DOCCURR	varchar(5)	NULL,
          ACCEDI	varchar(15)	NULL,
          EXFILE	varchar(50)	NULL,
          VARIETYID	integer	NULL,
          PRE	varchar(15)	NULL,
          PREDATE	datetime	NULL,
          ACCCUTFLAG	tinyint	NULL,
          SBCARDNO	varchar(50)	NULL,
          SBMON	varchar(2)	NULL,
          SBYEAR	varchar(2)	NULL,
          SBID	varchar(30)	NULL,
          SB4DIGITS	varchar(30)	NULL,
          SBCVV	varchar(60)	NULL,
          SBPHONE	varchar(20)	NULL,
          SBTYPE	varchar(50)	NULL,
          SBPAYS	smallint	NULL,
          SPHONE	varchar(30)	NULL,
          WEBSITE	varchar(250)	NULL,
          TAXREPCODE	integer	NULL,
          PrtTo	tinyint	NULL,
          PointsQunt	numeric(53)	NULL,
          RntSplitCode	smallint	NULL,
          RntQuant	numeric(53)	NULL,
          DistLine	integer	NULL,
          obligoDelivery	numeric(53)	NULL,
          obligolaybuy	numeric(53)	NULL,
          PRIMARY KEY (ID))
          Why the difference in the Database Explorer of field definitions on the same table in different versions of Alpha?
          �There is nothing like a dream to create the future.�
          But then again:
          Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

          Comment


            #20
            Re: Active Link not adding New Record

            Thanks.

            The create table sql generated by both V8 and V9 does not look correct.

            I am going to need the 'create table' sql generated by microsoft SQL Studio.

            Do you have the management tool for SQL Server?

            If not, can you must send me the .mdf and .ldf files for the database you are using.

            Comment


              #21
              Re: Active Link not adding New Record

              Heres the SQL Studio script:
              �There is nothing like a dream to create the future.�
              But then again:
              Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

              Comment


                #22
                Re: Active Link not adding New Record

                Any conclusions as to why there is an autoincrement definition on the "AccountKey" field?
                �There is nothing like a dream to create the future.�
                But then again:
                Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                Comment


                  #23
                  Re: Active Link not adding New Record

                  Originally posted by christobal View Post
                  Any conclusions as to why there is an autoincrement definition on the "AccountKey" field?

                  there shouldn't be.
                  it is a bug that was fixed.
                  we released a new patch this morning and I sent you an email. have you installed it?

                  are you commenting on what you see after installing the patch, or on what you saw using the old version?

                  Comment


                    #24
                    Re: Active Link not adding New Record

                    Have just now got home and seen the mail in question. Will apply patch tomorrow and let you know the outcome.
                    �There is nothing like a dream to create the future.�
                    But then again:
                    Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                    Comment


                      #25
                      Re: Active Link not adding New Record

                      Have applied the patch and here are the results:

                      The Autoincrement definition on AccountKey remains:
                      When opening browse and adding new record upon "F9" the api error is generated see: attachment

                      The browse cannot be saved due to "save enter in progress" dialog not responding to any choice. The window does not close even upon "Exit"
                      The Kill process in task manager is the only way to close V9.

                      This is the Sql Trace from opening browse until "F9"

                      Code:
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Apply Data *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	INSERT INTO ACCOUNTS (
                      FULLNAME, 
                      SORTGROUP, 
                      ADDRESS, 
                      CITY, 
                      ZIP, 
                      COUNTRY, 
                      PHONE, 
                      FAX, 
                      BALANCECODE, 
                      BALANCE, 
                      CREDITTERMSCODE, 
                      TFTALDISCOUNT, 
                      VATEXAMPT, 
                      DISCOUNTCODE, 
                      FILTER, 
                      WORF, 
                      DETAILS, 
                      DATF1, 
                      DATF2, 
                      SUF1, 
                      SUF2, 
                      SUF3, 
                      SUF4, 
                      AVGLATEPAY, 
                      MAXCREDIT, 
                      MAXCREDITCURRENCY, 
                      MAXOBLIGO, 
                      MAXOBLIGOCURRENCY, 
                      CUSTOMERNOTE, 
                      ASSIGNKEY, 
                      AGENT, 
                      DEDUCTIONPRC, 
                      DEDUCTIONVALID, 
                      BANKCODE, 
                      BRANCHCODE, 
                      BANKACCOUNT, 
                      TAXFILENUM, 
                      SALES, 
                      SALESCURRENCY, 
                      PURCHASE, 
                      PURCHASECURRENCY, 
                      OBLIGO, 
                      SPECIALITEMBALANCE, 
                      MAINACCOUNT, 
                      FIXEDORDERCOST, 
                      VISITPERIOD, 
                      AVERAGESUPPLYPERIOD, 
                      SDSUPPLYPERIOD, 
                      DUMI, 
                      BALANCENAME, 
                      MAINACCOUNTNAME, 
                      PROTECTED, 
                      COSTCODE, 
                      DIFFERACC, 
                      MATCHCURR, 
                      MATCHCURRFLAG, 
                      EMAIL, 
                      MASAV, 
                      ACCPASS, 
                      DELIVERY, 
                      DEDUCTFILE, 
                      DOCCURR, 
                      ACCEDI, 
                      EXFILE, 
                      VARIETYID, 
                      PRE, 
                      PREDATE, 
                      ACCCUTFLAG, 
                      SBCARDNO, 
                      SBMON, 
                      SBYEAR, 
                      SBID, 
                      SB4DIGITS, 
                      SBCVV, 
                      SBPHONE, 
                      SBTYPE, 
                      SBPAYS, 
                      SPHONE, 
                      WEBSITE, 
                      TAXREPCODE, 
                      PrtTo, 
                      PointsQunt, 
                      RntSplitCode, 
                      RntQuant, 
                      DistLine, 
                      obligoDelivery, 
                      obligolaybuy) VALUES (
                      :new.FULLNAME, 
                      :new.SORTGROUP, 
                      :new.ADDRESS, 
                      :new.CITY, 
                      :new.ZIP, 
                      :new.COUNTRY, 
                      :new.PHONE, 
                      :new.FAX, 
                      :new.BALANCECODE, 
                      :new.BALANCE, 
                      :new.CREDITTERMSCODE, 
                      :new.TFTALDISCOUNT, 
                      :new.VATEXAMPT, 
                      :new.DISCOUNTCODE, 
                      :new.FILTER, 
                      :new.WORF, 
                      :new.DETAILS, 
                      :new.DATF1, 
                      :new.DATF2, 
                      :new.SUF1, 
                      :new.SUF2, 
                      :new.SUF3, 
                      :new.SUF4, 
                      :new.AVGLATEPAY, 
                      :new.MAXCREDIT, 
                      :new.MAXCREDITCURRENCY, 
                      :new.MAXOBLIGO, 
                      :new.MAXOBLIGOCURRENCY, 
                      :new.CUSTOMERNOTE, 
                      :new.ASSIGNKEY, 
                      :new.AGENT, 
                      :new.DEDUCTIONPRC, 
                      :new.DEDUCTIONVALID, 
                      :new.BANKCODE, 
                      :new.BRANCHCODE, 
                      :new.BANKACCOUNT, 
                      :new.TAXFILENUM, 
                      :new.SALES, 
                      :new.SALESCURRENCY, 
                      :new.PURCHASE, 
                      :new.PURCHASECURRENCY, 
                      :new.OBLIGO, 
                      :new.SPECIALITEMBALANCE, 
                      :new.MAINACCOUNT, 
                      :new.FIXEDORDERCOST, 
                      :new.VISITPERIOD, 
                      :new.AVERAGESUPPLYPERIOD, 
                      :new.SDSUPPLYPERIOD, 
                      :new.DUMI, 
                      :new.BALANCENAME, 
                      :new.MAINACCOUNTNAME, 
                      :new.PROTECTED, 
                      :new.COSTCODE, 
                      :new.DIFFERACC, 
                      :new.MATCHCURR, 
                      :new.MATCHCURRFLAG, 
                      :new.EMAIL, 
                      :new.MASAV, 
                      :new.ACCPASS, 
                      :new.DELIVERY, 
                      :new.DEDUCTFILE, 
                      :new.DOCCURR, 
                      :new.ACCEDI, 
                      :new.EXFILE, 
                      :new.VARIETYID, 
                      :new.PRE, 
                      :new.PREDATE, 
                      :new.ACCCUTFLAG, 
                      :new.SBCARDNO, 
                      :new.SBMON, 
                      :new.SBYEAR, 
                      :new.SBID, 
                      :new.SB4DIGITS, 
                      :new.SBCVV, 
                      :new.SBPHONE, 
                      :new.SBTYPE, 
                      :new.SBPAYS, 
                      :new.SPHONE, 
                      :new.WEBSITE, 
                      :new.TAXREPCODE, 
                      :new.PRTTO, 
                      :new.POINTSQUNT, 
                      :new.RNTSPLITCODE, 
                      :new.RNTQUANT, 
                      :new.DISTLINE, 
                      :new.OBLIGODELIVERY, 
                      :new.OBLIGOLAYBUY)
                      
                      	--------------- SQL ---------------
                      	INSERT INTO ACCOUNTS  (FULLNAME, SORTGROUP, ADDRESS, CITY, ZIP, COUNTRY, PHONE, FAX, BALANCECODE, BALANCE, CREDITTERMSCODE, TFTALDISCOUNT, VATEXAMPT, DISCOUNTCODE, FILTER, WORF, DETAILS, DATF1, DATF2, SUF1, SUF2, SUF3, SUF4, AVGLATEPAY, MAXCREDIT, MAXCREDITCURRENCY, MAXOBLIGO, MAXOBLIGOCURRENCY, CUSTOMERNOTE, ASSIGNKEY, AGENT, DEDUCTIONPRC, DEDUCTIONVALID, BANKCODE, BRANCHCODE, BANKACCOUNT, TAXFILENUM, SALES, SALESCURRENCY, PURCHASE, PURCHASECURRENCY, OBLIGO, SPECIALITEMBALANCE, MAINACCOUNT, FIXEDORDERCOST, VISITPERIOD, AVERAGESUPPLYPERIOD, SDSUPPLYPERIOD, DUMI, BALANCENAME, MAINACCOUNTNAME, PROTECTED, COSTCODE, DIFFERACC, MATCHCURR, MATCHCURRFLAG, EMAIL, MASAV, ACCPASS, DELIVERY, DEDUCTFILE, DOCCURR, ACCEDI, EXFILE, VARIETYID, PRE, PREDATE, ACCCUTFLAG, SBCARDNO, SBMON, SBYEAR, SBID, SB4DIGITS, SBCVV, SBPHONE, SBTYPE, SBPAYS, SPHONE, WEBSITE, TAXREPCODE, PrtTo, PointsQunt, RntSplitCode, RntQuant, DistLine, obligoDelivery, obligolaybuy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
                      
                      	--------- Bind Map -------
                      
                      	[1]  FULLNAME  = christop
                      	[2]  SORTGROUP  = <NULL>
                      	[3]  ADDRESS  = <NULL>
                      	[4]  CITY  = <NULL>
                      	[5]  ZIP  = <NULL>
                      	[6]  COUNTRY  = <NULL>
                      	[7]  PHONE  = <NULL>
                      	[8]  FAX  = <NULL>
                      	[9]  BALANCECODE  = <NULL>
                      	[10]  BALANCE  = <NULL>
                      	[11]  CREDITTERMSCODE  = <NULL>
                      	[12]  TFTALDISCOUNT  = <NULL>
                      	[13]  VATEXAMPT  = <NULL>
                      	[14]  DISCOUNTCODE  = <NULL>
                      	[15]  FILTER  = <NULL>
                      	[16]  WORF  = <NULL>
                      	[17]  DETAILS  = <NULL>
                      	[18]  DATF1  = <NULL>
                      	[19]  DATF2  = <NULL>
                      	[20]  SUF1  = <NULL>
                      	[21]  SUF2  = <NULL>
                      	[22]  SUF3  = <NULL>
                      	[23]  SUF4  = <NULL>
                      	[24]  AVGLATEPAY  = <NULL>
                      	[25]  MAXCREDIT  = <NULL>
                      	[26]  MAXCREDITCURRENCY  = <NULL>
                      	[27]  MAXOBLIGO  = <NULL>
                      	[28]  MAXOBLIGOCURRENCY  = <NULL>
                      	[29]  CUSTOMERNOTE  = <NULL>
                      	[30]  ASSIGNKEY  = <NULL>
                      	[31]  AGENT  = <NULL>
                      	[32]  DEDUCTIONPRC  = <NULL>
                      	[33]  DEDUCTIONVALID  = <NULL>
                      	[34]  BANKCODE  = <NULL>
                      	[35]  BRANCHCODE  = <NULL>
                      	[36]  BANKACCOUNT  = <NULL>
                      	[37]  TAXFILENUM  = <NULL>
                      	[38]  SALES  = <NULL>
                      	[39]  SALESCURRENCY  = <NULL>
                      	[40]  PURCHASE  = <NULL>
                      	[41]  PURCHASECURRENCY  = <NULL>
                      	[42]  OBLIGO  = <NULL>
                      	[43]  SPECIALITEMBALANCE  = <NULL>
                      	[44]  MAINACCOUNT  = <NULL>
                      	[45]  FIXEDORDERCOST  = <NULL>
                      	[46]  VISITPERIOD  = <NULL>
                      	[47]  AVERAGESUPPLYPERIOD  = <NULL>
                      	[48]  SDSUPPLYPERIOD  = <NULL>
                      	[49]  DUMI  = <NULL>
                      	[50]  BALANCENAME  = <NULL>
                      	[51]  MAINACCOUNTNAME  = <NULL>
                      	[52]  PROTECTED  = <NULL>
                      	[53]  COSTCODE  = <NULL>
                      	[54]  DIFFERACC  = <NULL>
                      	[55]  MATCHCURR  = <NULL>
                      	[56]  MATCHCURRFLAG  = <NULL>
                      	[57]  EMAIL  = <NULL>
                      	[58]  MASAV  = <NULL>
                      	[59]  ACCPASS  = <NULL>
                      	[60]  DELIVERY  = <NULL>
                      	[61]  DEDUCTFILE  = <NULL>
                      	[62]  DOCCURR  = <NULL>
                      	[63]  ACCEDI  = <NULL>
                      	[64]  EXFILE  = <NULL>
                      	[65]  VARIETYID  = <NULL>
                      	[66]  PRE  = <NULL>
                      	[67]  PREDATE  = <NULL>
                      	[68]  ACCCUTFLAG  = <NULL>
                      	[69]  SBCARDNO  = <NULL>
                      	[70]  SBMON  = <NULL>
                      	[71]  SBYEAR  = <NULL>
                      	[72]  SBID  = <NULL>
                      	[73]  SB4DIGITS  = <NULL>
                      	[74]  SBCVV  = <NULL>
                      	[75]  SBPHONE  = <NULL>
                      	[76]  SBTYPE  = <NULL>
                      	[77]  SBPAYS  = <NULL>
                      	[78]  SPHONE  = <NULL>
                      	[79]  WEBSITE  = <NULL>
                      	[80]  TAXREPCODE  = <NULL>
                      	[81]  PRTTO  = <NULL>
                      	[82]  POINTSQUNT  = <NULL>
                      	[83]  RNTSPLITCODE  = <NULL>
                      	[84]  RNTQUANT  = <NULL>
                      	[85]  DISTLINE  = <NULL>
                      	[86]  OBLIGODELIVERY  = <NULL>
                      	[87]  OBLIGOLAYBUY  = <NULL>
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		195
                      		NativeCode:		3621
                      		NativeText:		[Microsoft][ODBC SQL Server Driver][SQL Server]Violation of UNIQUE KEY constraint 'UQNC_ACCOUNTS_1'. Cannot insert duplicate key in object 'ACCOUNTS'.
                      	SQL State is: 23000
                      	[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.
                      	SQL State is: 01000
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Apply Data  *********************
                      
                      Error executing Insert statement statement.
                      Insert statement: 
                      INSERT INTO ACCOUNTS (
                      FULLNAME, 
                      SORTGROUP, 
                      ADDRESS, 
                      CITY, 
                      ZIP, 
                      COUNTRY, 
                      PHONE, 
                      FAX, 
                      BALANCECODE, 
                      BALANCE, 
                      CREDITTERMSCODE, 
                      TFTALDISCOUNT, 
                      VATEXAMPT, 
                      DISCOUNTCODE, 
                      FILTER, 
                      WORF, 
                      DETAILS, 
                      DATF1, 
                      DATF2, 
                      SUF1, 
                      SUF2, 
                      SUF3, 
                      SUF4, 
                      AVGLATEPAY, 
                      MAXCREDIT, 
                      MAXCREDITCURRENCY, 
                      MAXOBLIGO, 
                      MAXOBLIGOCURRENCY, 
                      CUSTOMERNOTE, 
                      ASSIGNKEY, 
                      AGENT, 
                      DEDUCTIONPRC, 
                      DEDUCTIONVALID, 
                      BANKCODE, 
                      BRANCHCODE, 
                      BANKACCOUNT, 
                      TAXFILENUM, 
                      SALES, 
                      SALESCURRENCY, 
                      PURCHASE, 
                      PURCHASECURRENCY, 
                      OBLIGO, 
                      SPECIALITEMBALANCE, 
                      MAINACCOUNT, 
                      FIXEDORDERCOST, 
                      VISITPERIOD, 
                      AVERAGESUPPLYPERIOD, 
                      SDSUPPLYPERIOD, 
                      DUMI, 
                      BALANCENAME, 
                      MAINACCOUNTNAME, 
                      PROTECTED, 
                      COSTCODE, 
                      DIFFERACC, 
                      MATCHCURR, 
                      MATCHCURRFLAG, 
                      EMAIL, 
                      MASAV, 
                      ACCPASS, 
                      DELIVERY, 
                      DEDUCTFILE, 
                      DOCCURR, 
                      ACCEDI, 
                      EXFILE, 
                      VARIETYID, 
                      PRE, 
                      PREDATE, 
                      ACCCUTFLAG, 
                      SBCARDNO, 
                      SBMON, 
                      SBYEAR, 
                      SBI
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT * FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	0
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START Execute Query *********************
                      	Native SQL Syntax
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  Execute Query  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Native SQL Syntax
                      
                      	----------- Native SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	-------- Arguments -------
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      
                      
                      ********************* START ExecuteQuery *********************
                      	Portable SQL
                      
                      	----------- Portable SQL ----------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	--------------- SQL ---------------
                      	SELECT  count(*)  FROM ACCOUNTS  WHERE ((ACCOUNTKEY > '220000') AND (1 = 2))
                      
                      	------ Call Result -------
                      	============================
                      	Call Result:
                      		Syntax:			
                      		API:			
                      		ResultCode:		0
                      		NativeCode:		0
                      		NativeText:		
                      		Rows Affected:	-1
                      		----- Formatted Error Message -----
                      	
                      	============================
                      	
                      	
                      
                      *********************  END  ExecuteQuery  *********************
                      �There is nothing like a dream to create the future.�
                      But then again:
                      Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                      Comment


                        #26
                        Re: Active Link not adding New Record

                        Using your exact table definition, it is working for me.

                        I suspect that the difference is that I created the active-link definition AFTER applying the patch.

                        can you right click on the active-link table and select 'refresh' to rebuild the active-link table definition, or recreate the active-link table definition from scratch.

                        thanks

                        Comment


                          #27
                          Re: Active Link not adding New Record

                          Still no go!
                          Am currently abandoning this approach as it does not appear to be going in the right direction. Will add records through a form based on a temp table which, after scripting the neccessary procedures will use the as before described procedure.
                          See:
                          Code:
                          DIM conn as SQL::Connection
                          dim flagResult as l 
                          flagResult = conn.open("::Name::demo")
                          if flagResult = .f. then 
                          	ui_msg_box("Error","Could not connect to database. Error reported was: " + crlf() + cn.CallResult.text)
                          	end 
                          end if
                          dim ti as SQL::TableInfo
                          dim rs as SQL::ResultSet
                          dim tbl as P
                          dim insert as C
                          if .not. SQL_TableInfoOfDBF("C:\a5\app_settings\dtemp.dbf", ti) then
                          ui_msg_box("Error", "Cannot populate SQL::TableInfo")
                          conn.close()
                          end
                          end if
                          ti.Name = "Accounts"
                          insert = conn.GenerateInsertStatement(ti)
                          tbl = table.open("C:\a5\app_settings\dtemp.dbf")
                          rs = conn.ResultSetFromDBF(tbl)
                          if .not. conn.ApplyData(insert, rs)
                          ui_msg_box("Error", conn.CallResult.text)
                          end
                          end if
                          tbl.close()
                          conn.close()
                          This process has been tested using repetitive commits of the same data
                          after using sql delete statements to remove records commited without any hassles whatsoever. Maybe in the near future and with further testing will resume the use of active link table to induce new record addition but alas, there still appears to be glitches in V9 which require "ironing out".
                          �There is nothing like a dream to create the future.�
                          But then again:
                          Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!

                          Comment

                          Working...
                          X