Regarding Sql 8.0 and 3.0

I would like to ask u that if we use Sql 8.0 in our server
and Sql 3.0 at Client Pc which has os windows 98will there will
be problem in our table contents actually there is one table in
which onefield is narration which is of Varchar2(1000) when we
input the narration from d2k and save it and print it will show
all the narration but after some time when we see same narrration
it will show half the narration .

The query should look some thing like this
SELECT B.ID,B.ORDER_DATE,A.ITEM_ID, A.QUANTITY
FROM THE (SELECT LINE_ITEMS FROM ORDERS O WHERE O.ID = 1) A,
ORDERS B
WHERE B.ID = 1
ORDER BY 1,3
on tables
CREATE OR REPLACE TYPE ITEM_TYPE AS OBJECT (
ITEM_ID INTEGER,
QUANTITY INTEGER)
CREATE OR REPLACE TYPE ITEM_LIST AS TABLE OF ITEM_TYPE
CREATE TABLE ORDERS (
ID INTEGER PRIMARY KEY,
ORDER_DATE DATE,
SHIP_DATE DATE,
LINE_ITEMS ITEM_LIST)
NESTED TABLE LINE_ITEMS STORE AS ITEMS
INSERT INTO ORDERS VALUES (
1,SYSDATE,NULL,
ITEM_LIST(
ITEM_TYPE(1, 22),
ITEM_TYPE(2, 100)))
Robert Pearce (guest) wrote:
: It looks like you are trying to group your details by the
: master? If so, add "GROUP BY order no;" without the quotes to
: the end of your select statement. It would be a lot easier if I
: could see your select statement but give it a try.
: Good Luck!!
: Tejeshwar Singh (guest) wrote:
: : In relational database one can perform a join in master
detail
: : tables for E.g order and order_details and get multiple rows
: of
: : master with their respective details
: : But how can one perform that task if more than one master row
: is
: : to selected from an object in oracle 8 to get this type to
: report
: : <---------master--------><------------detail------------->
: : order no name item qty Rate
: : 1 abc 100 2 2.00
: : 103 10 30.00
: : 2 mnq 102 3 5.00
: : 100 2 2.00
: : 105 10 20.00
: : 3 xyz 102 5 5.00
: : and so on
: : Pls try this before replying
null

