Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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!
 Architect Forums - ADO General
Forum to discuss ADO specific questions for use with SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ADO General | New ThreadView:  Search:  
 Author  Thread: Can I do an INSERT INTO with an OLEDB connection?
joe
Posts: 26
 
Can I do an INSERT INTO with an OLEDB connection?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jan 09 7:29 AM
If I run a select it works. However the insert fails with
ERROR = An unknown or internal error has occurred.



connDb = "Provider=SLXOLEDB.1assword=\"altja\"ersist Security Info=True;User ID=altja;Initial Catalog=SALESLOGIX_SANDBOX_JOE;Data Source=us3grrp576a;Extended Properties=\"Port=1706;Log=On;\"";


INSERT INTO [SalesLogix_SandBox_Joe].[sysdba].[HISTORY]([HISTORYID],[TYPE],[ACCOUNTID],[OPPORTUNITYID],[ACCOUNTNAME],[STARTDATE],[DURATION],[DESCRIPTION],[TIMELESS],[USERID],[USERNAME],[ORIGINALDATE],[CREATEDATE],[CREATEUSER],[MODIFYDATE],[MODIFYUSER],[COMPLETEDDATE],[COMPLETEDUSER],[NOTES],[LONGNOTES])VALUES('HAAAAA000010','262148','AAAAAA000000','OAAAAA000002','**Alt Landscaping',dateadd(hh, 5, getdate()),'0','Update From IPS','T','ADMIN','Administrator',dateadd(hh, 5, getdate()),dateadd(hh, 5, getdate()),'ADMIN',dateadd(hh, 5, getdate()),'ADMIN',dateadd(hh, 5, getdate()),'ADMIN','Update From IPS','Update From IPS')
[Reply][Quote]
joe
Posts: 26
 
Re: Can I do an INSERT INTO with an OLEDB connection?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jan 09 12:31 PM
Simplfied my problem.

This works in SQL, but not in SLX Admin. I get. ERROR = An unknown or internal error has occurred.

INSERT INTO [HISTORY]
([HISTORYID])
VALUES
('HAAAAA00JOE1')

Please does anyone know how I can insert a row into the History table.
[Reply][Quote]
joe
Posts: 26
 
Re: Can I do an INSERT INTO with an OLEDB connection?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jan 09 12:58 PM
Solved. Remove the brackets and that was my problem. So simple yet so frustrating.
[Reply][Quote]
Jim
Posts: 8
 
Re: Can I do an INSERT INTO with an OLEDB connection?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jan 09 10:45 AM
Just remember to escape those quotes if your going to do INSERT INTO statements. Or you'll get an unwelcome suprise.
[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): 11/22/2024 10:40:30 AM