Click here to Skip to main content
15,897,518 members
Home / Discussions / Database
   

Database

 
AnswerRe: Execution Plan Caching and Reuse Pin
Luc Pattyn9-May-11 15:33
sitebuilderLuc Pattyn9-May-11 15:33 
GeneralRe: Execution Plan Caching and Reuse Pin
PIEBALDconsult9-May-11 15:59
mvePIEBALDconsult9-May-11 15:59 
QuestionUpdate All records Pin
ivo758-May-11 1:50
ivo758-May-11 1:50 
AnswerRe: Update All records Pin
Luc Pattyn8-May-11 2:42
sitebuilderLuc Pattyn8-May-11 2:42 
GeneralRe: Update All records Pin
ivo758-May-11 3:11
ivo758-May-11 3:11 
AnswerRe: Update All records Pin
Luc Pattyn8-May-11 3:26
sitebuilderLuc Pattyn8-May-11 3:26 
GeneralRe: Update All records Pin
ivo758-May-11 4:48
ivo758-May-11 4:48 
Questionpossible LINQTOSQL active connections Pin
wjbjnr6-May-11 11:44
wjbjnr6-May-11 11:44 
AnswerRe: possible LINQTOSQL active connections Pin
Mycroft Holmes6-May-11 22:35
professionalMycroft Holmes6-May-11 22:35 
AnswerRe: possible LINQTOSQL active connections Pin
jschell9-May-11 9:46
jschell9-May-11 9:46 
QuestionNeed a little help in working with CLOB data, please [modified] Pin
Michael J. Eber6-May-11 8:50
Michael J. Eber6-May-11 8:50 
QuestionPerformance in Microsoft SQL Server Pin
Mehdi Ghiasi5-May-11 2:17
Mehdi Ghiasi5-May-11 2:17 
AnswerRe: Performance in Microsoft SQL Server Pin
Eddy Vluggen5-May-11 2:51
professionalEddy Vluggen5-May-11 2:51 
GeneralRe: Performance in Microsoft SQL Server Pin
Mehdi Ghiasi5-May-11 8:40
Mehdi Ghiasi5-May-11 8:40 
GeneralRe: Performance in Microsoft SQL Server Pin
Eddy Vluggen5-May-11 9:29
professionalEddy Vluggen5-May-11 9:29 
AnswerRe: Performance in Microsoft SQL Server Pin
basementman5-May-11 5:28
basementman5-May-11 5:28 
GeneralRe: Performance in Microsoft SQL Server Pin
Mehdi Ghiasi5-May-11 8:41
Mehdi Ghiasi5-May-11 8:41 
AnswerRe: Performance in Microsoft SQL Server Pin
wizardzz5-May-11 9:59
wizardzz5-May-11 9:59 
AnswerRe: Performance in Microsoft SQL Server [modified] Pin
Simon_Whale5-May-11 5:48
Simon_Whale5-May-11 5:48 
AnswerRe: Performance in Microsoft SQL Server Pin
PIEBALDconsult5-May-11 16:40
mvePIEBALDconsult5-May-11 16:40 
AnswerRe: Performance in Microsoft SQL Server Pin
Prasanta_Prince6-May-11 19:22
Prasanta_Prince6-May-11 19:22 
QuestionNeed some Oracle help if possible [modified] Pin
Michael J. Eber4-May-11 10:12
Michael J. Eber4-May-11 10:12 
I could use some help with our Oracle implementation.
We are trying to do an insert through a REST service using Oracle.DataAccess.dll.
When we execute UPDATE the process runs without problems. But an INSERT causes a type mismatch error. The frustrating part of this is that we have the database defined to take null for all fields but the fields rejected are null.

Edit:: I should add that we are sending the data as comma delimited strings to the function so there is no numeric fields being passed in the call.

Here is the function we are calling:

