Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, May 15, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: Bulk Inserts into SLX
Shane
Posts: 38
 
Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Sep 08 6:09 AM
Is there an easy way to do BULK Inserts into a Custom Table I've created in the SalesLogix DB?

I have to do all the inserts through the Provider so that SLX can do all of it's synchronizing and "other stuff"
But I have like 20,000 lines of data I need to insert into a table and I was curious if there was a way I could just use

Insert BULK

And than somehow indicate to the SLX system that it needs to "synchronize" with that data?

Or do I just need to do line by line inserts?
[Reply][Quote]
Shane
Posts: 38
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 08 6:17 AM
anything?

It seems like the only way to insert data into SLX is line by line by line by line by line

I need to take 89,000 rows from one table and insert them into another table
the ONLY way I've found to do this is to retrieve all 89,000 into a local datasource than one by one insert each line into the second table...

which (on our production server) seems to be taking forever and occasionally locking...

What would be really nice to do is:

insert into TABLE1 (COLUMNS)
select (VALUES) FROM TABLE2

But sadly even when you set AUTOINCREMENT TO True on the sectabledefs table this statement fails
the autoincrementing only supports line by tedious line

any suggestions or insight would be wonderful
thanks

[Reply][Quote]
Stephen Redmond
Posts: 190
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 08 12:56 PM
Hi Shane,

Are you using DTS to copy the info in? My experience with DTS is that it works very well when the AUTO flag is on for key generation. It is very good at doing it very fast too.



Stephen
[Reply][Quote]
Shane
Posts: 38
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 08 3:35 PM
I'll try that....

Does insert into TABLE (COLUMNS) select (vALUES) FROM TABLE2

work with SLX very well?

I tried running it through the provider and the createdate, etc... fields all remained null
(which is really no surprise)

but would a statement like that generally be a bad idea?
or will it still synchronize with remote clients etc...?
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 08 6:53 PM
You cannot do bulk inserts via the provider. As you have suggested you will need to loop through your data and insert one at a time.

Timmus
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Oct 08 8:14 PM
I agree with Stephen: DTS/SSIS is the way to go. Performance should not be so bad, but the amount of dev work required when compared with INSERT INTO is considerable ...

Phil
[Reply][Quote]
David
Posts: 29
 
Re: Bulk Inserts into SLXYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Oct 08 12:39 AM
Hi

Inaport (disclosure: from us) could save you some dev time and provide you with data transformation capabilites as well.

Regards

David Evans
http://www.inaplex.com
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/15/2024 8:38:34 AM