Similar Messages

  • Unable to install SQL server 2000 and 2005 on Satellite A205-s5831

    Hello everyone.
    I Needs some helps from all of you.
    I have Toshiba Laptop Satellite A205-S5831.
    Its Have Windows Vista Home Premium.
    And I am unable to install SQL server 2000 and 2005.
    I also Unable to Install Windows XP SP2.
    Problem is SATA driver.
    Plz Help me ...!
    Response me

    Hi
    The Windows XP needs a SATA driver if you want to install it on the notebook with SATA HDD controller.
    The SATA driver can be found in the Intel Storage Manager.
    I would recommend using the nLite program to include a SATA driver into the new Windows XP CD and then to boot from the new created XP CD.
    Here you will find all details regarding the nLite:
    http://www.nliteos.com/
    Regarding SQL server issue;
    Maybe you will be able to install in on Windows XP. Possibly there is a compatibility issue between the Vista and the SQL server software

  • Need help understanding MS SQL Server 2008R2 and Report Builder 3.0 and user access / priviledges.

    Having Problems with connections and access.  I have spent the last 2 days reading various threads regarding SQL Reporting Services pertaining to access and connections.
    First, let me explain what I have done to date.
    1)  I am using Windows 7 - Home Premium.
    2)  I downloaded and installed MS SQL Server 2008 R2 Express.  This was successful.
    3)  I downloaded Report Server 3.0 - This was successful.
    4)  In IE, I tried logging onto http://servername/reports, but this failed.  After logging into IE
    via ' Run Administrator', I was able to access URL.  
           Next, I updated the security / trust sites as explained in the
    threads
    Next, I went to Folder Setting and added my user name and granted all roles (Browser,
    Content Manager, My
    Reports, Publisher and Report Builder).
    5)  Now, I can log into Http://servername/reports using my normal windows 7 user account.
    6)  Next, I opened Report Builder 3.0.  However, I am having trouble connecting to report  
    server.  I tried connecting with
    http://servername/reports, but this failed. 
           However, If I change URL to http://servername/reportserver, it works.  BUT NOW, I have
    another problem.  When I
    execute the RUN button to create report, I get a  permission
    error.  "PERMISSION GRANTED TO USER ARE
    INSUFFICIENT FOR  PERFORMING THIS OPERATION".
    7)  Finally, I can not save reports to http://servername/reportserver when I select "Recent
    Site and Servers".  ERROR
    MESSAGE:  UNABLE TO OPEN OR SAVE REPORT
    8)  In my Reporting Services Configuration Manager:
    Web URL = http://servername:80/ReportServer
    Report Manager URL = http://servername:80/reports.
                What is strange, the Report Manager URL works for IE URL and WEB URL works for
    Report Builder connect (Even though it really does not work). 
    THREE QUESTIONS:
    1)  What URL should I use to connect in Report Builder.  
    2)  How do I update my normal Windows 7 user so I can run reports when I connect to report
    builder.        
    3)  How can I save my reports so they are displayed in IE Reporting services.  Note:  I was
    able to save report to
    documents folder and import into IE Reporting Services.
    4)  And finally, is it possible to add report builder 3.0 as a tab in my IE Reporting Services.  I
    save seen samples of Reporting Services screens where the instructor has Report Builder
    tab.
    Thanks
    Dan

    To answer question 1... it should connect through /ReportServer
    http://bretstateham.com/reporting-services-architecture-diagram%E2%80%A6/
    Report Builder 3.0 is not a web application, it is a client side application can be used using the click-once or downloaded from Microsoft's website.  If you are having issues, you might download and install it and try running it as an administrator.

  • PL/SQL 101 : Cursors and SQL Projection

    PL/SQL 101 : Cursors and SQL Projection
    This is not a question, it's a forum article, in reponse to the number of questions we get regarding a "dynamic number of columns" or "rows to columns"
    There are two integral parts to an SQL Select statement that relate to what data is selected. One is Projection and the other is Selection:-
    Selection is the one that we always recognise and use as it forms the WHERE clause of the select statement, and hence selects which rows of data are queried.
    The other, SQL Projection is the one that is less understood, and the one that this article will help to explain.
    In short, SQL Projection is the collective name for the columns that are Selected and returned from a query.
    So what? Big deal eh? Why do we need to know this?
    The reason for knowing this is that many people are not aware of when SQL projection comes into play when you issue a select statement. So let's take a basic query...
    First create some test data...
    create table proj_test as
      select 1 as id, 1 as rn, 'Fred' as nm from dual union all
      select 1,2,'Bloggs' from dual union all
      select 2,1,'Scott' from dual union all
      select 2,2,'Smith' from dual union all
      select 3,1,'Jim' from dual union all
      select 3,2,'Jones' from dual
    ... and now query that data...
    SQL> select * from proj_test;
             ID         RN NM
             1          1 Fred
             1          2 Bloggs
             2          1 Scott
             2          2 Smith
             3          1 Jim
             3          2 Jones
    6 rows selected.
    OK, so what is that query actually doing?
    To know that we need to consider that all queries are cursors and all cursors are processed in a set manner, roughly speaking...
    1. The cursor is opened
    2. The query is parsed
    3. The query is described to know the projection (what columns are going to be returned, names, datatypes etc.)
    4. Bind variables are bound in
    5. The query is executed to apply the selection and identify the data to be retrieved
    6. A row of data is fetched
    7. The data values from the columns within that row are extracted into the known projection
    8. Step 6 and 7 are repeated until there is no more data or another condition ceases the fetching
    9. The cursor is closed
    The purpose of the projection being determined is so that the internal processing of the cursor can allocate memory etc. ready to fetch the data into. We won't get to see that memory allocation happening easily, but we can see the same query being executed in these steps if we do it programatically using the dbms_sql package...
    CREATE OR REPLACE PROCEDURE process_cursor (p_query in varchar2) IS
      v_sql       varchar2(32767) := p_query;
      v_cursor    number;            -- A cursor is a handle (numeric identifier) to the query
      col_cnt     integer;
      v_n_val     number;            -- numeric type to fetch data into
      v_v_val     varchar2(20);      -- varchar type to fetch data into
      v_d_val     date;              -- date type to fetch data into
      rec_tab     dbms_sql.desc_tab; -- table structure to hold sql projection info
      dummy       number;
      v_ret       number;            -- number of rows returned
      v_finaltxt  varchar2(100);
      col_num     number;
    BEGIN
      -- 1. Open the cursor
      dbms_output.put_line('1 - Opening Cursor');
      v_cursor := dbms_sql.open_cursor;
      -- 2. Parse the cursor
      dbms_output.put_line('2 - Parsing the query');
      dbms_sql.parse(v_cursor, v_sql, dbms_sql.NATIVE);
      -- 3. Describe the query
      -- Note: The query has been described internally when it was parsed, but we can look at
      --       that description...
      -- Fetch the description into a structure we can read, returning the count of columns that has been projected
      dbms_output.put_line('3 - Describing the query');
      dbms_sql.describe_columns(v_cursor, col_cnt, rec_tab);
      -- Use that description to define local datatypes into which we want to fetch our values
      -- Note: This only defines the types, it doesn't fetch any data and whilst we can also
      --       determine the size of the columns we'll just use some fixed sizes for this example
      dbms_output.put_line(chr(10)||'3a - SQL Projection:-');
      for j in 1..col_cnt
      loop
        v_finaltxt := 'Column Name: '||rpad(upper(rec_tab(j).col_name),30,' ');
        case rec_tab(j).col_type
          -- if the type of column is varchar2, bind that to our varchar2 variable
          when 1 then
            dbms_sql.define_column(v_cursor,j,v_v_val,20);
            v_finaltxt := v_finaltxt||' Datatype: Varchar2';
          -- if the type of the column is number, bind that to our number variable
          when 2 then
            dbms_sql.define_column(v_cursor,j,v_n_val);
            v_finaltxt := v_finaltxt||' Datatype: Number';
          -- if the type of the column is date, bind that to our date variable
          when 12 then
            dbms_sql.define_column(v_cursor,j,v_d_val);
            v_finaltxt := v_finaltxt||' Datatype: Date';
          -- ...Other types can be added as necessary...
        else
          -- All other types we'll assume are varchar2 compatible (implicitly converted)
          dbms_sql.DEFINE_COLUMN(v_cursor,j,v_v_val,2000);
          v_finaltxt := v_finaltxt||' Datatype: Varchar2 (implicit)';
        end case;
        dbms_output.put_line(v_finaltxt);
      end loop;
      -- 4. Bind variables
      dbms_output.put_line(chr(10)||'4 - Binding in values');
      null; -- we have no values to bind in for our test
      -- 5. Execute the query to make it identify the data on the database (Selection)
      -- Note: This doesn't fetch any data, it just identifies what data is required.
      dbms_output.put_line('5 - Executing the query');
      dummy := dbms_sql.execute(v_cursor);
      -- 6.,7.,8. Fetch the rows of data...
      dbms_output.put_line(chr(10)||'6,7 and 8 Fetching Data:-');
      loop
        -- 6. Fetch next row of data
        v_ret := dbms_sql.fetch_rows(v_cursor);
        -- If the fetch returned no row then exit the loop
        exit when v_ret = 0;
        -- 7. Extract the values from the row
        v_finaltxt := null;
        -- loop through each of the Projected columns
        for j in 1..col_cnt
        loop
          case rec_tab(j).col_type
            -- if it's a varchar2 column
            when 1 then
              -- read the value into our varchar2 variable
              dbms_sql.column_value(v_cursor,j,v_v_val);
              v_finaltxt := ltrim(v_finaltxt||','||rpad(v_v_val,20,' '),',');
            -- if it's a number column
            when 2 then
              -- read the value into our number variable
              dbms_sql.column_value(v_cursor,j,v_n_val);
              v_finaltxt := ltrim(v_finaltxt||','||to_char(v_n_val,'fm999999'),',');
            -- if it's a date column
            when 12 then
              -- read the value into our date variable
              dbms_sql.column_value(v_cursor,j,v_d_val);
              v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          else
            -- read the value into our varchar2 variable (assumes it can be implicitly converted)
            dbms_sql.column_value(v_cursor,j,v_v_val);
            v_finaltxt := ltrim(v_finaltxt||',"'||rpad(v_v_val,20,' ')||'"',',');
          end case;
        end loop;
        dbms_output.put_line(v_finaltxt);
        -- 8. Loop to fetch next row
      end loop;
      -- 9. Close the cursor
      dbms_output.put_line(chr(10)||'9 - Closing the cursor');
      dbms_sql.close_cursor(v_cursor);
    END;
    SQL> exec process_cursor('select * from proj_test');
    1 - Opening Cursor
    2 - Parsing the query
    3 - Describing the query
    3a - SQL Projection:-
    Column Name: ID                             Datatype: Number
    Column Name: RN                             Datatype: Number
    Column Name: NM                             Datatype: Varchar2
    4 - Binding in values
    5 - Executing the query
    6,7 and 8 Fetching Data:-
    1     ,1     ,Fred
    1     ,2     ,Bloggs
    2     ,1     ,Scott
    2     ,2     ,Smith
    3     ,1     ,Jim
    3     ,2     ,Jones
    1     ,3     ,Freddy
    1     ,4     ,Fud
    9 - Closing the cursor
    PL/SQL procedure successfully completed.
    So, what's really the point in knowing when SQL Projection occurs in a query?
    Well, we get many questions asking "How do I convert rows to columns?" (otherwise known as a pivot) or questions like "How can I get the data back from a dynamic query with different columns?"
    Let's look at a regular pivot. We would normally do something like...
    SQL> select id
      2        ,max(decode(rn,1,nm)) as nm_1
      3        ,max(decode(rn,2,nm)) as nm_2
      4  from proj_test
      5  group by id
      6  /
            ID NM_1   NM_2
             1 Fred   Bloggs
             2 Scott  Smith
             3 Jim    Jones
    (or, in 11g, use the new PIVOT statement)
    but many of these questioners don't understand it when they say their issue is that, they have an unknown number of rows and don't know how many columns it will have, and they are told that you can't do that in a single SQL statement. e.g.
    SQL> insert into proj_test (id, rn, nm) values (1,3,'Freddy');
    1 row created.
    SQL> select id
      2        ,max(decode(rn,1,nm)) as nm_1
      3        ,max(decode(rn,2,nm)) as nm_2
      4  from proj_test
      5  group by id
      6  /
            ID NM_1   NM_2
             1 Fred   Bloggs
             2 Scott  Smith
             3 Jim    Jones
    ... it's not giving us this 3rd entry as a new column and we can only get that by writing the expected columns into the query, but then what if more columns are added after that etc.
    If we look back at the steps of a cursor we see again that the description and projection of what columns are returned by a query happens before any data is fetched back.
    Because of this, it's not possible to have the query return back a number of columns that are based on the data itself, as no data has been fetched at the point the projection is required.
    So, what is the answer to getting an unknown number of columns in the output?
    1) The most obvious answer is, don't use SQL to try and pivot your data. Pivoting of data is more of a reporting requirement and most reporting tools include the ability to pivot data either as part of the initial report generation or on-the-fly at the users request. The main point about using the reporting tools is that they query the data first and then the pivoting is simply a case of manipulating the display of those results, which can be dynamically determined by the reporting tool based on what data there is.
    2) The other answer is to write dynamic SQL. Because you're not going to know the number of columns, this isn't just a simple case of building up a SQL query as a string and passing it to the EXECUTE IMMEDIATE command within PL/SQL, because you won't have a suitable structure to read the results back into as those structures must have a known number of variables for each of the columns at design time, before the data is know. As such, inside PL/SQL code, you would have to use the DBMS_SQL package, just like in the code above that showed the workings of a cursor, as the columns there are referenced by position rather than name, and you have to deal with each column seperately. What you do with each column is up to you... store them in an array/collection, process them as you get them, or whatever. They key thing though with doing this is that, just like the reporting tools, you would need to process the data first to determine what your SQL projection is, before you execute the query to fetch the data in the format you want e.g.
    create or replace procedure dyn_pivot is
      v_sql varchar2(32767);
      -- cursor to find out the maximum number of projected columns required
      -- by looking at the data
      cursor cur_proj_test is
        select distinct rn
        from   proj_test
        order by rn;
    begin
      v_sql := 'select id';
      for i in cur_proj_test
      loop
        -- dynamically add to the projection for the query
        v_sql := v_sql||',max(decode(rn,'||i.rn||',nm)) as nm_'||i.rn;
      end loop;
      v_sql := v_sql||' from proj_test group by id order by id';
      dbms_output.put_line('Dynamic SQL Statement:-'||chr(10)||v_sql||chr(10)||chr(10));
      -- call our DBMS_SQL procedure to process the query with it's dynamic projection
      process_cursor(v_sql);
    end;
    SQL> exec dyn_pivot;
    Dynamic SQL Statement:-
    select id,max(decode(rn,1,nm)) as nm_1,max(decode(rn,2,nm)) as nm_2,max(decode(rn,3,nm)) as nm_3 from proj_test group by id order by id
    1 - Opening Cursor
    2 - Parsing the query
    3 - Describing the query
    3a - SQL Projection:-
    Column Name: ID                             Datatype: Number
    Column Name: NM_1                           Datatype: Varchar2
    Column Name: NM_2                           Datatype: Varchar2
    Column Name: NM_3                           Datatype: Varchar2
    4 - Binding in values
    5 - Executing the query
    6,7 and 8 Fetching Data:-
    1     ,Fred                ,Bloggs              ,Freddy
    2     ,Scott               ,Smith               ,
    3     ,Jim                 ,Jones               ,
    9 - Closing the cursor
    PL/SQL procedure successfully completed.
    ... and if more data is added ...
    SQL> insert into proj_test (id, rn, nm) values (1,4,'Fud');
    1 row created.
    SQL> exec dyn_pivot;
    Dynamic SQL Statement:-
    select id,max(decode(rn,1,nm)) as nm_1,max(decode(rn,2,nm)) as nm_2,max(decode(rn,3,nm)) as nm_3,max(decode(rn,4,nm)) as nm_4 from proj_test group by id order by id
    1 - Opening Cursor
    2 - Parsing the query
    3 - Describing the query
    3a - SQL Projection:-
    Column Name: ID                             Datatype: Number
    Column Name: NM_1                           Datatype: Varchar2
    Column Name: NM_2                           Datatype: Varchar2
    Column Name: NM_3                           Datatype: Varchar2
    Column Name: NM_4                           Datatype: Varchar2
    4 - Binding in values
    5 - Executing the query
    6,7 and 8 Fetching Data:-
    1     ,Fred                ,Bloggs              ,Freddy              ,Fud
    2     ,Scott               ,Smith               ,                    ,
    3     ,Jim                 ,Jones               ,                    ,
    9 - Closing the cursor
    PL/SQL procedure successfully completed.
    Of course there are other methods, using dynamically generated scripts etc. (see Re: 4. How do I convert rows to columns?), but the above simply demonstrates that:-
    a) having a dynamic projection requires two passes of the data; one to dynamically generate the query and another to actually query the data,
    b) it is not a good idea in most cases as it requires code to handle the results dynamically rather than being able to simply query directly into a known structure or variables, and
    c) a simple SQL statement cannot have a dynamic projection.
    Most importantly, dynamic queries prevent validation of your queries at the time your code is compiled, so the compiler can't check that the column names are correct or the tables names, or that the actual syntax of the generated query is correct. This only happens at run-time, and depending upon the complexity of your dynamic query, some problems may only be experienced under certain conditions. In effect you are writing queries that are harder to validate and could potentially have bugs in them that would are not apparent until they get to a run time environment. Dynamic queries can also introduce the possibility of SQL injection (a potential security risk), especially if a user is supplying a string value into the query from an interface.
    To summarise:-
    The projection of an SQL statement must be known by the SQL engine before any data is fetched, so don't expect SQL to magically create columns on-the-fly based on the data it's retrieving back; and, if you find yourself thinking of using dynamic SQL to get around it, just take a step back and see if what you are trying to achieve may be better done elsewhere, such as in a reporting tool or the user interface.
    Other articles in the PL/SQL 101 series:-
    PL/SQL 101 : Understanding Ref Cursors
    PL/SQL 101 : Exception Handling

    excellent article. However there is one thing which is slightly erroneous. You don't need a type to be declared in the database to fetch the data, but you do need to declare a type;
    here is one of my unit test scripts that does just that.
    DECLARE
    PN_CARDAPPL_ID NUMBER;
    v_Return Cci_Standard.ref_cursor;
    type getcardapplattrval_recordtype
    Is record
    (cardappl_id ci_cardapplattrvalue.cardappl_ID%TYPE,
    tag ci_cardapplattrvalue.tag%TYPE,
    value ci_cardapplattrvalue.value%TYPE
    getcardapplattrvalue_record getcardapplattrval_recordtype;
    BEGIN
    PN_CARDAPPL_ID := 1; --value must be supplied
    v_Return := CCI_GETCUSTCARD.GETCARDAPPLATTRVALUE(
    PN_CARDAPPL_ID => PN_CARDAPPL_ID
    loop
    fetch v_return
    into getcardapplattrvalue_record;
    dbms_output.put_line('Cardappl_id=>'||getcardapplattrvalue_record.cardappl_id);
    dbms_output.put_line('Tag =>'||getcardapplattrvalue_record.tag);
    dbms_output.put_line('Value =>'||getcardapplattrvalue_record.value);
    exit when v_Return%NOTFOUND;
    end loop;
    END;

  • More Guru Winners for February 2015 in the SQL Server category and many others!

    It's been a busy week that also saw the
    TECHNET WIKI SUMMIT 2015
    Then we had the results for
    February's TechNet Guru competition ALSO posted!
    http://blogs.technet.com/b/wikininjas/archive/2015/03/19/technet-guru-february-2015.aspx
    Below is a summary of the medal winners for December. The last column being a few of the comments from the judges.
    Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however the full version is available on TechNet Wiki in the link above.
    Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
     BizTalk Technical Guru - February 2015  
    Steef-Jan Wiggers
    BizTalk Server 2013 R2 Instrumenting a custom pipeline component with ETW
    Mandi Ohlinger: "Always a fan of helping our custom pipeline users. Great addition to this group."
    Sandro Pereira: "Images, format, descriptions, code and topic are excellent once again good work Steef-Jan."
    Vignesh Sukumar
    BizTalk BAM (Business Activity Monitoring)
    Sandro Pereira: "Great job on this article! Well explained and nice pictures, however the article format need to be improved and some proofreading is need"
    Mandi Ohlinger: "Welcome to the 'I heart BAM' fan club. Nice job on this topic. A MUST read for new-to-BAM users. "
    Steef-Jan Wiggers
    BizTalk Server 2013 R2 Instrumenting BAM Activity Tracking with ETW
    Sandro Pereira: "Images, format, descriptions, code and topic are excellent once again good work Steef-Jan."
    Mandi Ohlinger: "ETW for BAM Activities - LOVE it. Nice use of the Framework. "
     Forefront Identity Manager Technical Guru - February 2015  
    Wim Beck
    FIM2010: Filter objects on export
    PG: "Simple, targeted but nice article, nice layout. "
    Søren Granfeldt: "Nice. Would be perfect with a complete code sample."
     Microsoft Azure Technical Guru - February 2015  
    saramgsilva
    Azure Mobile Services: How to see the log files in server
    JH: "Log files are one of the most important things in a production environment. This article shows hows you can do that for the Azure Mobile Services in a nice and easy way."
    Alan Carlos: "Great article!"
    Ed Price: "Very useful topic! These are a great set of articles!"
    saramgsilva
    Azure Mobile Services: How to see the WebConfig file published
    Ed Price: "Great detail and fantastic use of images! I love all the in-line links!"
    JH: "Sometimes it is hard to tell when working in a multi-environment what configuration was published to the Server. The article shows short and easy how to do that for the Azure Mobile Services."
     Miscellaneous Technical Guru - February 2015  
    Arleta Wanat
    Retrieve all site mailboxes in your Office 365 tenant
    Durval Ramos: "This article has a well content, images and code that help to understand the solution. It has References and was Translated into more two languages. Good job!"
    Richard Mueller: "Good links. A great tutorial."
    Andy ONeill
    Silverlight: No Need to BringIntoView
    Durval Ramos: "A well formatted article is easier and more pleasant to read. This script is useful"
    Richard Mueller: "Good demonstration of a new feature."
    Chen V
    PowerShell : Enable Auto Reply for Shared Mail Box
    Durval Ramos: " A good solution originated of TechNet Forum. The script and images make it easy to understand and ensure you get the best interest to reader."
    Richard Mueller: "Good documentation of this feature."
     SharePoint 2010 / 2013 Technical Guru - February 2015  
    Geetanjali Arora
    SharePoint Online : Performing Batch Operations using REST API
    KB: "Very well explained article on a new and much awaited feature. Although Andrew Connell already explained this topic in several posts, this article still contains added value."
    Ed Price: "I love the History section. The formatting is amazing. And the References and See Also sections at the bottom are great icing on the cake. This is an important topic that's done incredibly well!"
    Matthew Yarlett
    Using the SpellCheck Webservice with the TinyMCE Richtext Editor and
    AngularJS in Office 365
    KB: "I read this article with growing interest, it contains a lot of added value. Very well and in-depth explanation. "
    Ed Price: "Great scenario! Good use of images, code, detail, and References! Could possibly use a greater breakdown and explanation of the code. This article just gets more and more interesting and valuable as you read it! Great job!"
    Arleta Wanat
    SharePoint Online: Turn on support for multiple content types
    in a list or library using Powershell
    KB: "Really nice, interesting and detailed article!"
    Ed Price: "The Content Types section helps explain this a lot! I also love the downloads at the end. What a fantastic resource!"
     Small Basic Technical Guru - February 2015  
    Nonki Takahashi
    Small Basic: Key Input
    Michiel Van Hoorn: "Great improvement."
    RZ: "Very nice explanation and examples of key input handling"
    Ed Price - MSFT
    Small Basic: The History of the Logo Turtle
    RZ: "Turtle (Logo) was the first programming language for many, including perhaps some of the Small Basic prorammers. Nice article explaining the history."
    Michiel Van Hoorn: "A nice background article and hopefull inspiration for those who want to start in robotics"
    Nonki Takahashi
    Small Basic: TechNet Wiki Article List
    Michiel Van Hoorn: "This is great! Perfect as a local cache of the articles. "
    RZ: "A good example"
     SQL BI and Power BI Technical Guru - February 2015  
    Sylvain PONTOREAU
    PowerBI API in .Net
    RB: "Great walkthrough. Looking forward for the WP8 version of the app ;)"
    PT: "Sylvain, very nice job with this. This is a timely topic about an emerging product that has great potential. This is a very good example of a well-written post on an interesting subject with enough information to be valuable to a
    solution developer. I will personally take time to explore the Power BI API and use your examples. "
     SQL Server General and Database Engine Technical Guru - February 2015  
    Ronen Ariely
    SQL Server Books Online
    AM: "Thank you for sharing this with us. It is quite informative and let us get familiar with BOL after the change from previous versins."
    Ed Price: "Nice! A very helpful introduction to Books Online! It also tells my technical writer friends that their hard work is appreciated! =^)"
    Durval Ramos
    How to Collect Events and Errors on SQL Server
    Ed Price: "Fantastic solution! A great resource that's amazingly well written with formatting, clear parameters, images, References, and a See Also section! And it even comes in Portuguese! Great article!"
    AM: "Thank you for sharing this with us. A good source to learn about our SQL Server instances. "
     System Center Technical Guru - February 2015  
    MarkusEliasson
    Troubleshoot ID 32008: DPM cannot
    protect this SharePoint farm...
    Ed Price: "An important topic that's very clear with great formatting and a good use of an image!"
    t.c.rich
    Managing Priorities of Client Polices and A/V Policies in SCCM
    Ed Price: "I love the descriptions, breakdown of sections, and code formatting! Great article!" 
    Mr X
    How to copy SMSTS.log when a Task Sequence fails in SCCM
    Ed Price: "A very helpful table and a good contribution to the community! Mr X again thinks of important content gaps to fill!"
     Transact-SQL Technical Guru - February 2015  
    Saeid Hasani
    T-SQL: How the Order of Elements in the ORDER BY Clause Implemented in the Output Result
    Durval Ramos: "Very well structured and with examples that clarify how a T-SQL statement can change the data output order."
    Richard Mueller: "Good use of Wiki guidelines and great examples."
    Ronen Ariely
    Free E-Books about SQL and Transact-SQL languages
    Richard Mueller: "An excellent collection and a great idea."
    Durval Ramos: "A good initiative. Very useful !!!"
    Ricardo Lacerda
    Declare Cursor (Transact-SQL) versus Window with Over - Running Totals
    - Accumulated Earnings
    Durval Ramos: "The "Window function" sample was well presented, but it was unclear how the chart was generated."
    Richard Mueller: "A new idea that can be very useful. Grammar needs work"
     Visual Basic Technical Guru - February 2015  
    Emiliano Musso
    Genetic algorithm to solve 2D Mazes in Visual Basic
    MR: "Great article! Love to see an application for AI in a simple game"
    Durval Ramos: "This article is well documented with images and your code clarifying important details. It also has References, a very useful video and your project available for download in "MSDN Code" !"
    Richard Mueller: "Incredible concept and code. Grammar needs work."
    Paul Ishak
    MultiHeadedTrackBar Control
    Durval Ramos: "Very interesting article, with methods and properties well documented. Your project was available in "MSDN Code" which facilitates the understanding of solution."
    Richard Mueller: "Amazing work. Extensive code but with lots of comments. Needs a TOC"
    tommytwotrain
    Using Trigonometry to draw graphic curves in VB.NET part 2.
    MR: "Great continuation. Love the usage of the code for circle text"
    Durval Ramos: "The article is interesting, but It's need to work better commenting about assemblies referenced on project and also structure your content into sections."
    Richard Mueller: "Good tutorial and example code demonstrating basic concepts. Avoid first person."
     Visual C# Technical Guru - February 2015  
    Magnus (MM8)
    C#: Enumerating collections that change
    Jaliya Udagedara: "Great article. Has a thorough and to the point explanation of problem and the solution with code samples. Loved it!"
    Carmelo La Monica: "Very useful and exhaustive about errors at runtime in these circumstances. Congratulations"
    Andy ONeill
    c#: Practical Poly
    Carmelo La Monica: "Fantastic artcle. Very detailed and exhaustive, congratulations ."
    Jaliya Udagedara: "Definitely worth reading this. Explains somewhat advance topic along with a fundamental concept of programming. "
     Wiki and Portals Technical Guru - February 2015  
    Durval Ramos
    Wiki: Microsoft Short URLs Personalized by SXP
    PG: "Nice idea, lots of potential to grow, really needs some more community attention."
    Richard Mueller: "An excellent idea. Good use of Wiki guidelines."
     Windows Phone and Windows Store Apps Technical Guru - February 2015  
    Carmelo La Monica
    Windows Phone 8: control Nokia Maps (Part 3)
    JH: "Part 3 of the series how to work with the Nokia maps control. As the previous articles this one contains a lot of code snippets and some pictures. Good work!"
    Ed Price: "A great topic, a fantastic breakdown of sections with clear descriptions, and a nice mix of code formatting and helpful images! Another stellar article from Carmelo! Great job including the link back at the end to the portal
    article!"
     Windows PowerShell Technical Guru - February 2015  
    Richard Mueller
    Document Your Active Directory Organization
    Alan Carlos: "Wow! Great article, congratulations!!! Very detailed!"
    Chen V: "Excellent Article - I liked return to top as well."
    Ed Price: "Wow! It's like a professional whitepaper! It's a valuable topic that's done with intricate detail! I love the images, diagrams, code blocks, and it ends very well with more resources and Wiki articles! The article just keeps
    digging deeper and deeper! Awesome job on this!"
    DexterPOSH
    PowerShell + REST API : Invoke-RestMethod Gotcha
    Chen V: "Good Article. TOC might have made this more rich! "
    Ed Price: "This is a good topic with some great content. It could benefit from sections and a TOC, as well as a References and See Also sections at the end. The inline links are helpful. Could "
    DexterPOSH
    PowerShell Trick : Search & highlight text in MS Word
    Ed Price: "This is a great solution, with some helpful Q&A in the comments!"
     Windows Presentation Foundation (WPF) Technical Guru - February 2015  
    Andy ONeill
    Lookless Controls
    KJ: "WPF can definitely be confusing when devs first encounter it. Like the way you break it down."
    Ed Price: "Wow! Fantastic explanations that are very clear and deep! The images and code bring it to life!"
    Andy ONeill
    Only One Parent
    KJ: "Same iwith this one, good 101 intro"
    Ed Price: "Another great tip! I love the detail here as well! Those snippets help a lot!"
    Andy ONeill
    Bind to Current Item of Collection
    KJ: "Feel like this topic has a lot of coverage out there, but it can't hurt to hammer on databinding yet one more time :) "
    Ed Price: "Fantastic topic with great execution! Although these could benefit from References and See Also wiki sections at the end, the Inline links help a lot!"
     Windows Server Technical Guru - February 2015  
    Mr X
    Ping for Beginners
    Mark Parris: "A good introduction with additional content."
    JM: "Great article idea and an excellent article that will be useful to many, thanks for your contribution."
    Philippe Levesque: "Good article that show a usefull utility for basic troubleshooting"
    Richard Mueller
    Active Directory: Get-ADFineGrainedPasswordPolicy Default and Extended Properties
    Mark Parris: "An Interesting insight on FGPP and their extended properties."
    JM: "This is a good piece of detailed information about this PowerShell cmdlet, thanks for sharing."
    Philippe Levesque: "Great article ! Illustrating some cmdlet's output when a user got assigned policy versus a user with the default domain policy could be a good idea."
    Richard Mueller
    Active Directory: Get-ADServiceAccount Default and Extended Properties
    Mark Parris: "A useful nugget of information."
    JM: "More very useful information about an AD cmdlet, thanks!"
    Philippe Levesque: "Good article !"
    As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.
    You will find the complete post, comments and feedback on the
    main announcement post.
    Please join the discussion, add a comment, or suggest future categories.
    If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above,
    THERE'S STILL TIME! :D
    Best regards,
    Pete Laker
    More about the TechNet Guru Awards:
    TechNet Guru Competitions
    #PEJL
    Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to
    TechNet Wiki, for future generations to benefit from! You'll never get archived again, and
    you could win weekly awards!
    Have you got what it takes o become this month's
    TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

    Congrats to Ronen and Durval!
     SQL Server General and Database Engine Technical Guru - February 2015  
    Ronen Ariely
    SQL Server Books Online
    AM: "Thank you for sharing this with us. It is quite informative and let us get familiar with BOL after the change from previous versins."
    Ed Price: "Nice! A very helpful introduction to Books Online! It also tells my technical writer friends that their hard work is appreciated! =^)"
    Durval Ramos
    How to Collect Events and Errors on SQL Server
    Ed Price: "Fantastic solution! A great resource that's amazingly well written with formatting, clear parameters, images, References, and a See Also section! And it even comes in Portuguese! Great article!"
    AM: "Thank you for sharing this with us. A good source to learn about our SQL Server instances. "
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • SQL Server Express and Visual Studio 2013

    In February I installed Visual Studio 2013 Professional. Looking in the Control Panel at all my installed programs, I see that I have a bunch of SQL server-related programs loaded, from the 2013 install and also from installs of previous Visual Studio versions.
    I've never done a thing with SQL server express, and am completely clueless about using it. I've already wanted to take a crack at it but it always seemed too daunting, so I backed off. It seems, however, that over the years the integration of SQL Server Express
    with Visual Studio is getting more and more seamless. Here is a list of all the SQL Server-related programs on my computer, with the ones installed automatically from the Visual Studio 2013 install bolded so they'll stand out. What I'm wondering is if I have
    everything I need to use SQL Server Express with Visual Studio 2013:
    Microsoft SQL Server 2005                                                  
    Microsoft Corporation   11/4/2013
    Microsoft SQL Server 2005 Mobile [ENU] De...                     
    Microsoft Corporation   4/29/2007
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Se1Ver 2008 R2 Management ...                   
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Transact-SQL ...                    
    Microsoft Corporation   12/7/2011
    Microsoft SQL Server 2012 Command Line ...                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Data-Tier App Fr...              
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Express LocalDB                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Management Ob...               
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Native Client                        
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Transact-SQL Co...                    
    Microsoft Corporation   9/21/2012
    Microsoft SQL Server 2012 Transact-SQL Ser...            
    Microsoft  Corporation 2/10/2014
    Microsoft SQL Server 2012 T-SQL Language ...             
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server Compact 3.5 Design T...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Compact 3.5 SP2 ENU                       
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Compact 4.0SP1 ENU                        
    Microsoft Corporation   9/21/2012
     Microsoft SQL Se1Ver Data Tools - enu (11.1....                 
    Microsoft Corporation   5/19/2013
     Microsoft SQL Server Data Tools - enu (12.0....            
    Microsoft Corporation  2/10/2014
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...              
    Microsoft Corporation   5/19/2013
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...         
    Microsoft  Corporation 2/10/2014
     Microsoft SQL Server Database Publishing ...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Database Publishing ...                      
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Native Client                                      
    Microsoft Corporation   4/1/2011
    Microsoft SQL Server Setup Support Files (E...                    
    Microsoft Corporation   4/1/2011
    Microsoft SQL Se1Ver System CLR Types                             
    Microsoft Corporation   1217/2011
    Microsoft SQL Server VSS Writer                                         
    Microsoft Corporation   4/1/2011

    Hello,
    Please read the following resources:
    http://msdn.microsoft.com/en-us/library/ms233763.aspx
    http://stackoverflow.com/questions/20333518/how-to-create-a-database-in-ms-visual-studio-2013
    http://msdn.microsoft.com/en-us/vstudio/bb643825.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server Agent and Jobs and executing @EventData

    I have a SQL Server Agent Job and within it a Job Step which states "Execute Report Subscriptions" and a command which has...
    exec msdb.dbo.sp_start_job '6FF53AED-855F-43AB-9FB7-064062B8012E' --9:07 subscription
    GO
    WAITFOR DELAY '00:08';
    Now, I find within SQL Server Agent the Job  '6FF53AED-855F-43AB-9FB7-064062B8012E' and its step command which is...
    exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='ca4e5410-2758-4a1a-9b06-513821e0d962'
    How can I drill-down further into the @EventData 'ca4e5410-2758-4a1a-9b06-513821e0d962' to see what it does? I do not see 'ca4e5410-2758-4a1a-9b06-513821e0d962' within SQL Server Agent and Jobs or am I way off base here as to what exactly the @EventData
    parameter seems to be?
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyP,
    According to your description, you need to know the what does SQL Server Reporting Services do when fire a subscription, right?
    When you create a subscription several things are added to the RS server
    A row is placed in the Subscriptions table identifying the name of the report, along with parameter settings, data driven query info and so on to process the subscription
    A row is placed in the Schedule and ReportSchedule tables with the timing of the subscription
    A SQL Server Agent job is created to control the scheduled execution of the report, and this is stored in the sysjobs and sysjobsteps of the MSDB database.
    When the subscription runs several things happen
    The SQL Server Agent job fires and puts a row in the Event table in the RS catalog with the settings necessary to process the subscription
    The RS server service has a limited number of threads (2 per CPU) that poll the Event table every few seconds looking for subscriptions to process
    When it finds an event, it puts a row in the Notifications table and starts processing the subscription
    Please refer to the links below to see the details.
    http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
    http://blogs.msdn.com/b/deanka/archive/2010/02/16/troubleshooting-subscriptions-part-ii-using-the-report-services-trace-log-file.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • ? Regarding 'SQL user-defined function' execution performance ?

    Hi All,
    I have an user-defined function in SQL which am using in a SQL select statement and i found that the execution time taken by the user-defined function is 9-10 minutes as a result of which my whole query execution time is affected.
    How to i improvise the execution time. Should i do some sort of scheduling for executing the user-defined functions only. Am new to the database world. Your early response with a good suggestion would really be appreciated.
    Thanks in Advance.

    Try to read SQL tuning documents along with TkProf. Then only you will be able to detect the problem.
    There is no instant method by which you can solve this problem.
    But, you can get idea from this samples.
    Tuning:
    http://www.dba-oracle.com/art_sql_tune.htm
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:8764517459743
    Reading TkProf:
    http://www.dbspecialists.com/presentations/use_explain.html
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:920429344869
    Regards.
    Satyaki De.

  • Doubt regarding SQL execution

    Hi Friends,
    Am using Oracle 10g DB - 10.2.0.3.0
    I have some basic doubts regarding sql query execution by Oracle.
    Say, Am executing a query from a toad/sqlplus session for the first time, it takes 10 secs then 1 sec and so on.
    Same thing happens for every 15 minutes.(Any specific reason for this ??).
    It takes more time when it executes first because of parsing and all those stuff but from then on it picks from the
    shared pool right??.. How long will it be there in Shared Pool does Oracle maintain any specific time period to clear that query from shared pool memory. How does Oracle handle this.
    Another thing is, say, I have a report query, I run this query monthly. What will be the execution time when I run this query each and every month. Will Oracle parse this query everytime I run. How do I improve the performance in this situation (May sound odd :)).
    Regards,
    Marlon

    Say, Am executing a query from a toad/sqlplus session for the first time, it takes 10 secs then 1 sec and so on.
    Same thing happens for every 15 minutes.(Any specific reason for this ??).
    It takes more time when it executes first because of parsing and all those stuff but from then on it picks from the
    shared pool right??.. How long will it be there in Shared Pool does Oracle maintain any specific time period to clear that query from shared pool memory. How does Oracle handle this. Share Pool caches the SQL statement. So when you execute the same SQL for the second time it goes for a soft parse. But this is not the only reason for the query to execute faster the second time. The time difference between a soft parse and hard parse is very minimal. So it really does not matter unless you are executing the same query several number of times.
    The thing that really matters is the Data Buffer Cache. That is the rows that are selected by your query are cached into the Data buffer that is available in the SGA. So for the next time when you run the same query the IO is reduced as the data is available in the memory and you don't have to go to your disk to get the data.
    But the data in Data Buffer is not persistent, meaning it follows the FIFO rule. That is first in first out. When the Data Buffer is full the content of the buffer is removed in the FIFO order.
    Another thing is, say, I have a report query, I run this query monthly. What will be the execution time when I run this query each and every month. Will Oracle parse this query every time I run. How do I improve the performance in this situation (May sound odd :)). Like the Data Buffer the Shared Pool is also maintained in the FIFO order. So if the query is still in the Shared Pool the query will be soft parsed else it will be hard parsed. But its very rare that you will have a query in your Shared Pool for a month.

  • SQL performance 9i and 10g

    Hi guys,
    I have question regarding sql fetching slow response issue in 10g compared to 9i. Have enabled the 10046 trace the actual CPU and Elapsed time of that query.
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    rows = number of rows processed by the fetch or execute call
    SQL == Running on 9i
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 13295 1.39 1.55 513 14742 0 13294
    total 13297 1.40 1.56 513 14742 0 13294
    SQL == Running on 10g
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 13305 1.41 1.32 0 14621 0 13304
    total 13307 1.42 1.32 0 14621 0 13304
    They are running quite fast in 9i and 10g Database with the trace report. However, there has slow response issue on 10g.
    E.g SQL> set time on
    SQL> set timing on
    ---- fetching records on screen
    ---- truncated
    13304 returned.
    00:15:21
    SQL>
    In 9i, it only takes 2 mins to return the sqlplus prompt, but take at least 15 mins to return in 10g. Do you have any idea?
    I have raised the issue with Oracle Support, the the OSS said.. your 10046 trace is good and take only 1-2 sec. And he didn't follow after that. Please help if you have idea. Thanks
    Best Regards,
    Vbeer.

    Hi Charles,
    Oracle Version 10.2.0.3
    NAME TYPE VALUE
    statistics_level string TYPICAL
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 2
    In 10g raw trace file of 10046:
    <--QUERY-->
    END OF STMT
    PARSE #1:c=10000,e=4193,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=21234109349008
    BINDS #1:
    EXEC #1:c=0,e=115,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=21234109349329
    WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109349392
    WAIT #1: nam='SQL*Net message from client' ela= 669 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350166
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350353
    WAIT #1: nam='SQL*Net more data to client' ela= 12 driver id=1650815232 #bytes=2161 p3=0 obj#=77206 tim=21234109350403
    FETCH #1:c=0,e=224,p=0,cr=4,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109350428
    WAIT #1: nam='SQL*Net message from client' ela= 149 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350613
    WAIT #1: nam='SQL*Net more data from client' ela= 9 driver id=1650815232 #bytes=524 p3=0 obj#=77206 tim=21234109350665
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350737
    WAIT #0: nam='SQL*Net more data to client' ela= 9 driver id=1650815232 #bytes=2524 p3=0 obj#=77206 tim=21234109350774
    WAIT #0: nam='SQL*Net message from client' ela= 5199 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109355996
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356058
    FETCH #1:c=0,e=48,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109356084
    WAIT #1: nam='SQL*Net message from client' ela= 61 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356177
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356218
    WAIT #0: nam='SQL*Net message from client' ela= 4931 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361179
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361248
    FETCH #1:c=0,e=43,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109361272
    WAIT #1: nam='SQL*Net message from client' ela= 81 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361388
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361447
    WAIT #0: nam='SQL*Net message from client' ela= 5057 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366540
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366602
    FETCH #1:c=0,e=52,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109366629
    WAIT #1: nam='SQL*Net message from client' ela= 75 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366737
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366778
    WAIT #0: nam='SQL*Net message from client' ela= 4913 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371739
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371791
    FETCH #1:c=0,e=42,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109371815
    WAIT #1: nam='SQL*Net message from client' ela= 64 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371911
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371947
    WAIT #0: nam='SQL*Net message from client' ela= 95474 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467455
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467536
    FETCH #1:c=0,e=58,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109467563
    WAIT #1: nam='SQL*Net message from client' ela= 248 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467848
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467893
    WAIT #0: nam='SQL*Net message from client' ela= 5526 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473480
    WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473716
    FETCH #1:c=0,e=143,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109473761
    WAIT #1: nam='SQL*Net message from client' ela= 148 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473979
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109474068
    WAIT #0: nam='SQL*Net message from client' ela= 5516 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479623
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479745
    FETCH #1:c=0,e=84,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109479781
    WAIT #1: nam='SQL*Net message from client' ela= 126 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479950
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479996
    WAIT #0: nam='SQL*Net message from client' ela= 182929 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109662981
    WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663141
    FETCH #1:c=0,e=100,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109663177
    WAIT #1: nam='SQL*Net message from client' ela= 139 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663368
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663434
    WAIT #0: nam='SQL*Net message from client' ela= 5593 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669069
    WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669240
    FETCH #1:c=0,e=110,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109669282
    WAIT #1: nam='SQL*Net message from client' ela= 167 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669506
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669597
    WAIT #0: nam='SQL*Net message from client' ela= 5505 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675138
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675213
    FETCH #1:c=0,e=56,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109675239
    WAIT #1: nam='SQL*Net message from client' ela= 76 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675351
    Cheers,
    Vbeer

  • Request: PL/SQL, External Table and SQL Loader

    I see lately Questions asked in SQL and PL/SQL forum regarding SQL Loader and External Table are being moved to {forum:id=732}.
    Being an PL/SQL developer for some time now i feel External Table (and if i may, SQL Loader and DBMS_DATAPUMP) are very much an integral part of a PL/SQL development and the question related to these topics are well suited in SQL and PL/SQL forum. Even in SQL and PL/SQL FAQ we have exclusive content that discuss on these topics {message:id=9360007}
    So i would like to request the moderators to consider not moving such questions out of the SQL and PL/SQL forum.
    Thanks,
    Karthick.

    Karthick_Arp wrote:
    I see lately Questions asked in SQL and PL/SQL forum regarding SQL Loader and External Table are being moved to {forum:id=732}.
    Being an PL/SQL developer for some time now i feel External Table (and if i may, SQL Loader and DBMS_DATAPUMP) are very much an integral part of a PL/SQL development and the question related to these topics are well suited in SQL and PL/SQL forum. Even in SQL and PL/SQL FAQ we have exclusive content that discuss on these topics {message:id=9360007}
    So i would like to request the moderators to consider not moving such questions out of the SQL and PL/SQL forum.
    Thanks,
    Karthick.Not sure which moderators are moving them... cos it ain't me. I'm quite happy to leave those there.

  • Stopping sql server services while applying Service pack On SQL server 2008 and 2008 R2

    Hi,
    I am planning to apply service pack 3 for SQL 2008 R2 and Service pack 4 for SQL server 2008. This is my first time and I am applying first QA and DEV environment. I have one confusion. In cluster once you fail over sql resources to active node all of the
    sql services including SQLSERVER and Agent are automatically stopped in passive node where we apply service pack. But in Stand alone, The services are not automatically stopped. Do I need to manually  stop those services like SQLSERVER, Agent, Browser
    and others if any  before I start applying service pack?
    Early Response is highly appreciated.
    Thanks In Advance

    Hello,
    You don’t need to stop SQL Server services. Let SQL Server setup do it as needed.
    Please read the following article for the cluster you would like to update:
    https://support.microsoft.com/kb/958734?wa=wsignin1.0
    The following article may be useful too:
    http://www.sqlcoffee.com/Tips0014.htm
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Question Regarding SQL logic error!

    Hello everyone,
    I get the following error when executing an Informatica mapping with teh following SQL in the Source Qualifier.
    error - OR- 00936: missing expression.
    Can anyone help please!
    SELECT
    PS_CUSTOMER.SETID
    , PS_CUSTOMER.CUST_ID
    , PS_CUSTOMER.CUST_STATUS
    , PS_CUSTOMER.ADD_DT
    , PS_CUSTOMER.NAME1
    , PS_CUSTOMER.TAXPAYER_ID
    , PS_CUSTOMER.WEB_URL
    , PS_CUSTOMER.LAST_MAINT_OPRID
    , PS_CUSTOMER.DATE_LAST_MAINT
    , PS_CUST_SIC_CODES.SIC_CD_QUAL
    , PS_CUST_SIC_CODES.SIC_CODE
    , PS_CUST_CGRP_LNK.CUST_GRP_TYPE
    , PS_CUST_CGRP_LNK.CUSTOMER_GROUP
    , PS_CUST_CGRP_LNK.LASTUPDDTTM
    , PS_CUST_ID_NBRS.STD_ID_NUM
    , PS_CUSTOMER.SUBCUST_QUAL1
    FROM PS_CUSTOMER
    select SIC1.SETID, SIC1.CUST_ID, MAX(SIC1.SIC_CODE) SIC_CODE, SIC1.SIC_CD_QUAL
    from PS_CUST_SIC_CODES SIC1
    where SIC1.SIC_CD_QUAL =
    ( select MAX(SIC_CD_QUAL)
    from PS_CUST_SIC_CODES SIC2
    where SIC2.CUST_ID = SIC1.CUST_ID
    and SIC2.SETID = SIC1.SETID
    group by SETID, CUST_ID, SIC1.SIC_CD_QUAL
    ) PS_CUST_SIC_CODES
    select A.CUST_ID, A.SETID, A.CUST_GRP_TYPE
    , MAX(A.CUSTOMER_GROUP) CUSTOMER_GROUP, A.LASTUPDDTTM
    from PS_CUST_CGRP_LNK A
    where A.CUST_GRP_TYPE =
    SELECT MAX(CUST_GRP_TYPE)
    FROM PS_CUST_CGRP_LNK B
    WHERE A.CUST_ID = B.CUST_ID
    AND A.SETID = B.SETID
    AND A.LASTUPDDTTM = B.LASTUPDDTTM
    AND B.LASTUPDDTTM =
    SELECT MAX(LASTUPDDTTM)
    FROM PS_CUST_CGRP_LNK C
    WHERE C.CUST_ID = B.CUST_ID
    AND C.SETID = B.SETID
    GROUP BY CUST_ID, SETID, CUST_GRP_TYPE, LASTUPDDTTM
    ) PS_CUST_CGRP_LNK
    select SETID, CUST_ID, STD_ID_NUM
    from PS_CUST_ID_NBRS
    where STD_ID_NUM_QUAL = 'DNS'
    ) PS_CUST_ID_NBRS
    WHERE
    { PS_CUSTOMER
    LEFT OUTER JOIN
    PS_CUST_SIC_CODES ON
    PS_CUSTOMER.SETID = PS_CUST_SIC_CODES.SETID
    AND PS_CUSTOMER.CUST_ID = PS_CUST_SIC_CODES.CUST_ID
    LEFT OUTER JOIN
    PS_CUST_CGRP_LNK ON
    PS_CUSTOMER.SETID = PS_CUST_CGRP_LNK.SETID
    AND PS_CUSTOMER.CUST_ID = PS_CUST_CGRP_LNK.CUST_ID
    LEFT OUTER JOIN
    PS_CUST_ID_NBRS ON
    PS_CUSTOMER.SETID = PS_CUST_ID_NBRS.SETID
    AND PS_CUSTOMER.CUST_ID = PS_CUST_ID_NBRS.CUST_ID
    ORDER BY PS_CUSTOMER.CUST_ID , PS_CUSTOMER.SETID
    Thanks,
    Ajay.

    Kramer wrote:
    Hi
    So.. do we have to pay for the feature regarding sql tuning advisor?
    Can we use the dbms_sqltune package for free in oracle?
    No, you need the license. Please read below,
    http://download.oracle.com/docs/cd/E11882_01/license.112/e10594/options.htm#CIHFIHFG
    I `m doing below test on my Linux. I installed an oracle on it and only for study purpose so didn`t pay.
    As you can see. I got no output.
    SQL> exec dbms_sqltune.execute_tuning_task('TASK_1634');
    PL/SQL procedure successfully completed.
    SQL> select dbms_sqltune.report_tuning_task('TASK_1634') from dual;
    DBMS_SQLTUNE.REPORT_TUNING_TASK('TASK_1634')
    GENERAL INFORMATION SECTION
    Please read the below link to learn how to use the STA.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sql_tune.htm
    HTH
    Aman....

  • SQL server 2000 and java

    Hi all,
    i am about to developpe a java application that has to do the following tasks:
    1. detect all SQL server existing databases .
    2. for every database (SQL server database) be able to connect to the chosen database and detect all the tables Regarding every SQL server database.
    for the first point ,i thought about searching my hole system for the files of SQL server databases with the criteria of its extension (.SQL serverEXtension database file). But i don't know if this method is efficient and if there are not other methods for this purpose ?!
    for the second point i'm wondering if there exist methods or Classes that return the Set of all the tables within a given SQL server database ; and also return the Set of the Fields (Attributes )within this given database.
    It remains one important point: how to connect to a SQL Server database from a java Program.
    I'm waiting for your hints and ideas... Thanks indeed.

    Try DatabaseMetaData for databases, tables and fields. There's even more information you can get from it, check the API documentation.
    Alin.

  • Communication Failing with Corrupted Chars . Sql Server 2000 and AS400

    Hi Experts,
    I am facing this below error after 9 yrs. sql server 2000 and As400 on prod server. while on dev and stage it's running properly. Here username is ABCD, while it's showing BCD
    The OLE DB provider "MSDASQL" for linked server "" reported an error. Authentication failed. [SQLSTATE 42000] (Error 7399) Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "xxxxx".
    [SQLSTATE 42000] (Error 7303)  OLE DB provider "MSDASQL" for linked server "" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    [SQLSTATE 01000] (Error 7412)  OLE DB provider "MSDASQL" for linked server returned message "[IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=8001 - CWBSY0001 -
    User  BCD on server does not exist, Password length = 8, Prompt Mode = Never, System IP Address = "xxxxx". [SQLSTATE 01000] (Error 7412).  The step failed.
    Here ABCD user is also disabling/locking the profile on AS400 server.
    When we tried on Dev server, linked server through DSN working properly. Last time when it appeared 2 yrs ago, it resolved automatically. but now more than 10 days passed and still Failing.
    Please Guide Me.
    Regards,
    Manish

    So this setup has worked for nine years, and all of a sudden stopped working with this error message? Does not look trivial...
    What does Here ABCD user is also disabling/locking the profile on AS400 server mean? Is ABCD able to log in directly on the AS400 box?
    One possibility is that the user ABCD has been dropped or disabled, and then there is a bug in the ODBC driver where the first character of the username is distorted in the error message. I note that there are two spaces between "User" and "BCD".
    The other possibility is that the AS400 is receiving a login attempt from BCD (or something that ends in BCD with an invisible leading character). This sounds very difficult to troubleshoot...
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Web discoverer report run slow after upgrade to AS10.1.2.48.18

    We just upgraded our application server to 10.1.2.48.18, our web Discoverer report were running extremly slow on tables that contain large amount of data. We have good speed with those report in the past. The backgroud database was the same as well a

  • Problems with Personnel Cost Planning

    Hi all, i have problems with the Personnel Cost Planning specifically with the Quota planning (infotype 1019). i save data in the infotype 1019, Quota planning, for a organizational unit and in the infotype 1005, Planned Compensation, i save data for

  • Two scripts not aligning correctly, 200px Width each, Link inside

    Hello all, I have a slight problem, I am attempting to align a twitter script and another script on one page, next to eachother, yet no matter how small I make the width of the style div, they remain on two individual alignments, one below the other.

  • About JTable.

    Hello , Can anyone please give me a hint on how to use the ResultSet to populate the JTable from the database , I have my ResultSet ready but I'm confused about how to use it , do I have to create a String Array to hold each row , and another to hold

  • Xsql setup problem. 'Cannot acquire a database connection to process page.'

    This is probably a really basic problem, but I am getting the following error when I try to use the xsql demos. Oracle XDK Java 9.2.0.2.0 Production XSQL-007: Cannot acquire a database connection to process page. Io exception: Connection refused(DESC