Click here to Skip to main content
16,011,784 members
Home / Discussions / Database
   

Database

 
QuestionProblem inserting xml string into temp table (inserting only a part of string not complete) Pin
sandeep kumar pundhir1-Sep-06 2:18
sandeep kumar pundhir1-Sep-06 2:18 
QuestionRe: Problem inserting xml string into temp table (inserting only a part of string not complete) Pin
Eric Dahlvang1-Sep-06 4:01
Eric Dahlvang1-Sep-06 4:01 
AnswerRe: Problem inserting xml string into temp table (inserting only a part of string not complete) Pin
sandeep kumar pundhir1-Sep-06 5:20
sandeep kumar pundhir1-Sep-06 5:20 
GeneralRe: Problem inserting xml string into temp table (inserting only a part of string not complete) Pin
Eric Dahlvang1-Sep-06 5:34
Eric Dahlvang1-Sep-06 5:34 
QuestionIDENTITY (1, 1) Pin
Brendan Vogt1-Sep-06 1:38
Brendan Vogt1-Sep-06 1:38 
AnswerRe: IDENTITY (1, 1) Pin
Eric Dahlvang1-Sep-06 12:10
Eric Dahlvang1-Sep-06 12:10 
Questionconcurrency violation Pin
webspeed1-Sep-06 0:20
webspeed1-Sep-06 0:20 
QuestionColumns not displaying in Crystal Report Pin
Ratish Aravind31-Aug-06 8:28
Ratish Aravind31-Aug-06 8:28 
Hi,

Iam using PUSH model to create my crystal report document.
The stored procedure which iam using returns a refcursor.
The first 3 columns of the table(FirstName,MiddleName and LastName) are combined as returned as single column,similarly columns address1,address2,city,state and zipcode are returned as single column.

Here is the Code:

OracleConnection cnOracle=new OracleConnection(connectionString);
cnOracle.Open();
OracleCommand cmdRegistrant = new OracleCommand("Pkg_WRTS_Retrieve.prc_getregdata", cnOracle);
cmdRegistrant.CommandType = CommandType.StoredProcedure;
try
{
OracleParameter paramFirstName=new OracleParameter("i_first_name",OracleDbType.Varchar2,50,ParameterDirection.Input);
if(txtFirstname.Text.Equals(string.Empty))
paramFirstName.Value=string.Empty;
else
paramFirstName.Value=txtFirstname.Text;
OracleParameter paramLastName=new OracleParameter("i_last_name",OracleDbType.Varchar2,50,ParameterDirection.Input);
if(txtLastname.Text.Equals(string.Empty))
paramLastName.Value=string.Empty;
else
paramLastName.Value=txtLastname.Text;
OracleParameter paramCountyName=new OracleParameter("i_county_name",OracleDbType.Varchar2,20,ParameterDirection.Input);
if(txtCounty.Text.Equals(string.Empty))
paramCountyName.Value=string.Empty;
else
paramCountyName.Value=txtCounty.Text;
OracleParameter paramCityName=new OracleParameter("i_city",OracleDbType.Varchar2,50,ParameterDirection.Input);
if(txtCity.Text.Equals(string.Empty))
paramCityName.Value=string.Empty;
else
paramCityName.Value=txtCity.Text;
OracleParameter paramCompany=new OracleParameter("i_compent_name",OracleDbType.Varchar2,200,ParameterDirection.Input);
if(txtCompany.Text.Equals(string.Empty))
paramCompany.Value=string.Empty;
else
paramCompany.Value=txtCompany.Text;

// create parameter object for the output
OracleParameter paramResultSet = new OracleParameter();
paramResultSet.OracleDbType=OracleDbType.RefCursor;
// this the output parameter which is returned from the stored procedure
paramResultSet.Direction = ParameterDirection.Output;

// add the parameter to the collection
cmdRegistrant.Parameters.Add(paramFirstName);
cmdRegistrant.Parameters.Add(paramLastName);
cmdRegistrant.Parameters.Add(paramCountyName);
cmdRegistrant.Parameters.Add(paramCityName);
cmdRegistrant.Parameters.Add(paramCompany);
cmdRegistrant.Parameters.Add(paramResultSet);

//Execute the CommandWrapper
OracleDataAdapter daUserDetails=new OracleDataAdapter(cmdRegistrant);
dataSet = new DataSet();
daUserDetails.Fill(dataSet,"WRTS_REGISTRANT");
RegReport = new RegistrantReportViewer();
RegReport.SetDataSource(dataSet.Tables[0]);
//RegReport.SetDataSource(dsReport);
RegistrantViewer.Visible=true;
RegistrantViewer.ReportSource = RegReport;


When i run the application the field's name and address are not displayed in the report,but all the other columns are displayed.
I think its because the datatabe has a combined value of 3 columns but im not able to display it in report properly.Similar for address column also.
Can anyone tell me how to map the datatable column to crystal report column so that the data will be displayed?????
Any reply will be appreciated!!!

Thanks,
Ratish.


Ratish

QuestionHow to overcome transaction deadlock error Pin
kavithapuranik31-Aug-06 1:11
kavithapuranik31-Aug-06 1:11 
AnswerRe: How to overcome transaction deadlock error Pin
Stephen McGuire31-Aug-06 2:32
Stephen McGuire31-Aug-06 2:32 
AnswerRe: How to overcome transaction deadlock error Pin
Colin Angus Mackay31-Aug-06 4:47
Colin Angus Mackay31-Aug-06 4:47 
QuestionSql Server2000: Msg 8101 Pin
indiaone30-Aug-06 23:37
indiaone30-Aug-06 23:37 
AnswerRe: Sql Server2000: Msg 8101 Pin
Mike Dimmick31-Aug-06 3:03
Mike Dimmick31-Aug-06 3:03 
QuestionHow to present data to user in HTML table. Pin
HimaBindu Vejella30-Aug-06 22:36
HimaBindu Vejella30-Aug-06 22:36 
AnswerRe: How to present data to user in HTML table. Pin
Sage1-Sep-06 0:22
Sage1-Sep-06 0:22 
Questionstored procedure yazan 3 Pin
yazan_zahi30-Aug-06 22:25
yazan_zahi30-Aug-06 22:25 
AnswerRe: stored procedure yazan 3 Pin
Colin Angus Mackay31-Aug-06 4:52
Colin Angus Mackay31-Aug-06 4:52 
GeneralRe: stored procedure yazan 3 Pin
Sage1-Sep-06 0:23
Sage1-Sep-06 0:23 
GeneralRe: stored procedure yazan 3 Pin
Colin Angus Mackay1-Sep-06 0:45
Colin Angus Mackay1-Sep-06 0:45 
GeneralRe: stored procedure yazan 3 Pin
Sage1-Sep-06 0:51
Sage1-Sep-06 0:51 
GeneralRe: stored procedure yazan 3 Pin
Colin Angus Mackay1-Sep-06 10:49
Colin Angus Mackay1-Sep-06 10:49 
Questionstored procedure yazan 2 Pin
yazan_zahi30-Aug-06 21:42
yazan_zahi30-Aug-06 21:42 
AnswerRe: stored procedure yazan 2 Pin
HimaBindu Vejella30-Aug-06 22:39
HimaBindu Vejella30-Aug-06 22:39 
AnswerRe: stored procedure yazan 2 Pin
Colin Angus Mackay31-Aug-06 4:50
Colin Angus Mackay31-Aug-06 4:50 
Questionstored procedure yazan Pin
yazan_zahi30-Aug-06 21:41
yazan_zahi30-Aug-06 21:41 

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.