Basic query on PLSQL using TOAD
hi all,
First of all thanks a lot to everyone for always helping and guiding me through all the doubts i had asked here.I have leasrned a lot and appreciate your help.
So,my question is
executing the STORED PROCEDURE in Toad 9.0
execute assign_daily_plan('547615',null,null,'plan67063974107')
I am getting an error showing LINE NO. and ISSUE displayed.Now,when i cancel this ...it closes the window and execution over.
I am not at all able to debug any more in this case.where can i see the values getting printed out in the program and the values for the dbms.output lines.
I need to see all the inter-midate values during the run of the program till it gets the ERROR,possibly with BREAKPOINTS but...i am not able to do.Please help me
I use toad 9.0 to connect to Oracle 10g Database
* The stored procedure has dbms.output_lines for PRINT the flow of the program as well printing each variable data out during run time.
*Also,set SERVEROUT ON is at the start of the editor as well as I used all the buttons like "STEP OVER","STEP INTO","TRACE" as well SQLPLUS too
Hello,
First this procedure syntax ain't look right but you might be giving an example. (Here I am using TOAD 9.5).
You should following as is and create procedure and then execute as a script in TOAD and check in output and see if it's priniting it or not and post output if didn't work for you.
CREATE OR REPLACE PROCEDURE myprocedure
AS
BEGIN
DBMS_OUTPUT.put_line ('HELLO I AM TESTING');
END;pl/sql block using sqlplus
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
SQL> set serveroutput on;
SQL> BEGIN
2 KLONDIKE.MYPROCEDURE;
3 COMMIT;
4 END;
5 /
HELLO I AM TESTING
PL/SQL procedure successfully completed.Runing as script from TOAD
set serveroutput on;
DECLARE
BEGIN
MYPROCEDURE;
END;
HELLO I AM TESTING
PL/SQL procedure successfully completed.Regards
Edited by: OrionNet on Mar 14, 2009 6:52 PM
Similar Messages
-
Using TOAD or Hyperion to Query SAP BW?
Is it possible to use TOAD or Hyperion Interactive Reporting Studio to query SAP BW tables? I would really like to be able to use the SAP BW infocubes but not be tied to BEx. Is this possible?
yes it is possible to use TOAD or Hyperion Interactive Reporting Studio to query SAP BW tables.you would be able to use the SAP BW infocubes not be tied to BEx as BW will be the backend and TOAD or Hyperion Interactive Reporting Studio will be the front end for it.
-
Send query results to a file using Toad
Hello,
I have a select statement that generates xml rows, and I need to send the results to a file. I am using TOAD VI. The rows generate ok but when I right click and choose the save as option all I end up with is an empty file.
Is there a way I can just send the results directly to a file instead of to the screen?
Thanks.user11293056 wrote:
Would you happen to know of a website that shows how to create an xml file using SQL*Plus?
Thanks.A search of asktom.oracle.com for the following phrase found a couple interesting pages:
table(xmlsequence(cursor
On such page is this one:
http://asktom.oracle.com/pls/asktom/f?p=100:11:1074646661177911::::P11_QUESTION_ID:4061080732051
As an experiment, you might take a look at the output of the following (replace SELECT * FROM MY_TABLE_HERE with your SQL statement):
SELECT
FROM
TABLE(XMLSEQUENCE(CURSOR(
SELECT
FROM
MY_TABLE_HERE
)));Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
Hello Guys,
Please share your views based on your experience
Oracle 10g on Linux or Unix in DBA's perspective is it worth using TOAD?
Please let me know how much more resource toad session takes compare to sqlplus (command line session)
so will it put extra load on database
It has some helpful features but do have disadvantages as well?please list disadvantages as advantages mostly
mentioned on toad websites or documentations
I am concerned with some like resoure usage/utilization,security(can connect multiple db at a time so human error),
hanged toad sessions when run large query etc
Thanks in advance
Devuser13152393 wrote:
Hello Guys,
Please share your views based on your experience
Oracle 10g on Linux or Unix in DBA's perspective is it worth using TOAD?What are you going to be doing with TOAD? It's a tool, simple as that.
Please let me know how much more resource toad session takes compare to sqlplus (command line session)
so will it put extra load on databaseTOAD doesn't take extra database resources in a typical sense. A database session is a database session regardless of whether it's been instantiated throught TOAD, SQL*Plus, SQL Developer or a.n.other tool. Obviously SQL*Plus is a more basic command line tool and therefore takes less disk space to install, and TOAD takes more disk space, but TOAD has a GUI interface and other things to make your tasks easy and pretty, so you'd expect that.
It has some helpful features but do have disadvantages as well?please list disadvantages as advantages mostly
mentioned on toad websites or documentationsIt depends. Using SQL*Plus will teach you to use SQL and the database properly as you will have to understand things from a raw command level. TOAD hides a lot of the technicalities from you and does it all for you, but then you would become stuck if you had to get the same information etc. manually as you wouldn't know what to do. Everything has advantages and disadvantages, but it's purely subjective (i.e. it depends on an individual persons point of view)
I am concerned with some like resoure usage/utilization,security(can connect multiple db at a time so human error),
hanged toad sessions when run large query etcI can connect multiple SQL*Plus sessions to different databases if I like, and they all look like command windows, so still opportunity for human error. What's the difference?
Why should a toad session hang on a large query as opposed to hanging in SQL*Plus? I think you're clutching at straws and worrying about nothing.
At the end of the day, many people use SQL*Plus, many people use TOAD, many people use SQL Developer, many people use other tools and many people use combinations of them all depending on what they need to achieve. Just use what's right for you. -
I'm trying to learn Oracle Spatial working with 11g R2 and with 3D georeferenced data (specifically data describing buildings in a city).
But I'm having trouble getting a basic query to work on my dataset (it works for the book example), and I'm trying to do it exactly the way it's done in the Spatial Developer's Guide for 11g.
To learn how spatial queries work, I set up the cola_markets tables used in the book, made the appropriate manual entry in the user_sdo_geom_metadata view and created the index. Having done that, I can run the following simple query (as well as the others in the manual) on the book tables:
SELECT SDO_GEOM.SDO_DISTANCE(c_b.shape, c_d.shape, 0.005)
FROM cola_markets c_b, cola_markets c_d
WHERE c_b.name = 'cola_b' AND c_d.name = 'cola_d';
but when I try to do the same thing on my own tables (created from citygml data), I get an error. There is the difference that the data is 3D, and the index was created without any PARAMETERS ( ... ), hence is just 2D. But still I don't get why the following query doesn't work:
SELECT SDO_GEOM.SDO_DISTANCE(c_w.envelope, c_b.envelope, 0.0005)
FROM cityobject c_w,
cityobject c_b
WHERE c_w.id = 50025
AND c_b.id = 50018;
The id's for the buildings are valid, and I used the same tolerance used by the software that set up the database.
Here's the error I get in SQL developer:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.Exception: 54535
ORA-06512: at "MDSYS.SDO_3GL", line 637
ORA-06512: at "MDSYS.SDO_GEOM", line 1973
ORA-06512: at "MDSYS.SDO_GEOM", line 1990
29532. 00000 - "Java call terminated by uncaught Java exception: %s"
*Cause: A Java exception or error was signaled and could not be
resolved by the Java code.
*Action: Modify Java code, if this behavior is not intended.
So, thinking it might have something to do with the fact that it's a Java interface, I also tried running it from SQL/PL command line and get essentially the same thing:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.Exception: 54535
ORA-06512: at "MDSYS.SDO_3GL", line 637
ORA-06512: at "MDSYS.SDO_GEOM", line 1973
ORA-06512: at "MDSYS.SDO_GEOM", line 1990
Any ideas why this isn't working?
(P.S.: I couldn't find a specific board for Oracle Spatial, hence put this question here--if there's a better place for this question, then, admins, of course, feel free to move the thread to the appropriate spot)Hi,
The SPATIAL forum is here : {forum:id=76} -
Query working fine in toad but not in forms 6i
i have following coding on when button press triger
declare
CURSOR C1(year number,month number) IS
SELECT ITM_NO,ITM_NAME,XAQ QTY,XAQ*TP VAL,gp
FROM
select ci.itm_no ITM_NO,ci.itm_name ITM_NAME ,cpg.group_id gp ,xaq ,ALLIED.CORP_PRIC_TP( ci.itm_no)TP from
select prod_no,sum(xaq)*1 xaq
from
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_01_02
where year=year and f_prd=month
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_02_02
where year=year and f_prd=month
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_03_02
where year=year and f_prd=month
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_04_02
where year=year and f_prd=month
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
group by prod_no
) A,allied.corp_inv ci,allied.corp_01_01 c01, allied.corp_01_02 c02,allied.corp_prod_group cpg,allied.v_prod_grp vpg
where ci.itm_no=a.prod_no
and ci.itm_no=c02.itm_no
and c01.grp_id=c02.grp_id
and c01.grp_id in(55,56,57,58,59)
and vpg.prod_no =ci.itm_no
and vpg.group_id=cpg.group_id
where XAQ <>0;
Begin
delete from fiaz.tmp_topten_prod;
for i in c1(:year,:month)
loop
insert into fiaz.tmp_topten_prod
values(i.itm_no,i.itm_name,i.qty,i.val,i.gp,0);
end loop;
standard.commit;
message('inserted in temp');
exception when others then
message (dbms_error_text);
message (dbms_error_text);
End;
Same Query (as used in cursor c1) works fine in toad but giving wrong result from forms... and the problem is xaq field i.e returns incorrect qty...
i guess union clause is not working in this situation...
plz suggest me the appropriate changes in the query to work well from form as well...
combination:Forms 6i,Oracle 8.0.6
Regards,
Usman AfzalAs per your suggestion i have created a stored procedure but the followin error prevents procedure creation
create or replace procedure fiaz.topten_prod(v_yr number,v_mn number) is
begin
delete from fiaz.tmp_topten_prod;
insert into fiaz.tmp_topten_prod(itm_no,itm_name,qty,val,grp_id,prority)
SELECT ITM_NO,ITM_NAME,XAQ QTY,XAQ*TP VAL,gp,0
FROM
select ci.itm_no ITM_NO,ci.itm_name ITM_NAME ,cpg.group_id gp ,xaq ,ALLIED.CORP_PRIC_TP( ci.itm_no)TP from
select prod_no,sum(xaq) xaq
from
select prod_no, sum(nvl(xrd_sqty,0)) Xaq from allied.mrk_01_02
where year=v_yr and f_prd=v_mn
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_02_02
where year=v_yr and f_prd=v_mn
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_03_02
where year=v_yr and f_prd=v_mn
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
union all
select prod_no, sum(nvl(xrd_sqty,0)) Xaq
from allied.mrk_04_02
where year=v_yr and f_prd=v_mn
and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
group by prod_no
group by prod_no
) A,allied.corp_inv ci,allied.corp_01_01 c01, allied.corp_01_02 c02,allied.corp_prod_group cpg,allied.v_prod_grp vpg
where ci.itm_no=a.prod_no
and ci.itm_no=c02.itm_no
and c01.grp_id=c02.grp_id
and c01.grp_id in(55,56,57,58,59)
and vpg.prod_no =ci.itm_no
and vpg.group_id=cpg.group_id
where XAQ <>0;
commit;
end;
Error:
"PLS-00201: identifier ALLIED.MRK_01_02 must be declared "
i have not changed any thing in query working fine in toad without create procedure text and if i describe this table it shows the structure (desc allied.mrk_01_02)
Now where is the problemmmmm
Plz Help -
Sorry. I know this is ORACLE forum. But I assume here should be lots of folks using TOAD.
Q1. how to stop a running query?
Q2. how to copy all the data result? in TOAD, the returned data display in grid. I need to copy all into excel sometimes. How to do it?
Q3. besides using ROWNUM, is there anyway to show how many data returned?
Thanks a lot.A1. Change config to run queries in Threads. For V9 its in 'View / TOAD options / Oracle / Transactions. This adds a cancel button to the tool bar when the query is running.
A2. Right click in result grid, select 'Save As.' For Excel, only 64000 rows can be exported.
A3. Right click in result grid, select 'Row Count...'. -
Anyone using Toad Software, have a problem....
Hi I am using Toad software and the prompt does not work. The same query works with 'constant' or different environment. But in
Toad, query simply does not return any value
Select * from
stdnt_term
where term = :1
works if
Select * from
stdnt_term
where term = '1091'
Thank youSheri wrote:
Hi I am using Toad software and the prompt does not work. The same query works with 'constant' or different environment. But in
Toad, query simply does not return any value
Select * from
stdnt_term
where term = :1
works if
Select * from
stdnt_term
where term = '1091'
I am using Toad for Oracle version 9.0.1.
(1) Click "Database" -> "Editor"
(2) Type "select * from emp where empno = :1"
(3) Press F9.
It opens up a "Variables" dialog box, asking for the value of ":1".
(4) I enter "7369" and click OK.
It displays the correct result.
(a) I am using a registered copy of Toad. Are you using the free copy ? Many features may be disabled in a free copy.
(b) What happens if you put ':1' instead of :1 ?
isotope -
Using toad to search for columns in entire datamart
can anyone inform me if it is possible, using toad, to conduct a "quick search" search though an entire datamart for a specific column name and if possible how?
eg: column <pubs_visited incambridge> exists in table <things_to_do_in_cambridge> in a datamart and i want to find out if the column <pubs_visited_in_cambridge> is repeated in another table within the datamart.<QUOTE> Not really true, all_tab_columns will give you all tables for which you've grant.</QUOTE>
tried executing the query with both (DBA_TAB_COLUMNS AND ALL_TAB_COLUMNS) and I have received different results (more results with the dba). apparently, the schema i queried in our datamart, does not contain some of the tables that have been listed using the dba function.
how could it be possible that tables which do not exist in a specified schema get listed when quering using the dba function? -
Basic question - Problems with basic query - Mask = INSIDE
Greetings,
I'm doing a basic query on Oracle 10g Spatial, is to determine the intersection between two layers (one point called "Calidad1") and other polygons, called "Parishes")
For issuing the following query based on the documentation of oracle:
"select C1.ID, C1.SECUENCIA,
P. COD_ENTIDAD, P. STATE
Cod_county P., P. TOWNSHIP,
P. COD_PARROQUIA, P. PARISH
from CALIDAD1 c1,
PARISHES p
where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
order by C1.ID;
When I run the query, no errors but extends too long (more than 10 minutes) and no end, I have to cancel.
Canceling shows me the following error:
"ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
ORA-06512: at "MDSYS.SDO_3GL", line 89 "
This query is very basic and the data volume is small, a conclusion: I must be skipping a step or activity.
Can you guide a little to resolve this situation and get the query that I need?
Thanks to allFirst, try this query with the ordered hint and also note the change in the FROM clause.
select /*+ ordered */ C1.ID, C1.SECUENCIA,
P. COD_ENTIDAD, P. STATE
Cod_county P., P. TOWNSHIP,
P. COD_PARROQUIA, P. PARISH
from PARISHES p,
CALIDAD1 c1,
where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
order by C1.ID;
See if this is using the index as expected. If not try this:
select /*+ ordered index(p name_of_the_spatial_index_on_the_PARISH_Table) */
C1.ID, C1.SECUENCIA,
P. COD_ENTIDAD, P. STATE
Cod_county P., P. TOWNSHIP,
P. COD_PARROQUIA, P. PARISH
from PARISHES p,
CALIDAD1 c1,
where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
order by C1.ID;
siva -
In Query of Query, can't use LEFT() function?
Hi All,
I've got an LDAP query that I use for our employee directory. I then do a Query of Queries and do LEFT(SN,1) to separate out by first character of last name [A,B,C,D,E...] etc.
I had this working just fine in Railo CFM, but now I'm using Adobe CF and can't get that to work. I'm on CF9 Standard.
I've read the Query of Queries guide, but didn't find anything helpful there. Even when I do
'#LEFT(SN,1)#' as FirstCharacterOfLastName in my query, what I get is the value for the last row, not the value of each row as it's looping through the recordset.
Am I missing something? Any way to get that to work? Is that addressed in CF10?
thx.BenYou need to understand two things:
1) any CFML in your SQL string within a <cfquery> tag pair is processed by CF before the SQL string is passed to the DB driver. So your #left()# expression won't be processed "per row", because it's processed before the DB engine does any "per row" operations.
2) QoQ's SQL support is tragically minimalist. This lists all the functions it supports:
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd -7ff0.html#WSc3ff6d0ea77859461172e0811cbec0e4fd-7fcc
With the addition of two string functions: UPPER() and LOWER(). Oh, and CAST() (if that can be seen as a function).
That's it. That page in the docs describes all the functionality QoQ has. There's nothing missing 9as far as I know). That's it. There's not much to it.
I've been lobbying Adobe for a number of years to pull finger and improve QoQ to the point that it's more than just a curio, but they don't seem interested.
As to why your code works on Railo? Railo does some weird things, and doesn't stick to the precedent Adobe dictates their language should follow. Depending on who you talk to, this is either a feature or a barrier to entry (I'm mostly ambivalent, but err towards the latter camp). But perhaps Railo's QoQ processor supports LEFT().
Basically... you're gonna have to approach this differently: loop over the query with <cfloop> (etc) and update it row by row. This is pretty much what QoQ is doing anyhow, so I don't think you'll see a performance degradation. Well: you won't... because you can't do what you want to do with QoQ at all, I guess ;-)
Adam -
How to query a cube using SQL ?
Hi I have a MOLAP cube say CubeA with dimensionA having Attribute A1 and dimensionB having attribute B1
the measure of cube is M1.
Any idea how i can query the cube using SQL dislaying both the dimensions with the measure interlinking them.
I just need a general overview of how to sql query a cube .. I have the dimensions and sttributes and name of the cube but i ineed to know how to query it... I was given an example
SELECT
t.time_long_description,
p.product_long_description,
c.customer_long_description,
f.sales,
f.sales_ytd
FROM
time_calendar_view t,
product_std_view p,
customer_std_view c,
sales_cube c
WHERE
t.dim_key = f.time
AND p.dim_key = f.product
AND c.dim_key = f.customer
AND t.level_name = 'CALENDAR QUARTER'
AND p.level_name = 'BRAND'
AND c.level_name = 'STATE';
but i cant understand it.. i cant figure out what are the dimensions and where are the attributes...
Any idea would great...There's a nice tutorial here: http://st-curriculum.oracle.com/obe/db/11g/r1/olap/cube/querycubes.htm
Here are a few basics. Note that the link between the dimensions is the join between the dimension or hierarchy views and the cube.
* The primary key to every dimension and hierarchy view is DIM_KEY.
* The primary key to the fact table is dim1, dim2, dim3, so all joins are between dim_keys and dim1, dim2, etc.
* Dimension, hierarchy and cube views contain rows for both leaf (detail) and summary rows (that means cubes can return very, very large numbers of rows is you aren't careful)
* You typically want to query for the aggregate level data rather than use SUM ... GROUP BY. Let the cube do the work and let it manage calculations.
* Dimension views contain rows for all dimension member. hierarchy views contain rows for only members of the hierarchy.
* You typically select one of the long or short description columns to display data within an application.
Here's a commented version of your query:
SELECT
t.time_long_description, -- long descriptions
p.product_long_description,
c.customer_long_description,
f.sales, --measures
f.sales_ytd
FROM
time_calendar_view t, --hierarchy views
product_std_view p,
customer_std_view c,
sales_cube c --cube view
WHERE
t.dim_key = f.time ; -- joins between hierarchy and cube views
AND p.dim_key = f.product
AND c.dim_key = f.customer
AND t.level_name = 'CALENDAR QUARTER' -- Filters to ask for data at the quarter
AND p.level_name = 'BRAND' -- brand
AND c.level_name = 'STATE'; -- and state levels.
You want to have a filter on every dimension to avoid return all rows in the fact table for that dimension (remember, the cube contains summary rows). If you want to drop a dimension from a query (e.g., you don't want product in the query, intending for the query to be the aggregate of all products), filter to an all/total level.
e.g.,
and p.level_name = 'ALL PRODUCTS'
or
and p.long_description = 'All Products'
There are many variation of this query, but if you understand the basics you'll work your way there.
And, never do a select count(*) from a cube. Doing so will select the entire cube, detail and summary data. -
ORA-12154: TNS:could not resolve the connect identifier specified using TOAD client
I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
948021 wrote:
I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
see: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ (ora-12154 TNS:could not resolve the connect identifier specified)
And for background info
see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ ( Help! I can’t connect to my database (part duex) ) -
What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
appreciate it!Hi,
You could edit the following query to meet your requirement.
SELECT dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
THEN 'SP3' WHEN
arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
THEN 'SP1' ELSE '' END
AS 'Service Pack', arp.Version0
FROM dbo.v_Add_Remove_Programs AS arp INNER JOIN
dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
WHERE (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
(arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
AND
(arp.InstallDate0 NOT LIKE 'NULL')
ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Hi,
I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
http://server/pages/Default.aspx?Title=Arup&Title=Ratan
But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
I have followed the
http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
Please suggest me.
Thanks | Arup
THanks! Arup R(MCTS)
SucCeSS DoEs NOT MatTer.Hi DH, sorry for not being clear.
It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
(or a Performance Point Dashboard etc.) and you insert it into your page and add
a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
with multiple values for one parameter. If you have any more questions let me know. See you, Ingo
Maybe you are looking for
-
Upload Excel File to SharePoint using VBA
Hi, I copied and modified the code from a friend which he got it from this website forum. This apprantely works for some people and not me. Please tell me what I am doing wrong. Ignore xxxxxx part of the Sharepoint site. Nothing wrong with the site,
-
Convert binary data (TIFF image) into XML - how ?
Hi, I have the following requirement: 1. A document is scanned and a TIFF image is saved in a directory 2. The File adapter picks up the image file and sends into XI 3. The binary data is converted into XML so a Web Service can be called (this web se
-
I use Dreamweaver CS4 for designing our school website. The url is http://www.stpiusxschool.org The menu bar on the left is built with a Spry Asset, it is to expand to different choices on some of the lines. The issue started about a month ago, if
-
Disabling fields alters checksum
Hello, I am using a report to update a table. Based on conditions in the data I am dynamically disabling certain cells in the interface (using jQuery). When I attempt to update a row that has one or more fields disabled I am getting a checksum error.
-
Warning Store BEA-280104 on AIX 64 bit , WLS 10.3.3
Why do I see this? Not an issue on WLS 10.3 or non-AIX platforms. I see this only on AIX 6.1 <Oct 15, 2010 2:01:47 PM GMT> <Warning> <Store> <BEA-280104> <The persistent file store "_WLS_AdminServer" will use buffered writes instead of direct IO beca