Click here to Skip to main content
16,014,306 members
Home / Discussions / Database
   

Database

 
GeneralRe: find duplicated rows Pin
rkherath6-Jun-07 0:18
rkherath6-Jun-07 0:18 
QuestionHELP...SQL problem Pin
xuyuan5-Jun-07 17:48
xuyuan5-Jun-07 17:48 
AnswerRe: HELP...SQL problem Pin
andyharman5-Jun-07 23:14
professionalandyharman5-Jun-07 23:14 
Questionconvert varchar to date Pin
rkherath5-Jun-07 17:32
rkherath5-Jun-07 17:32 
AnswerRe: convert varchar to date Pin
Krish - KP5-Jun-07 17:40
Krish - KP5-Jun-07 17:40 
GeneralRe: convert varchar to date Pin
rkherath5-Jun-07 18:55
rkherath5-Jun-07 18:55 
QuestionSSRS;Minus Sign Pin
Amit Kumar G5-Jun-07 16:34
Amit Kumar G5-Jun-07 16:34 
QuestionCalling Ref Cursors in Data Access application blocks Pin
kjosh5-Jun-07 16:21
kjosh5-Jun-07 16:21 
Hi,

I have one procedure in Oracle which is returning the REF Cursor I am accessing it by using the Data access application block DAAB like the following:

OracleParameter param = new OracleParameter();

param.ParameterName = "Emp_Cursor";

param.OracleType = OracleType.Cursor;

param.Direction = ParameterDirection.Output;

param.Size = 3000;

Database db = DatabaseFactory.CreateDatabase("DBConnection");

//DbCommand cmd = db.GetSqlStringCommand("Select * from emp");

DbCommand cmd = db.GetStoredProcCommand("emppackage.select_employee");

db.AddOutParameter(cmd, param.ParameterName, param.DbType, param.Size);

DataSet ds = new DataSet();

ds = db.ExecuteDataSet(cmd);

GridView1.DataSource = ds;

GridView1.DataBind();

But iam getting this error:

ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'SELECT_EMPLOYEE'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


How to call Ref Cursors in DAAB.

Thanks in advance.



QuestionSSIS: Changing app.config settings for a custom dll called from the script task PinPopular
fodonnel5-Jun-07 13:46
fodonnel5-Jun-07 13:46 
QuestionHow to run a stored procedure from within a stored procedure Pin
AndyDev5-Jun-07 13:41
AndyDev5-Jun-07 13:41 
AnswerRe: How to run a stored procedure from within a stored procedure Pin
Krish - KP5-Jun-07 17:52
Krish - KP5-Jun-07 17:52 
GeneralRe: How to run a stored procedure from within a stored procedure Pin
AndyDev5-Jun-07 18:04
AndyDev5-Jun-07 18:04 
GeneralRe: How to run a stored procedure from within a stored procedure Pin
Krish - KP6-Jun-07 1:37
Krish - KP6-Jun-07 1:37 
QuestionSQL problem Pin
kozu5-Jun-07 12:35
kozu5-Jun-07 12:35 
AnswerRe: SQL problem Pin
andyharman5-Jun-07 23:19
professionalandyharman5-Jun-07 23:19 
GeneralRe: SQL problem Pin
kozu6-Jun-07 5:04
kozu6-Jun-07 5:04 
QuestionExporting ERD from Visio 2007 Enterprise Architect to SQL Server 2005 Pin
salman_syed_015-Jun-07 6:10
salman_syed_015-Jun-07 6:10 
QuestionSQL Case problem Pin
si_695-Jun-07 4:19
si_695-Jun-07 4:19 
AnswerRe: SQL Case problem Pin
si_695-Jun-07 4:36
si_695-Jun-07 4:36 
GeneralRe: SQL Case problem Pin
Krish - KP5-Jun-07 17:34
Krish - KP5-Jun-07 17:34 
AnswerRe: SQL Case problem Pin
Ilya Verbitskiy5-Jun-07 4:42
Ilya Verbitskiy5-Jun-07 4:42 
QuestionReporting Services Multilingual ? Pin
ArunkumarSundaravelu5-Jun-07 3:08
ArunkumarSundaravelu5-Jun-07 3:08 
QuestionError in executing stored procedure:not a valid identifier Pin
Kusumasrinivas5-Jun-07 0:24
Kusumasrinivas5-Jun-07 0:24 
AnswerRe: Error in executing stored procedure:not a valid identifier Pin
andyharman5-Jun-07 0:59
professionalandyharman5-Jun-07 0:59 
AnswerRe: Error in executing stored procedure:not a valid identifier Pin
P_pk9-Jun-07 0:15
P_pk9-Jun-07 0:15 

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.