Click here to Skip to main content
15,911,139 members
Home / Discussions / Database
   

Database

 
GeneralRe: debugging a stored procedure Pin
SudhirKankal4-Jun-13 23:52
SudhirKankal4-Jun-13 23:52 
AnswerRe: debugging a stored procedure Pin
coded0075-Jun-13 4:46
professionalcoded0075-Jun-13 4:46 
QuestionConverting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Dale Haessel3-Jun-13 10:35
Dale Haessel3-Jun-13 10:35 
AnswerRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Jörgen Andersson3-Jun-13 10:44
professionalJörgen Andersson3-Jun-13 10:44 
GeneralRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Dale Haessel3-Jun-13 11:27
Dale Haessel3-Jun-13 11:27 
GeneralRe: Converting over from System.Data.OracleClient to ODP.NETs Oracle.DataAccess.Client Pin
Jörgen Andersson3-Jun-13 22:43
professionalJörgen Andersson3-Jun-13 22:43 
QuestionSSIS: How to import many tables? Pin
biop.codeproject2-Jun-13 20:46
biop.codeproject2-Jun-13 20:46 
AnswerRe: SSIS: How to import many tables? Pin
Mycroft Holmes3-Jun-13 1:00
professionalMycroft Holmes3-Jun-13 1:00 
GeneralRe: SSIS: How to import many tables? Pin
biop.codeproject18-Jun-13 4:21
biop.codeproject18-Jun-13 4:21 
QuestionData Base administrator vs software developer Pin
saurabhspk2-Jun-13 9:18
saurabhspk2-Jun-13 9:18 
AnswerRe: Data Base administrator vs software developer Pin
PIEBALDconsult2-Jun-13 9:48
mvePIEBALDconsult2-Jun-13 9:48 
AnswerRe: Data Base administrator vs software developer Pin
Mycroft Holmes2-Jun-13 11:16
professionalMycroft Holmes2-Jun-13 11:16 
AnswerRe: Data Base administrator vs software developer Pin
Richard MacCutchan2-Jun-13 20:56
mveRichard MacCutchan2-Jun-13 20:56 
GeneralRe: Data Base administrator vs software developer Pin
saurabhspk4-Jul-13 9:57
saurabhspk4-Jul-13 9:57 
GeneralRe: Data Base administrator vs software developer Pin
Richard MacCutchan4-Jul-13 20:49
mveRichard MacCutchan4-Jul-13 20:49 
AnswerRe: Data Base administrator vs software developer Pin
Bernhard Hiller2-Jun-13 22:47
Bernhard Hiller2-Jun-13 22:47 
AnswerRe: Data Base administrator vs software developer Pin
jschell3-Jun-13 9:07
jschell3-Jun-13 9:07 
GeneralRe: Data Base administrator vs software developer Pin
SudhirKankal4-Jun-13 23:56
SudhirKankal4-Jun-13 23:56 
AnswerRe: Data Base administrator vs software developer Pin
Saranya-from-Tamil-Nadu-India6-Jun-13 23:58
Saranya-from-Tamil-Nadu-India6-Jun-13 23:58 
QuestionInserting Master and DEtail Tables Pin
indian14331-May-13 14:53
indian14331-May-13 14:53 
AnswerRe: Inserting Master and DEtail Tables Pin
Mycroft Holmes1-Jun-13 2:35
professionalMycroft Holmes1-Jun-13 2:35 
GeneralRe: Inserting Master and DEtail Tables Pin
indian1431-Jun-13 17:38
indian1431-Jun-13 17:38 
Is it better to use cursors or is it better to use multiple stored procs to do the same. Because the same thing I can achieve by using Cursor in stored proc. But its really really slow. Like may be its processing 23000 records per 40 minutes.
I need to process 1 million records.

And as you said If I call the database for each insert, isnt it going to be more back and forth traffic from the application database server vice versa.

I tried my best to avoid cursors, only one way is to use function but I have to use my connection with some special permissions to execute Insert command within UDF. It seems its not easy in the organization.

I am trying to put the insert logic in the stored proc and calling that stored proc within fuction but it is asking for the below permission. I am not sure if I can really do that in this way but when I am trying it failed to execute with the below error. Then I went for the Cursor approach but its running for too long. Please if you can please advice me something, I have to finish it as soon as possible.

EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
RECONFIGURE WITH OVERRIDE

Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
Msg 5808, Level 16, State 1, Line 2
Ad hoc update to system catalogs is not supported.

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

GeneralRe: Inserting Master and DEtail Tables Pin
Mycroft Holmes1-Jun-13 17:59
professionalMycroft Holmes1-Jun-13 17:59 
GeneralRe: Inserting Master and DEtail Tables Pin
indian1432-Jun-13 12:18
indian1432-Jun-13 12:18 
GeneralRe: Inserting Master and DEtail Tables Pin
Mycroft Holmes2-Jun-13 12:35
professionalMycroft Holmes2-Jun-13 12:35 

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.