Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Appending data to a MSSQL database table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Appending data to a MSSQL database table
 Login/Join
 
Platinum Member
posted
I have a fex that we run every quarter that I would like to append the data into a table in MSSQL at the end of every quarter. I've created tables in MSSQL using a permanent hold file but never tried appending data in an already existing table. Anyone know the correct syntax to do this?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
 
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012Report This Post
Guru
posted Hide Post
If you use sql passthru, you just insert the new records using the insert command. If that doesn't work for your situation, could you provide more details?

-EDIT: If the users are entering data on a form, it will be easy to use those variables in a sql passthru statement. If you are running a report and expect that output to be inserted, you could read the results into variables and then call a sql passthru statement, but there may be a better way to do that.

Thanks
J

This message has been edited. Last edited by: J,


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Platinum Member
posted Hide Post
Yes, I had planned on using either a SQL passthru or a modify command to append the data.

So, for example, if I have a focus table with 100 rows in it, can I just use a SQL passthru with a standard SQL insert command to append those 100 rows into the MSSQL table?


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
 
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012Report This Post
Guru
posted Hide Post
quote:
Originally posted by J:
-EDIT: If the users are entering data on a form, it will be easy to use those variables in a sql passthru statement. If you are running a report and expect that output to be inserted, you could read the results into variables and then call a sql passthru statement, but there may be a better way to do that.
You responded too quickly Wink


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Appending data to a MSSQL database table

Copyright © 1996-2020 Information Builders