CREATE OR REPLACE FUNCTION CNRP.CNRP_S_15_109_STAKEHLD_I (
STAKEHOLDER_ID IN SIMS_STAKEHOLDER.STAKEHOLDER_ID%TYPE,
SITE_ID IN SIMS_STAKEHOLDER.SITE_ID%TYPE,
STAKEHOLDER_TYPE IN SIMS_STAKEHOLDER.STAKEHOLDER_TYPE%TYPE,
TITLE IN SIMS_STAKEHOLDER.TITLE%TYPE,
NAME_FULL IN SIMS_STAKEHOLDER.NAME_FULL%TYPE,
MAIL_ADDRESS IN SIMS_STAKEHOLDER.MAIL_ADDRESS%TYPE,
MAIL_CITY IN SIMS_STAKEHOLDER.MAIL_CITY%TYPE,
MAIL_STATE IN SIMS_STAKEHOLDER.MAIL_STATE%TYPE,
MAIL_ZIP IN SIMS_STAKEHOLDER.MAIL_ZIP%TYPE,
PHONE_HOME IN SIMS_STAKEHOLDER.PHONE_HOME%TYPE,
PHONE_CELL IN SIMS_STAKEHOLDER.PHONE_CELL%TYPE,
PHONE_WORK IN SIMS_STAKEHOLDER.PHONE_WORK%TYPE,
PREF_LANG_WRITTEN IN SIMS_STAKEHOLDER.PREF_LANG_WRITTEN%TYPE,
PREF_LANG_VERBAL IN SIMS_STAKEHOLDER.PREF_LANG_VERBAL%TYPE,
EMAIL IN SIMS_STAKEHOLDER.EMAIL%TYPE,
PHONE_FAX IN SIMS_STAKEHOLDER.PHONE_FAX%TYPE
)
RETURN BOOLEAN
AS
DONE BOOLEAN;

BEGIN
INSERT INTO SIMS_STAKEHOLDER

(SITE_ID,
STAKEHOLDER_TYPE,
TITLE,
NAME_FULL,
MAIL_ADDRESS,
MAIL_CITY,
MAIL_STATE,
MAIL_ZIP,
PHONE_HOME,
PHONE_CELL,
PHONE_WORK,
PREF_LANG_WRITTEN,
PREF_LANG_VERBAL,
EMAIL,
PHONE_FAX)

VALUES (CNRP_S_15_109_STAKEHLD_I.SITE_ID,
CNRP_S_15_109_STAKEHLD_I.STAKEHOLDER_TYPE,
CNRP_S_15_109_STAKEHLD_I.TITLE,
CNRP_S_15_109_STAKEHLD_I.NAME_FULL,
CNRP_S_15_109_STAKEHLD_I.MAIL_ADDRESS,
CNRP_S_15_109_STAKEHLD_I.MAIL_CITY,
CNRP_S_15_109_STAKEHLD_I.MAIL_STATE,
CNRP_S_15_109_STAKEHLD_I.MAIL_ZIP,
CNRP_S_15_109_STAKEHLD_I.PHONE_HOME,
CNRP_S_15_109_STAKEHLD_I.PHONE_CELL,
CNRP_S_15_109_STAKEHLD_I.PHONE_WORK,
CNRP_S_15_109_STAKEHLD_I.PREF_LANG_WRITTEN,
CNRP_S_15_109_STAKEHLD_I.PREF_LANG_VERBAL,
CNRP_S_15_109_STAKEHLD_I.EMAIL,
CNRP_S_15_109_STAKEHLD_I.PHONE_FAX);

RETURN TRUE;
EXCEPTION

WHEN OTHERS THEN RETURN FALSE;
END;
/

modified on Wednesday, May 4, 2011 4:43 PM

AnswerRe: Need some Oracle help if possible Pin
Chris Meech5-May-11 3:37
Chris Meech5-May-11 3:37 
GeneralRe: Need some Oracle help if possible Pin
Michael J. Eber5-May-11 8:16
Michael J. Eber5-May-11 8:16 
GeneralRe: Need some Oracle help if possible Pin
jschell5-May-11 8:30
jschell5-May-11 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.