Home > Ask the Domino Experts > ARCHIVE: Enterprise Integration Questions & Answers > Two stored procedure events not working with DECS and SQL Server backend
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Two stored procedure events not working with DECS and SQL Server backend

Scott Lemieux EXPERT RESPONSE FROM: Scott Lemieux

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 27 August 2004
I am an Access/SQL developer, new to the Domino/Notes field. When I set up DECS with SQL Server 2000 as backend -- fields in Notes linked to external fields -- there are no problems.

If I try with a simple form, for the four events (create, open, update, delete) using stored procedures, two of them are OK (delete, open), but the other two receive an error message, "Server error: Realtime service error inserting external record."

I ran SPROC from query analyzer with default data. It ran OK and assigned the correct permissions to the user. Is there a way I can troubleshoot this problem?

CREATE    Procedure sprocSQLEmployee
_Settings_CREATE ( 
@PK  varchar(50), @Description text, 
@Setting varchar(100), @Values text) 
with recompile 
As 
set nocount on 

declare @err int 
set @err = 0 
begin tran 

INSERT INTO Settings (PK, Description , 
Setting, [Values] ) 

VALUES 

(@PK, @Description , @Setting , 
@Values) 

set @err=@@error 

if @err=0 
commit tran 
else 
rollback tran 

return 

GO 

>
EXPERT RESPONSE
LEI and DECS both struggle with stored procedures. That being said, it looks to me like the SPROC is performing a rather simple insert to Settings table/view, so take the SP out of the picture. I suggest you try a "create" and or "update" going directly at the table/view.

Do you have comments on this Ask the Expert question and response? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
ARCHIVE: Enterprise Integration
Restricted in connecting LEI to Notes databases?
Integrate Domino 7 beta with DB2
Can I use LSXDB2 in a scheduled agent on AIX, Domino version 5?
Tracking interdependent LEI activities
Oracle table updates not transmitting to Notes
Oracle through DECS via the Web connection returns 'Error creating product object'
Can I code a Notes script to bundle LEI-polling sequence activity?
Error using LEI 6 with Domino 6.02 server
Creating a database that will support concurrent entries with automatic updates
Managing user rights for Domino docs transferred to SAP

LEI and DECS for Lotus Notes Domino
Top 10 Lotus Notes Domino programming and development tips of 2007
An introduction to Lotus Enterprise Integrator (LEI)
A smorgasbord of Notes/Domino development tips
DECS and DCR external data access considerations
Importing data once from Oracle app into Notes app
Moving data (text) from Lotus database to Oracle
Restricted in connecting LEI to Notes databases?
Lotus Enterprise Integrator (LEI)
Integrate Domino 7 beta with DB2
Automated export of selected public NAB information

Lotus Notes Domino Performance
Repair Lotus Domino server 'Cannot write or create file' error
What is slowing down my Domino server?
Move a Lotus Domino server to a new certifier without a reinstall
A batch file for Lotus Notes Domino maintenance on Windows Server 2003
Top 10 Lotus Notes Domino administration tips of 2007
Lotus Domino Server performance-tuning pointers
Log off idle Lotus Notes users for better Domino Server performance
Slow Domino server performance and failure on agent managers
Top 10 Notes/Domino administration tips of 2006
Two fast and easy Domino Web Access performance tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts