Databases :: How To See Datatypes Of Columns When Using Stored Procedure

Feb 1, 2011

I am using PL/SQL Developer.I have a below query select distinct

DATA_SRC_CD as Source,
FILE_NM as File_Name,
PATH as File_Path
from PKG_SFI_REPORTS.DATALOAD2SUMMARYETLRPRT("FACTS","CM_DDL_PARTY_2011_01_12_08_24_09.DAT")
In the above Query PKG_SFI_REPORTS => Package, DATALOAD2SUMMARYETLRPRT=> Procedure.
"FACTS" and "CM_DDL_PARTY_2011_01_12_08_24_09.DAT" => Parameters
Now I need to know the Data Types of "DATA_SRC_CD" and "FILE_NM" and "PATH". How can I Know?

View 3 Replies


Similar Messages:

Databases :: See Columns And Corresponding Datatypes In Table

Jan 13, 2011

I am using PL/SQL Developer. I have a Table "C_PARTY_HXRF". Now I want see the Column Names and the corresponding Data types of this Table. Which Command should I Use?

View 28 Replies

Databases :: How To Return A Value From A Stored Procedure

Jan 5, 2010

i have a stored procedure and i want to return a value from that procedure and returned value i want to store in a variable Stored Procedure is create procedure simpleproc(OUT pcount int)begin set @pcount=(select count(*) from testtable); end

Now i call this proc from C# code

string query="CALL simpleproc(@count)";
MySqlCommand commond = new MySqlCommand();
MySqlParameter returnValue = new MySqlParameter("@count", DbType.Int32);
returnValue.Direction = ParameterDirection.ReturnValue;
commond.Parameters.Add(returnValue);
commond.CommandText = query;
commond.Connection = con; // I already set the connection in con and opened it
commond.ExecuteNonQuery();
int count = Int32.Parse(command.Parameters["@count"].Value.ToString());

What should i have to change to get return value in count

View 4 Replies

Databases :: Pass Value Into Stored Procedure?

Jun 5, 2010

var a=conn.getData2();//getting the value from a global class conn.cs
OracleConnection con = conn.s();
OracleCommand oc = new OracleCommand("logedin(I need to pass the value here)", con);

logedin is strored procedure :-

create procedure logedin(user_id in int)
as
begin
update user_details set status='logedin'
where userid=user_id;
end;

i would lke to pass the value into the stored proc that was retrieved by the variable into the database.

View 4 Replies

Databases :: How To Return A Table Through A Stored Procedure

Mar 24, 2010

I'm not so familiar with stored procedures but I'm interesting in moving most of my web selects to stored procedures. I'm working with .net based website and all my data access is something like this:

[Code]....

But now I want to improve some process and make tunings. For that I want to use stored procedures, so instead of the "SELECT ...." sentence I'll put stored procedure name. My problem is how to return a table from one.

View 3 Replies

Databases :: How To Call Oracle Stored Procedure

Feb 23, 2011

I would like to know if there is a way to call Oracle stored procedure from inside code?

View 2 Replies

Databases :: Debug Mysql Stored Procedure

Jan 18, 2011

I'm using the MySQL as back end , huge stored procedures are there. Is there any way to debug them using Visual studio 2008 or any other products.

View 4 Replies

Databases :: ORA-00932: Inconsistent Datatypes?

Feb 18, 2010

I have a code potion that runs a particular SQL and Fill the data in to a DataTable:

[Code]....

This code is working perfectly for a Query in my local machine without any error. But when I am trying to run this code in my friends machine (which is in the same network) I am getting the error 'ORA-00932: inconsistent datatypes'.I have tried to run the SQL in the database also (with the same user), but got no errors there. Could somebody please help me to get out of this problem?Here is the SQL I am running, the query is basically returning all the jobs that are being scheduled under Oracle 10g scheduler and the count of errors they have from the previous day:

[Code]....

View 1 Replies

Databases :: Calling AS400 Stored Procedure From C# Coding?

Sep 12, 2010

I have a req in which I have to call an AS400 stored procedure.The stored has an input and output parameter.

View 9 Replies

SQL Server :: Stored Procedure To Update The Columns Data?

Aug 19, 2010

I've a table (named NoAccent) with a colum 'Title'. I need to write a store procedure so that if any special characters found in the title it should update (I'll set the sql agent to run the procedure in a specific time interval) e.g.

[Code]....

View 3 Replies

