Spooling the output of a Query with out displaying the rows
Hello All,
Is it possible to spool the output of
a query/dbms_output.put_line with out displaying
the Query output on the console.
In my case,list of rows in the output is huge, I want
to eliminate displaying the output of query
so that spooling will complete faster.
Thanks in advance.
-Srini
You can do:
SET TERMOUT OFFIn your script before doing the spool command.
You will have to write your query as a .SQL script and run it from SQL*Plus in order for it to work the way you expect.
sqlplus -s username/password @query_script.SQL
Similar Messages
-
Is their a way to activate the "find my iphone" app with out having the iphone with you
is their a way to activate the "find my iphone" app with out having the iphone with you
how do i activate the lost mode on my "find my iphone" app without reporting it lost? What do i have to do to activate this app prior to any loss? [email protected] Thanks, JN
-
How to display the alv report blocks wise with out using the blocked alv
Hi
How to display the alv report with out using the blocked alv function module.
Thanks
Chinnusee this Standard Program
RPR_ABAP_SOURCE_SCAN -
thinking of getting an ipad but want to get most current... also when id the next ipad coming out??
The version on the UK site ('iPad with Retina display') is the iPad 4, which is the current version. In terms of when a new model might be released, nobody on here will know until if/when Apple announce something
-
Data filtering in XML report with out changing the underlying query
Hi, This is Nagesh and from Verizon.
I'm testing Query based XML report in Peoplesoft 9.1 app with tools version 8.5.
I'm trying to filter the data on XML Report template with out changing the underlying PS query. I mean filter the data on the report to only specific accounts though the underlying PS query query return transactions booked to all Accounts for a given Legal Entity. Is it possible. any advise or idea is highly appreciated.
Thanks
AgesIf the value is not of importance how come it became obligatory in your program?
Any how you can do one thing...Put some value in your obligatory field, put a debugger point where you are interested in and use the pencil tool to change the value of the field while debugging.
Regards,
Philip. -
Please suggest a select query / sub query with out using any subprograms or
source table: Three columns ORIGIN, DESTINATION,MILES
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Melbourne Sydney 1000
Brisbane Sydney 1000
Perth Darwin 4000
Sydney Brisbane 1000
out put :Three columns ORIGIN, DESTINATION,MILES
Duplicate routes are to be ignored so the output is
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Brisbane Sydney 1000
Perth Darwin 4000
Please suggest a select query / sub query with out using any subprograms or functions/pkgs to get the out put table.Hi,
user9368047 wrote:
... Please suggest a select query / sub query with out using any subprograms or functions/pkgs to get the out put table.Why? If the most efficient way to get the results you want involves using a function, why wouldn't you use it?
Here's one way, without any functions:
SELECT a.*
FROM source_table a
LEFT OUTER JOIN source_table b ON a.origin = b.destination
AND a.destination = b.origin
AND a.miles = b.miles
WHERE b.origin > a.origin -- Not b.origin > b.origin
OR b.origin IS NULL
;If you'd care to post CREATE TABLE and INSERT statements for your sample data, then I could test this.
Edited by: Frank Kulash on Nov 6, 2012 7:39 PM
Corrected WHERE clause after MLVrown (below) -
Procedure to save the output of a query into excel file or flat file
Procedure to save the output of a query into excel file or flat file
I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
I have run the query --
DECLARE @cmd VARCHAR(255)
SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
Exec xp_cmdshell @cmd
error message--
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
NULL
Goel.AmanHello,
-T:
Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
login_id, and password are not required. If
–T is not specified, you need to specify
–U and –P to successfully log in.
-U:
Specifies the login ID used to connect to SQL Server.
Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
-T option (trusted connection) instead of the
user name and password combination
I would suggest you take a look at the following article:
bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
A similar thread regarding this issue:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
Regards,
Elvis Long
TechNet Community Support -
Download alv report output to excel format with out header line
Hi experts,
i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
fro eg:
Report : Zabc ABAP Development Page : 1
Run Date : 12/14/06 System: UD400
Run Time : 08:45:37
this header details should not be downloaded into the excel file.
could somebody help me please.
thanks
deepuhi jayanti,
thanks for your response.
i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
*field names
lt_fieldnames-value = 'Material Number'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Plant'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Material Group'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Material Description'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'UOM'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Price Unit'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Material Type'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'X-Plant Status'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Valuation Class'.
APPEND lt_fieldnames.
lt_fieldnames-value = lw_avmng.
APPEND lt_fieldnames.
lt_fieldnames-value = lw_avntp.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Latest PO Qty'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Latest PO Cost'.
APPEND lt_fieldnames.
lt_fieldnames-value = 'PO Creation Date'.
APPEND lt_fieldnames.
lt_fieldnames-value = lw_fcaqt.
APPEND lt_fieldnames.
lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
APPEND lt_fieldnames.
lt_fieldnames-value = lw_stcst.
APPEND lt_fieldnames.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = 'XLSHEET'
CREATE_PIVOT = 0
DATA_SHEET_NAME = ' '
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
PIVOT_FIELD_TAB =
data_tab = t_output1
fieldnames = lt_fieldnames
EXCEPTIONS
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_pivot_fields = 6
download_problem = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE e001 WITH 'Data could not be downloaded'.
ENDIF.
ENDFORM. " z_dwn_xl
thanks
deepu -
Get the output of a query in a textpad..
Hi..
I need to get the output of a query in a notepad..
Can anyone help me..spool c:\emp.txt
fire select * from emp;
spool off;
go to c: and check your text file.
hare krishna
Alok -
i cant remember my password to logon to my mac, how can i change it with out needing the old one?
http://support.apple.com/kb/HT1274
-
How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS on each Mac but sharing the same Apple ID: xxxxxx
I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
Do we have to set up a diffrent Apple ID for each other?
Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy) it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
ThanksI believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
Manage your Apple ID and see if that does the trick
Hope that helps -
Can you use one PC for 2 different Ipods, with out erasing the others music from Itunes?
Can you use one PC for different Ipod touch's , with out erasing the other persons Itunes music?
Yes. See:
How to use multiple iPods, iPads, or iPhones with one computer -
How do i remove a device from my apple id on find my phone app with out erasing the device.
How do I remove a device from my apple id on the find my phone app with out erasing it becase it still belongs to my child? I need to remove a iPad mini and a iPod 4th gen.
ThanksIf you haven't already, do Settings > iCloud and turn off Find My iPhone. You will have to supply your Apple ID and password.
Then do Settings > General > Reset > Erase All Content and Settings to make the iPhone appear as if it just came out of the box. -
Delivery deleted with out reversing the GR in Inter company PO
Hi Ever one
Can any body suggest the below issue.
By mistake user has deleted Out bound delivery with out reversing the GR in Inter company PO
At the other end receiving site has sold the goods where I am unable to do reverse the GR bez stock is not available, even If create the delivery once again I need to do GR other wish It will be In transit.
kindly help me out
Regards
sudhaHi Kishor
yes, first Goods receipt has to be reverse, but user did mistake
After PO creation, delivery and PGI in VL02N, and Invoice in VF01 finally GR in MB0A with ref to delivery
in reverse also first GR need to be reverse in MBST and Invoice and delivery in VL09.
but by mistake delivery has bee reversed in VL09 with out reversing GR where as it is allowing to do so( this delivery had not been Invoiced )
Awaiting for your reply
Thanks & Regards
sudha -
ADF how can i execute a query with parameters when the page renders
hi
i am using ADF web 11g
i need to execute a query with parameters when the page renders
thankshello,
I'm a fan of Java code, I really am.
But when you use ADF, you decided to move to a more declarative environment.
So why not do it declarative, the adf way?
In your pagedef insert a action binding.
This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
Create an invokeAction in your pagedef and set the condition.
This example refreshes(Action 2 is execute query) the data.
First the method binding:
<action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
<invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
-Anton
PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.
Maybe you are looking for
-
My ipod touch 5 is a year old, and was working perfectly fine today, then I found that it was shut off and I did the usual (hold the button on top till the apple icon shows up) and it satyed there longer than usual and then just turned off. How can I
-
NTFS External Hard Drive now read only
Hello Everyone, For months I have been connecting a NTFS 1 TB Phantom Labs external hard drive to my mac book, to access my music collection, as well as store additional large files. Today, however, I found my external hard drive to be "read only," r
-
Uninstall previous versions when installing new ones?
I upgrade my Photoshop Elements to Photoshop CS5 that comes with Bridge CS5 also, by downloading and installing the files. Do I have to uninstall the Photoshop Elements and Bridge CS4 to only have the upgraded versions?
-
Delete overlapping requests from DSO
Hi Everyone! Is there any function to delete overlapping requests from a DSO in process chain? For InfoCube there is one, but how about dso? I'm using both delta and full load method in the same dso daily and I want to delete full load requests only
-
Share reminders lists now that app is outside?
I used to share reminders on icloud.com by finding the list on my calendar app. There was this feed icon and after clicking it you could send the invitation to share the reminders list, now icloud has the reminder app outside the calendar one and I c