Databases :: How To Use Oracle Stored Procedure To Send Mail With Attachment

Apr 10, 2010

i want to send mails internally and externally for eg. i want to send mail to my boss in the company and also to the customer which doesnt belong to our domain.

[URL]

and also i want to attach an excel file which is stored in my computer. so how am i going to access that file through the same procedure and then attach the file and send it to both internal as well as external email ids.

View 1 Replies

Databases :: Accessing Stored Procedure With Try Catch Finally Block

Apr 2, 2010

I wrote a stored procedure call with the format:

bool isValid=true;

using (OracleConnection myConn = new OracleConnection(connectionString))
{
OracleCommand myCmd = new OracleCommand("sproc", myConn);
myCmd.CommandType = CommandType.StoredProcedure;
myCmd.Parameters.AddWithValue("p1", a1);[code].....

Second format just doesn't feel right but I am not that experienced. I am curious if there is any downfall to that other than exception not being type specific.

View 4 Replies

AJAX :: Autocomplete Format With Multiple Columns From Stored Procedure?

Jan 21, 2010

I'm using the Autocomplete extender, it works great however I need to be able to display multiple columns from my stored procedure as have in the example below. The user enters a location #, I need it to display the location number and the address formatted, but when the user selects the correct location, I ONLY want the location number to populate my textbox:

1234
Address
City, State Zip

I've had a real hard time trying to figure out how to do this,. Here's my stored procedure and CS code.

[Code]....

Here's my CS:

[Code]....

View 3 Replies

Web Forms :: Selecting Columns From Stored Procedure In Button Event

Apr 27, 2016

how can I use a "where clause" in the below stored procedure to retrieve columns and display in gridview? I have three textboxes on the form. One is for user to enter "regno" to retrieve record for a particular students, the remaining two textboxes are for "from date" and "to date" respectively so that user can select from date and to date from two calendar controls I have on the form. On selection date appears in the two textboxes so that records can be retrieved based on the selected date.

CREATE PROCEDURE [dbo].[GetAttendanceByHours] AS BEGIN

Select *,ISNULL(NO_HRS_PRESENT,0)*100/ ((ISNULL(NO_HRS_PRESENT,0))+(ISNULL(NO_HRS_ABSNT,0))) PRSNT_PERC,ISNULL(NO_HRS_ABSNT,0)*100/ ((ISNULL(NO_HRS_PRESENT,0))+(ISNULL(NO_HRS_ABSNT,0))) ABSNT_PERCfrom(selectREGNO,FIRSTNAME,LASTNAME,MAX(case when status = 'P' THEN CNT end) NO_HRS_PRESENT,MAX(case WHEN STATUS = 'A' THEN CNT END) NO_HRS_ABSNT from(selectREGNO,FIRSTNAME, LASTNAME,status,count(status) CNT from AttendanceTablegroup by regno,firstname, lastname, status ) AGROUP BY regno,firstname, lastname) tmpEND

View 1 Replies

SQL Server :: Search Multiple Columns Of Different Datatypes From 1 Parameter?

Nov 11, 2010

We have 2 tables that i need to search thru..we are trying to be as flexible as possible with this search page.. a very stripped down version of how search engines are setup..

You have 1 textbox and are free to enter what ever you want..

Well in our case.. we want to setup a textbox on the page.. and pass that into our procedure and have it look thru 5 differnet columns ( id, date, name, time, number )

So if i enter say 1974 into the field, i want to go find any record that contains that in any of the 5 columns..

Is this possible without using SQL Full text indexing??

View 7 Replies

Forms Data Controls :: How To Use A GridView With A Stored Procedure With Changing Columns

Sep 21, 2010

I have a stored procedure that returns a dataset with a different number of columns and different column names depending on user input. How can I use this with a GridView? Normally I define the columns beforehand in a static fashion, but, have never done a dynamic dataset like this.

View 1 Replies

Forms Data Controls :: Styling Columns In GridView From Stored Procedure?

Feb 16, 2010

Im loading some results from a SQL Stored procedure into a Grid View. From my stored procedure I simply get 2 columns returned, Details and Savings, the savings are being returned in the format 30.50123 I want to limit this to 2 decimal places and put a euro sign in front of it like so €30.50, I have managed to do this however its adding a new "savings"column to my Grid view which I obviously don't want. So I now have a savings column with the correct format of €30.50 and my 2 columns from my stored procedure

details and savings. Heres my code....

[Code]...

View 2 Replies

How To Display Stored Procedure Result Set Rows As Columns In RDLC Report

Jan 12, 2011

Below is the result set when I execute my stored procedure. Based on condition no.of rows will change. I am using typed dataset to store result set.

NSV QTY MONTH/YEAR

264.95 31248 APR/07
273.23 34044 MAY/07
230.96 22232 JUN/07
711.93 81992 JUL/07
427.23 50345 AUG/07
297.90 36961 SEP/07
495.37 43079 OCT/07
648.48 52428 NOV/07
622.06 46364 DEC/07
407.02 46461 JAN/08
605.45 73439 FEB/08
224.81 28121 MAR/08
308.12 33356 APR/08
328.22 35605 MAY/08
372.41 34107 JUN/08

I have to show above result in RDLC file Like below.

APR/07 MAY/07 JUN/07................JUN/08
264.95 273.23 230.96.................372.41
31248 34044 22232 ...............34107

RDLC report? If I use table control,

View 2 Replies

SQL Reporting :: How To Display Stored Procedure Result Set Rows As Columns In RDLC Report

Jan 12, 2011

Below is the result set when I execute my stored procedure. Based on condition no.of rows will change. I am using typed dataset to store result set.

NSV QTY MONTH/YEAR

264.95 31248
APR/07
273.23 34044
MAY/07
230.96 22232
JUN/07
711.93 81992
JUL/07
427.23 50345
AUG/07
297.90 36961
SEP/07
495.37 43079
OCT/07
648.48 52428
NOV/07
622.06 46364
DEC/07
407.02 46461
JAN/08
605.45 73439
FEB/08
224.81 28121
MAR/08
308.12 33356
APR/08
328.22 35605
MAY/08
372.41 34107
JUN/08

I have to show above result in RDLC file Like below.

APR/07 MAY/07 JUN/07................JUN/08
264.95 273.23 230.96.................372.41
31248 34044 22232 ...............34107

View 3 Replies

SQL Server :: Dynamic Pivot In Stored Procedure / Error - Incorrect Syntax Near '+@columns+'

Nov 2, 2010

i have a dynamic pivot table which has a parameter passed in stored procdure

i have temp table to store columns in it to be dynamic and also a parameter

but this script make me go mad

colud you find me the error Inncorrect syntax near '+@columns+'Item_Group2 table structure is ID,Name,Group1_ID this is script

[Code]....

View 6 Replies

DataSource Controls :: How To Convert The Oracle Stored Procedure To Sqlserver 2005 Stored Procedure

Apr 2, 2010

This is surareddy. i nead some small clarification in the "Stored Procedure"

how to convert the oracle Stored Procedure to sqlserver2005/2008 Stored Procedure.

right now i am enhancing the project that project already developed the oracle Stored Procedure. now our company is using sqlserver 2005/2008.

how to convert the Oracle Stored Procedure to sqlserver 2005 Stored Procedure

View 4 Replies

DataSource Controls :: Do Not Use Or Call Any Stored Procedure But It Says "Could Not Find Stored Procedure 'xxxxx'?

Dec 9, 2010

Initially, I have tried to use stored procedure. But I changed my mind and preferred to call sql query in codebase with command text. However, it stills tries to find initially-called stored procedure (which is neither called or exists).I think that it is related caching. But I tried it with different browsers it did not work.What might be the reason?

View 4 Replies

SQL Server :: Have A Stored Procedure Execute Another Stored Procedure During Time Period?

Jan 28, 2011

I could probably figure this out if I tried to, but I have been working so long on code, I'm a little fried

I have a stored procedure, and I want to execute another stored procedure during a time period of lets say 1/1/2011 to 12/31/2011

How Would I accomplish this?

View 4 Replies

SQL Reporting :: How To Add Stored Procedure Result Set Columns To Typed Dataset And Dataset To RDLC File

Jan 9, 2011

Till now I used to design RDLC file before and assigned typed dataset table columns.Report processing mode is local. But now my stored procedure returns different columns based on condition i.e columns are not fixed every time. Now I need to add that columns to typed dataset and dataset is assigned to RDLC file. So dataset and RDLC files are create dynamically based on stored procedure result set columns.

View 1 Replies

DataSource Controls :: Execute A Stored Procedure Within A Stored Procedure?

Jan 18, 2010

Does anybody if it is possible that a stored procedure returns rows which is the result of the execution of another sp? Something like..

[Code]....

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved