Reference images in stored procedures

I wasn't able to find the way to reference images uploaded in HTMLDB repository from a stored procedure (that use htp).
please can anybody help me?
Thanks
Francesco Galante

images, files, and css's uploaded to the htmldb repository are referenced with the #WORKSPACE_IMAGES# substitution string. images uploaded into your workspace's repository that are associated with a specific app can be referenced with #APP_IMAGES#. we talked a bit about this at...
How do I refer uploaded images or css files in templates?
...and to reference those images in your stored procedures you'd simply use the V() syntax instead of that substitution string one. references like v('APP_IMAGES') and v('WORKSPACE_IMAGES') in commands like...
htp.p('<img src="'||v('WORKSPACE_IMAGES')||'my_image.jpg">');
...would do it.
hope this helps,
raj

Similar Messages

  • Another schema reference in a stored procedure

    Hello -
    I need to call a stored procedure from another stored procedure in a different schema. Can this be done?
    For example:
    I am logged on as USER1 and I try to call these stored procedures from within a stored procedure:
    DO_STUFF (works - within one schema)
    USER2.DO_STUFF (does not compile)
    INSERT INTO USER2.SOME_TABLE VALUES(...) (does not run -table does not exist)
    Thanks!
    Peter

    Vinay,
    Spend some time online to read and search about your problem before blindly posting it on forum, if you would have done that you could have found out eaisly below two links which will explain you in deep
    http://stackoverflow.com/questions/3682821/difference-between-varchar500-vs-varcharmax-in-sql-server
    http://sqlhints.com/2013/03/10/difference-between-sql-server-varchar-and-varcharmax-data-type/
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • Stored procedure with multiple Reference Cursors

    In Sybase and SQLServer, result sets are returned to the application implicitly. Oracle emulates this by passing back weak reference cursors to the application through an IN OUT parameter.The number of reference cursors must match the number of results sets. For example, if 2 select statements are present in the stored procedure code, then 2 reference cursors are passed back.The Oracle Migration Workbench creates the correct number of reference cursors but assigns each select statement results to the first cursor created. Therefore only the last set of results are returned to the client.
    Before (SQLServer)
    CREATE PROCEDURE get_sch_associated_appointment_info (@piAcc_itn int) AS SELECT s.acc_itn, r.internal_key, r.mnemonic, r.descp, sh.start_dtime, sh.end_dtime FROM schdtl s, schdtlhdr sh, resource r WHERE s.acc_itn = @piAcc_itn and sh.acc_itn = @piAcc_itn and sh.resource_itn = r.internal_key SELECT sdcr.acc_itn, sdcr.rsch_dtime, sdcr.rsch_by_init, sdcr.rsch_code, sdcr.rsch_reason, sdcr.cncl_dtime, sdcr.cncl_by_init, sdcr.cncl_code, sdcr.cncl_reason, sdcr.prev_start_dtime, sdcr.prev_by_init FROM schdtl_canrsch sdcr WHERE sdcr.acc_itn = @piAcc_itn SELECT sdi.acc_itn, i.sched_notes, i.post_sched_notes, d.pre_sch_notes, d.post_sch_notes, i.detail_key, i.output_notes FROM schdtl_info sdi, extitem i, dept d WHERE sdi.acc_itn = @piAcc_itn and sdi.actual_dept = i.dept and sdi.actual_proc_no = i.proc_no and sdi.actual_dept = d.dept
    After (Migration Workbench) – Optional Section
    CREATE OR REPLACE PROCEDURE get_sch_associated_appointment_info (piAcc_itn int, RC1 IN OUT Omwb_emulation.globalPkg.RCT1) AS OPEN RC1 SELECT s.acc_itn, r.internal_key, r.mnemonic, r.descp, sh.start_dtime, sh.end_dtime FROM schdtl s, schdtlhdr sh, resource r WHERE s.acc_itn = piAcc_itn and sh.acc_itn = piAcc_itn and sh.resource_itn = r.internal_key; OPEN RC1 SELECT sdcr.acc_itn, sdcr.rsch_dtime, sdcr.rsch_by_init, sdcr.rsch_code, sdcr.rsch_reason, sdcr.cncl_dtime, sdcr.cncl_by_init, sdcr.cncl_code, sdcr.cncl_reason, sdcr.prev_start_dtime, sdcr.prev_by_init FROM schdtl_canrsch sdcr WHERE sdcr.acc_itn = piAcc_itn; OPEN RC1 SELECT sdi.acc_itn, i.sched_notes, i.post_sched_notes, d.pre_sch_notes, d.post_sch_notes, i.detail_key, i.output_notes FROM schdtl_info sdi, extitem i, dept d WHERE sdi.acc_itn = piAcc_itn and sdi.actual_dept = i.dept and sdi.actual_proc_no = i.proc_no and sdi.actual_dept = d.dept;
    After (Manual Change)
    CREATE OR REPLACE PROCEDURE get_sch_associated_appointment_info (piAcc_itn int, RC1 IN OUT Omwb_emulation.globalPkg.RCT1, RC2 IN OUT Omwb_emulation.globalPkg.RCT1, RC3 IN OUT Omwb_emulation.globalPkg.RCT1) AS OPEN RC1 SELECT s.acc_itn, r.internal_key, r.mnemonic, r.descp, sh.start_dtime, sh.end_dtime FROM schdtl s, schdtlhdr sh, resource r WHERE s.acc_itn = piAcc_itn and sh.acc_itn = piAcc_itn and sh.resource_itn = r.internal_key; OPEN RC2 SELECT sdcr.acc_itn, sdcr.rsch_dtime, sdcr.rsch_by_init, sdcr.rsch_code, sdcr.rsch_reason, sdcr.cncl_dtime, sdcr.cncl_by_init, sdcr.cncl_code, sdcr.cncl_reason, sdcr.prev_start_dtime, sdcr.prev_by_init FROM schdtl_canrsch sdcr WHERE sdcr.acc_itn = piAcc_itn; OPEN RC3 SELECT sdi.acc_itn, i.sched_notes, i.post_sched_notes, d.pre_sch_notes, d.post_sch_notes, i.detail_key, i.output_notes FROM schdtl_info sdi, extitem i, dept d WHERE sdi.acc_itn = piAcc_itn and sdi.actual_dept = i.dept and sdi.actual_proc_no = i.proc_no and sdi.actual_dept = d.dept;

    I believe you are using .NET(?). If that is the case, please post this query to the .NET Development - Crystal Reports  forum:
    SAP Crystal Reports, version for Visual Studio
    That forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • LEXICAL REFERENCES IN STORED PROCEDURES

    CAN I TO DO LEXICAL REFERENCES IN STORED FUNCTIONS AND STORED
    PROCEDURES ?
    THANK'S FOR ANY HELP.

    What is your application release?
    Not sure if I understand you correctly, but have you reviewed (How To Use Oracle.Apps.Fnd.Flex.Kff.Select To Retrieve Particular Segments And Not All Segments from a Flexfield [ID 1267032.1]) and see if it helps?
    Thanks,
    Hussein

  • Circular references between stored procedures

    Hi, i need help about circular references. I have two stored procedures that references like that:
    create or replace
    procedure ciclico2 as
    begin
    ciclico1;
    end;
    create or replace
    procedure ciclico1 as
    begin
    ciclico2;
    end;
    I can't compile both... so i want to know if there are ways to do that...
    Thanks
    Marcos (from Argentina... with a medium level english)

    ¡Hola, Marcos!
    If the procedures are in packages (or the same package), you can compile the package specs first, and then the package bodies.
    It's simpler if both procedures are in the same package:
    CREATE OR REPLACE PACKAGE     pk_fubar
    AS
    PROCEDURE ciclico1;
    PROCEDURE ciclico2;
    END       pk_fubar;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY     pk_fubar
    AS
    PROCEDURE ciclico1
    IS
    BEGIN
            ciclico2;
    END        ciclico1
    PROCEDURE ciclico2
    IS
    BEGIN
            ciclico1;
    END        ciclico2
    END     pk_fubar
    SHOW ERRORSOr you could put just one of them in a package.
    The important thing is that you can compile a package spec and a package body separately.
    You can compile anything that references a function in a package if a valid package spec exists; the package body may be invalid, or it may not exist at all. The package body has to exist and be valid before you run the procedure that calls it, of course, but not necessarily when you compile it.

  • Varbinary(max) parameters in Nested Stored Procedures by value or reference _Expand / Collapse

    Consider a situation where a stored procedure taking a varbinary(max) (BLOB) input parameter
    then calls a nested stored procedure and passes along that varbinary(max) as an input parameter to the nested stored procedure.
    Is a copy of the BLOB provided to the nested stored procedure (passed by value) OR is the BLOB passed by reference.
    My interest is in understanding the potential memory hit when handling large BLOBs in this environment.
    For example, if the BLOB is 200MB, will SQL server need to allocate memory for a new copy each time it's passed to another stored procedure at the next nestlevel?
    Looks like table type parameters are passed by reference, but I haven't been able to find any info on BLOBS in this context.

    The semantics for parameters in SQL Server is copy-in/copy-out. However, this does not mean that there cannot be optimizations. That is, there is no need to copy the BLOB, as long as the procedure does not change it. Whether they actually have such an optimization,
    I don't know.
    I composed the repro below, and it is sort of interesting. If I restart my instance (SQL 2014), the memory usage grows with about 40 M for each nesting call, which certainly indicates that the BLOB is copied over and over again. But if I then run it again,
    the growth is not the same. This may be because, it uses buffers already available. (A BLOB has to be a handle like a table when it is over some size.) Then again, it means that it is squeezing something else out of the cache.
    CREATE PROCEDURE K  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS K, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       SELECT @h = ''
    go
    CREATE PROCEDURE L  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS L1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC K @h
       SELECT SUM(pages_kb)*8192 AS L2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    CREATE PROCEDURE M  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS M1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC L @h
       SELECT SUM(pages_kb)*8192 AS M2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    CREATE PROCEDURE N  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS N1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC M @h
       SELECT SUM(pages_kb)*8192 AS N2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    DECLARE @h varchar(MAX) = replicate(cast('ABCD' AS varchar(MAX)), 1E7)
    EXEC N @h
    go
    DROP PROCEDURE K, L, M, N
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to save images to table using stored procedures?

    hi all,
    i created a stored procedure
    create table members ( id number, name varchar2(30), avatar blob );
    create or replace add_ member ( id number, name varchar2, avatar blob )
    is
    begin
    insert into members values ( id, name, avatar);
    commit;
    end;i have 3 items in page..
    1. Hidden -> P1_ID
    2. Text field - > P1_NAME
    3. File Browse - P1_AVATAR
    but when invoking the procedure in Processes like
    begin
    add_member ( id => :P1_ID, name => :P1_NAME, avatar => :P1_AVATAR );
    end;i get an error
    1 error has occurred
        * ORA-06550: line 3, column 3: PLS-00306: wrong number or types of arguments in call to 'ADD_MEMBERR' ORA-06550: line 3, column 3: PL/SQL: Statement ignoredcan anyone tell me why it errors out?
    thanks
    allen

    Did you do as fac586 suggested:
    create table members ( id number, name varchar2(30), avatar blob );
    create or replace add_ member ( id number, name varchar2, avatar blob )
    is
    begin
    insert into members values ( id, name, avatar);
    commit;
    end;should be something like:
    create table members ( id number, name varchar2(30), avatar blob );
    create or replace add_ member ( id number, name varchar2, avatar blob )
    is
    begin
    insert into members (id, name, avatar) values ( id, name, avatar);
    commit;
    end;You need to specify the columns of the table that you will be inserting values into.
    Also, you should probably rename the parameters of your procedure so you can differentiate between the parameters, and the database columns.
    i.e.:
    create or replace add_ member ( p_id number, p_name varchar2, p_avatar blob )

  • DBA_FREE_SPACE reference in stored procedure

    Hi all,
    I tried googling around and could not find a solution.  I am referencing the DBA_FREE_SPACE system view in a stored procedure.  I received an error for insuffiient privileges for that particular piece of the stored proc.  I then explicity granted SELECT on the system view to the user schema which holds the stored proc.  I still am getting the insufficient privileges error and can not figure out why.  Has anyone experienced this or do you have any ideas I can try?
    Thanks in advance.

    andy_schnelle wrote:
    Hi all,
    I tried googling around and could not find a solution.  I am referencing the DBA_FREE_SPACE system view in a stored procedure.  I received an error for insuffiient privileges for that particular piece of the stored proc.  I then explicity granted SELECT on the system view to the user schema which holds the stored proc.  I still am getting the insufficient privileges error and can not figure out why.  Has anyone experienced this or do you have any ideas I can try?
    Thanks in advance.
    Maybe we should see your code and the exact error message, not your interpretation of the error.  Typically, not having SELECT privilge on a table or view will return 'ORA-00942: table or view does not exist'. 
    SQL> conn scott/tiger
    ERROR:
    ORA-28001: the password has expired
    Changing password for scott
    New password:
    Retype new password:
    Password changed
    Connected.
    SQL> select * from dba_free_space;
    select * from dba_free_space
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> conn / as sysdba
    Connected.
    SQL> grant select on dba_free_space to scott;
    Grant succeeded.
    SQL> conn scott/lion
    Connected.
    SQL> select * from dba_free_space;
    TABLESPACE_NAME   FILE_ID   BLOCK_ID  BYTES     BLOCKS
    RELATIVE_FNO

  • Passing Tables back from Java Stored Procedures

    Thomas Kyte has written (in reference to
    trying to pass an array back from a stored
    function call):
    You can do one of two things (and both require the use of
    objects). You cannot use PLSQL table types as JDBC cannot bind to
    this type -- we must use OBJECT Types.
    [snip]
    Another way is to use a result set and "select * from
    plsql_function". It could look like this:
    ops$tkyte@8i> create or replace type myTableType as table of
    varchar2 (64);
    2 /
    Type created.
    ops$tkyte@8i>
    ops$tkyte@8i>
    ops$tkyte@8i> create or replace
    2 function demo_proc2( p_rows_to_make_up in number )
    3 return myTableType
    4 as
    5 l_data myTableType := myTableType();
    6 begin
    7 for i in 1 .. p_rows_to_make_up
    8 loop
    9 l_data.extend;
    10 l_data(i) := 'Made up row ' &#0124; &#0124; i;
    11 end loop;
    12 return l_data;
    13 end;
    14 /
    Function created.
    ops$tkyte@8i>
    ops$tkyte@8i> select *
    2 from the ( select cast( demo_proc2(5) as mytableType )
    3 from dual );
    COLUMN_VALUE
    Made up row 1
    Made up row 2
    Made up row 3
    Made up row 4 [Image]
    Made up row 5
    So, your JDBC program would just run the query to get the data.
    If the function "demo_proc2" cannot be called from SQL for
    whatever reason (eg: it calls an impure function in another piece
    of code or it itself tries to modify the database via an insert
    or whatever), you'll just make a package like:
    ops$tkyte@8i> create or replace package my_pkg
    2 as
    3
    4 procedure Make_up_the_data( p_rows_to_make_up in
    number ); 5 function Get_The_Data return myTableType;
    6 end;
    7 /
    Package created.
    ops$tkyte@8i>
    ops$tkyte@8i> create or replace package body my_pkg
    2 as
    3
    4 g_data myTableType;
    5
    6 procedure Make_up_the_data( p_rows_to_make_up in number )
    7 as
    8 begin
    9 g_data := myTableType();
    10 for i in 1 .. p_rows_to_make_up
    11 loop
    12 g_data.extend;
    13 g_data(i) := 'Made up row ' &#0124; &#0124; i;
    14 end loop;
    15 end;
    16
    17
    18 function get_the_data return myTableType
    19 is
    20 begin
    21 return g_data;
    22 end;
    23
    24 end;
    25 /
    Package body created.
    ops$tkyte@8i>
    ops$tkyte@8i> exec my_pkg.make_up_the_data( 3 );
    PL/SQL procedure successfully completed.
    ops$tkyte@8i>
    ops$tkyte@8i> select *
    2 from the ( select cast( my_pkg.get_the_data as mytableType
    ) 3 from dual );
    COLUMN_VALUE
    Made up row 1
    Made up row 2
    Made up row 3
    And you'll call the procedure followed by a query to get the
    data...
    I have tried this, and it works perfectly.
    My question, is what does the wrapper look
    like if the stored function is written
    in java instead of PL/SQL? My experiments
    with putting the function in java have been
    dismal failures. (I supposed I should also
    ask how the java stored procedure might
    look also, as I suppose that could be where
    I have been having a problem)
    null

    Thanks for the response Avi, but I think I need to clarify my question. The articles referenced in your link tended to describe using PL/SQL ref cursors in Java stored procedures and also the desire to pass ref cursors from Java to PL/SQL programs. Unfortunately, what I am looking to do is the opposite.
    We currently have several Java stored procedures that are accessed via select statements that have become a performance bottleneck in our system. Originally the business requirements were such that only a small number of rows were ever selected and passed into the Java stored procedures. Well, business requirements have changed and now thousands and potentially tens of thousands of rows can be passed in. We benchmarked Java stored procedures vs. PL/SQL stored procedures being accessed via a select statement and PL/SQL had far better performance and scaleable. So, our thought is by decouple the persistence logic into PL/SQL and keeping the business logic in Java stored procedures we can increase performance without having to do a major rewrite of the existing code. This leads to the current problem.
    What we currently do is select into a Java stored procedure which has many database access calls. What we would like to do is select against a PL/SQL stored procedure to aggregate the data and then pass that data via a ref cursor (or whatever structure is acceptable) to a Java stored procedure. This would save us a significant amount of work since the current Java stored procedures would simple need to be changed to not make database calls since the data would be handed to them.
    Is there a way to send a ref cursor from PL/SQL as an input parameter to a Java stored procedure? My call would potentially look like this:
    SELECT java_stored_proc(pl/sql_stored_proc(col_id))
    FROM table_of_5000_rows;
    Sorry for the lengthy post.

  • Type_ - Type problem in stored procedures

    From a previous thread:
    Helo Turloch,
    I wasn't precise: column names only translated to type from type_ in the Scratch Editor.
    But if I have a stored procedure, which references to that column (in a SELECT statement, for example) then type_ will be type in the sp only.
    Check out these screenshots:
    http://jutas.eet.bme.hu/~wirving/omwb/
    I used the same windows environment for SQL Developer (WinXP, SQL Server 2000, SQL Developer 1.5.1) but with an Oracle 10g Database under Linux (BIC2g VMware image)
    I hope this help to reproduce the problem.
    ======
    I've just tried this on MS Vista 32-bit, with 1.5.1 SQL Developer + Oracle XE, with this T-SQL schema: T-SQL source code: http://jutas.eet.bme.hu/~wirving/omwb/type_bug_tsql.sql
    After converting the captured model, the column "Type_" is "Type_" in the table, but the reference in sp_foo is "Type": SELECT Type FROM foo
    wirving

    Turloch already logged a bug for your issue:
    bug: 7334662 FORUMS:TRANSLATION SCRATCH EDITOR TYPE_ -> TYPE
    I've updated the bug with the new thread ID and I've also posted your sample code into the bug after I've reproduced the issue inhouse.
    Message was edited by:
    kgronau

  • MySql WorkBench crashes when saving, creating new stored procedure.

    Process:         MySQLWorkbench [5284]
    Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
    Identifier:      com.oracle.mysql.workbench
    Version:         6.2.3 (1)
    Code Type:       X86 (Native)
    Parent Process:  launchd [270]
    Responsible:     MySQLWorkbench [5284]
    User ID:         501
    Date/Time:       2014-10-08 19:38:53.715 +0530
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  5E7DB8A9-29C7-B596-C2A8-0C0A1784765D
    Sleep/Wake UUID: F9E2CCB6-389C-448C-B322-1ECED6B8EEA5
    Crashed Thread:  19  Dispatch queue: com.apple.root.default-priority
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000fefff000
    VM Regions Near 0xfefff000:
        CG shared images       00000000c871f000-00000000c8727000 [   32K] r--/r-- SM=SHM 
    --> VM_ALLOCATE            00000000fefff000-00000000ff000000 [    4K] rw-/rwx SM=COW 
        Submap                 00000000ffff0000-00000000ffff1000 [    4K] r--/r-- SM=PRV  process-only VM submap
    Application Specific Information:
    Performing @selector(perform:) from sender MFToolBarActionItemImpl 0x7e72dcb0
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed8a _pthread_cond_wait + 837
    2   libsystem_pthread.dylib       0x956ef042 pthread_cond_timedwait_relative_np + 47
    3   com.apple.FinderKit           0x9a9329ed TConditionVariable::WaitWithTimeout(TMutex&, unsigned long long, bool&) + 107
    4   com.apple.FinderKit           0x9a92e105 TIconFetcher::Fetch() + 211
    5   com.apple.FinderKit           0x9a92df2a UIconFetcher::Prefetch(TFENodeVector const&, TFENode const&, unsigned long, unsigned long, bool) + 117
    6   com.apple.FinderKit           0x9a92deb0 UIconFetcher::PrefetchIcons(TFENodeVector const&, unsigned long) + 56
    7   com.apple.FinderKit           0x9aa4459f -[FILocationPopUp setTargetNode:] + 161
    8   com.apple.FinderKit           0x9aa10b30 -[FIFinderViewGutsController setTargetNode:withViewStyle:] + 710
    9   com.apple.FinderKit           0x9aa106d8 -[FIFinderViewGutsController setTargetNode:] + 64
    10  com.apple.FinderKit           0x9aa11d3d -[FIFinderViewGutsController deferredRetargetAndReloadForNode:] + 188
    11  com.apple.FinderKit           0x9aa12247 -[FIFinderViewGutsController urlResolutionCompleted:] + 212
    12  com.apple.Foundation           0x95b5e9f2 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 49
    13  com.apple.CoreFoundation       0x9729b5a4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
    14  com.apple.CoreFoundation       0x9717d04b _CFXNotificationPost + 3435
    15  com.apple.Foundation           0x95b4d4df -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
    16  com.apple.Foundation           0x95b6aa9e -[NSNotificationCenter postNotificationName:object:] + 55
    17  com.apple.FinderKit           0x9aa0cdb2 -[FI_FinderURLResolver resolutionCompleted:] + 193
    18  libobjc.A.dylib               0x998cb2af -[NSObject performSelector:withObject:] + 70
    19  com.apple.Foundation           0x95bb3772 __NSThreadPerformPerform + 318
    20  com.apple.CoreFoundation       0x971f2b5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    21  com.apple.CoreFoundation       0x971e395b __CFRunLoopDoSources0 + 235
    22  com.apple.CoreFoundation       0x971e305e __CFRunLoopRun + 1022
    23  com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    24  com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    25  com.apple.HIToolbox           0x9397ab5d RunCurrentEventLoopInMode + 259
    26  com.apple.HIToolbox           0x9397a777 ReceiveNextEventCommon + 163
    27  com.apple.HIToolbox           0x9397a6bd _BlockUntilNextEventMatchingListInModeWithFilter + 92
    28  com.apple.AppKit               0x981d9349 _DPSNextEvent + 1602
    29  com.apple.AppKit               0x981d8870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
    30  com.apple.AppKit               0x98556edc -[NSApplication _realDoModalLoop:peek:] + 828
    31  com.apple.AppKit               0x98556b8d -[NSApplication _doModalLoop:peek:] + 209
    32  com.apple.AppKit               0x98555556 -[NSApplication runModalForWindow:] + 235
    33  com.apple.AppKit               0x98888db7 -[NSSavePanel runModal] + 403
    34  libmforms.dylib               0x01d52b49 filechooser_run_modal(mforms::FileChooser*) + 148
    35  libmforms.dylib               0x01d21e7d mforms::FileChooser::run_modal() + 27
    36  libwbpublic.be.dylib           0x007bac76 save_file(MySQLEditor*) + 56
    37  libwbpublic.be.dylib           0x007c6163 boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, void (*)(MySQLEditor*), boost::_bi::list1<boost::_bi::value<MySQLEditor*> > >, void, mforms::ToolBarItem*>::invoke(boost::detail::function::function_buffer&, mforms::ToolBarItem*) + 17
    38  libmforms.dylib               0x01d942e0 boost::function1<void, mforms::ToolBarItem*>::operator()(mforms::ToolBarItem*) const + 36
    39  libmforms.dylib               0x01d9428d boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker::m_invoke(boost::shared_ptr<boost::signal s2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > const&, boost::signals2::detail::void_type const*) const + 43
    40  libmforms.dylib               0x01d941a5 boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal1_ impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >::dereference() const + 57
    41  libmforms.dylib               0x01d9412a void boost::signals2::optional_last_value<void>::operator()<boost::signals2::detail: :slot_call_iterator_t<boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >(boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal 1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >, boost::signals2::detail::slot_call_iterator_t<boost::signals2::detail::signal1_ impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::slot_invoker, std::_List_iterator<boost::shared_ptr<boost::signals2::detail::connection_body< std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> > >, boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slo t_meta_group, boost::optional<int> >, boost::signals2::slot1<void, mforms::ToolBarItem*, boost::function<void (mforms::ToolBarItem*)> >, boost::signals2::mutex> >) const + 30
    42  libmforms.dylib               0x01d928d8 boost::signals2::detail::signal1_impl<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::operator()(mforms::ToolBarItem*) + 386
    43  libmforms.dylib               0x01d9242b boost::signals2::signal1<void, mforms::ToolBarItem*, boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (mforms::ToolBarItem*)>, boost::function<void (boost::signals2::connection const&, mforms::ToolBarItem*)>, boost::signals2::mutex>::operator()(mforms::ToolBarItem*) + 37
    44  libmforms.dylib               0x01d9203c mforms::ToolBarItem::callback() + 42
    45  libmforms.dylib               0x01d95499 -[MFToolBarActionItemImpl perform:] + 28
    46  libobjc.A.dylib               0x998cb2af -[NSObject performSelector:withObject:] + 70
    47  com.apple.AppKit               0x984058a5 -[NSApplication sendAction:to:from:] + 438
    48  com.apple.AppKit               0x984056ad -[NSControl sendAction:to:] + 102
    49  com.apple.AppKit               0x98454c7b -[NSCell _sendActionFrom:] + 159
    50  com.apple.AppKit               0x9846ff2a -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2465
    51  com.apple.AppKit               0x9846f161 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 513
    52  com.apple.AppKit               0x9846e785 -[NSControl mouseDown:] + 690
    53  com.apple.AppKit               0x983eaa9d -[NSWindow sendEvent:] + 11953
    54  com.apple.AppKit               0x9838691d -[NSApplication sendEvent:] + 4034
    55  com.apple.AppKit               0x981cb1bc -[NSApplication run] + 823
    56  com.apple.AppKit               0x981b3ff8 NSApplicationMain + 1165
    57  com.oracle.mysql.workbench     0x00077475 start + 53
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib         0x97b20992 kevent64 + 10
    1   libdispatch.dylib             0x9189f899 _dispatch_mgr_invoke + 238
    2   libdispatch.dylib             0x9189f532 _dispatch_mgr_thread + 52
    Thread 2:: Dispatch queue: com.apple.root.default-priority
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.Foundation           0x95bb95b9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
    7   com.apple.AppKit               0x9849da10 -[NSAnimation(NSInternal) _runBlocking] + 463
    8   com.apple.AppKit               0x9849d827 -[NSAnimation(NSInternal) _animationThread] + 79
    9   com.apple.AppKit               0x9849d7bc __42-[NSAnimation(NSInternal) _runInNewThread]_block_invoke + 36
    10  libdispatch.dylib             0x918a076b _dispatch_call_block_and_release + 15
    11  libdispatch.dylib             0x9189d386 _dispatch_client_callout + 50
    12  libdispatch.dylib             0x9189f443 _dispatch_root_queue_drain + 257
    13  libdispatch.dylib             0x918a070e _dispatch_worker_thread2 + 39
    14  libsystem_pthread.dylib       0x956eddab _pthread_wqthread + 336
    15  libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 3:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 4:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 5:
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.AppKit               0x98382b88 _NSEventThread + 283
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 6:: timer
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libglib-2.0.0.dylib           0x001846a7 g_usleep + 75
    3   libwbpublic.be.dylib           0x007d18fb bec::TimerActionThread::main_loop() + 77
    4   libwbpublic.be.dylib           0x007d1803 bec::TimerActionThread::start(void*) + 75
    5   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 7:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 8:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.CoreFoundation       0x971e3bf9 __CFRunLoopServiceMachPort + 169
    3   com.apple.CoreFoundation       0x971e31d1 __CFRunLoopRun + 1393
    4   com.apple.CoreFoundation       0x971e29ea CFRunLoopRunSpecific + 394
    5   com.apple.CoreFoundation       0x971e284b CFRunLoopRunInMode + 123
    6   com.apple.Foundation           0x95bb7355 +[NSURLConnection(Loader) _resourceLoadLoop:] + 381
    7   com.apple.Foundation           0x95bb71ce -[NSThread main] + 45
    8   com.apple.Foundation           0x95bb7126 __NSThread__main__ + 1426
    9   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    10  libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    11  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 9:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x95247ae4 JSC::BlockAllocator::blockFreeingThreadMain() + 276
    4   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    5   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 10:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 11:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 12:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0bd9 pthread_cond_wait$UNIX2003 + 71
    3   com.apple.JavaScriptCore       0x952484eb JSC::GCThread::waitForNextPhase() + 123
    4   com.apple.JavaScriptCore       0x95248378 JSC::GCThread::gcThreadMain() + 88
    5   com.apple.JavaScriptCore       0x9523ee1c ***::threadEntryPoint(void*) + 76
    6   com.apple.JavaScriptCore       0x9523edb0 ***::wtfThreadEntryPoint(void*) + 16
    7   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    8   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    9   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 13:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 14:
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libglib-2.0.0.dylib           0x001846a7 g_usleep + 75
    3   libwbbase.dylib               0x003f365b ThreadedTimer::main_loop() + 55
    4   libwbbase.dylib               0x003f3427 ThreadedTimer::start(void*) + 17
    5   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 15:: CVDisplayLink
    0   libsystem_kernel.dylib         0x97b1af7a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x97b1a16c mach_msg + 68
    2   com.apple.framework.IOKit     0x9112070c io_connect_method + 424
    3   com.apple.framework.IOKit     0x910ba44f IOConnectCallMethod + 546
    4   com.apple.framework.IOKit     0x910ba70b IOConnectCallStructMethod + 84
    5   com.apple.IOAccelerator       0x99a5b640 IOAccelContextSubmitDataBuffers + 232
    6   libGPUSupportMercury.dylib     0x997e139b gpusSubmitDataBuffers + 133
    7   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40349005 IntelCommandBuffer::getNew(GLDContextRec*) + 43
    8   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40345386 GenContext::prepareCommandBuffer() + 32
    9   com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x40348e69 intelSubmitCommands + 216
    10  com.apple.driver.AppleIntelHD5000GraphicsGLDriver 0x4034a241 gldPresentFramebufferData + 152
    11  GLEngine                       0x9b720590 glSwap_Exec + 96
    12  com.apple.opengl               0x97d843fb CGLFlushDrawable + 67
    13  com.apple.QuartzCore           0x91162ae4 view_draw(_CAView*, double, CVTimeStamp const*, bool) + 4610
    14  com.apple.QuartzCore           0x911618b8 view_display_link(double, CVTimeStamp const*, void*) + 148
    15  com.apple.QuartzCore           0x9116174b link_callback + 278
    16  com.apple.CoreVideo           0x960d0506 CVDisplayLink::performIO(CVTimeStamp*) + 288
    17  com.apple.CoreVideo           0x960cf4ff CVDisplayLink::runIOThread() + 871
    18  com.apple.CoreVideo           0x960cf180 startIOThread(void*) + 159
    19  libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    20  libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    21  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 16:: GRTDispatcher
    0   libsystem_kernel.dylib         0x97b1f7ca __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x956eed1d _pthread_cond_wait + 728
    2   libsystem_pthread.dylib       0x956f0c25 pthread_cond_timedwait$UNIX2003 + 71
    3   libglib-2.0.0.dylib           0x0019c1f3 g_cond_wait_until + 133
    4   libglib-2.0.0.dylib           0x00137e66 g_async_queue_unlock + 206
    5   libglib-2.0.0.dylib           0x00138048 g_async_queue_timed_pop + 186
    6   libwbpublic.be.dylib           0x007d9532 bec::GRTDispatcher::worker_thread(void*) + 378
    7   libglib-2.0.0.dylib           0x001834f5 g_thread_proxy + 161
    8   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    9   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    10  libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 17:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 18:
    0   libsystem_kernel.dylib         0x97b20046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x956eddcf _pthread_wqthread + 372
    2   libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 19 Crashed:: Dispatch queue: com.apple.root.default-priority
    0   ???                           0xfefff000 0 + 4278185984
    1   com.apple.desktopservices     0x9813e2cc CopyIconRefForSizes(__CFURL const*, unsigned long, OpaqueIconRef*&) + 41
    2   com.apple.desktopservices     0x98136eb7 TFSInfo::CopyIconRef(unsigned long, OpaqueIconRef*&, bool&) const + 583
    3   com.apple.desktopservices     0x981347ba TFSInfo::GetIconRef(TPropertyReference&, TCountedPtr<TFSVolumeInfo> const&, unsigned long, bool&) const + 40
    4   com.apple.desktopservices     0x981356e3 TFSInfo::GetProperty(unsigned long, TPropertyReference&, TCountedPtr<TFSVolumeInfo> const&, unsigned long, bool&) const + 97
    5   com.apple.desktopservices     0x980bbbfe TNode::GetProperty(unsigned long, TPropertyReference&, unsigned long) const + 1266
    6   com.apple.desktopservices     0x980cbe5a TNode::GetProperty(unsigned long, TPropertyReference&, OpaqueNodeRequest* const&, unsigned long) const + 72
    7   com.apple.desktopservices     0x980fa3fd GetNodeProperty(OpaqueNodeRef*, unsigned long, TPropertyReference&, OpaqueNodeRequest*, unsigned long) + 192
    8   com.apple.desktopservices     0x980a8777 NodeGetPropertyAsIconRef + 74
    9   com.apple.FinderKit           0x9a8b7195 TFENode::Icon(unsigned long, unsigned long, short*, bool) const + 337
    10  com.apple.FinderKit           0x9a8b703d TFENode::Icon(unsigned long) const + 55
    11  com.apple.FinderKit           0x9a92dd12 TIconFetcher::FetchIcons(TFENodeVector const&) const + 56
    12  com.apple.FinderKit           0x9a92e5e7 TIconFetcher::Main() + 553
    13  com.apple.FinderKit           0x9a92dfdd ___ZN12TIconFetcher5FetchEv_block_invoke + 100
    14  libdispatch.dylib             0x918a076b _dispatch_call_block_and_release + 15
    15  libdispatch.dylib             0x9189d386 _dispatch_client_callout + 50
    16  libdispatch.dylib             0x9189f443 _dispatch_root_queue_drain + 257
    17  libdispatch.dylib             0x918a070e _dispatch_worker_thread2 + 39
    18  libsystem_pthread.dylib       0x956eddab _pthread_wqthread + 336
    19  libsystem_pthread.dylib       0x956f1cce start_wqthread + 30
    Thread 20:: com.apple.appkit-heartbeat
    0   libsystem_kernel.dylib         0x97b1fb76 __semwait_signal + 10
    1   libsystem_c.dylib             0x96e1bfb7 nanosleep$UNIX2003 + 219
    2   libsystem_c.dylib             0x96e1be62 usleep$UNIX2003 + 60
    3   com.apple.AppKit               0x9844da4c -[NSUIHeartBeat _heartBeatThread:] + 2318
    4   com.apple.Foundation           0x95bb71ce -[NSThread main] + 45
    5   com.apple.Foundation           0x95bb7126 __NSThread__main__ + 1426
    6   libsystem_pthread.dylib       0x956ec5fb _pthread_body + 144
    7   libsystem_pthread.dylib       0x956ec485 _pthread_start + 130
    8   libsystem_pthread.dylib       0x956f1cf2 thread_start + 34
    Thread 19 crashed with X86 Thread State (32-bit):
      eax: 0x00000009  ebx: 0x959f35eb  ecx: 0xb0b3c762  edx: 0x00000001
      edi: 0xb0b3c960  esi: 0xb0b3c9f0  ebp: 0xb0b3ca58  esp: 0xb0b3c72c
       ss: 0x00000023  efl: 0x00010202  eip: 0xfefff000   cs: 0x0000001b
       ds: 0x00000023   es: 0x00000023   fs: 0x00000023   gs: 0x0000000f
      cr2: 0xfefff000
    Logical CPU:     2
    Error Code:      0x00000015
    Trap Number:     14
    Binary Images:
       0x6f000 -    0xdbfff +com.oracle.mysql.workbench (6.2.3 - 1) <2765CC4C-A45B-3C20-BC45-5DB2C54F68B7> /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
      0x133000 -   0x21bfeb +libglib-2.0.0.dylib (3303) <3116D359-3426-3F61-B2F9-450417634FCA> /Applications/MySQLWorkbench.app/Contents/Frameworks/libglib-2.0.0.dylib
      0x239000 -   0x239ffd +libgthread-2.0.0.dylib (3303) <5961B07A-C925-3F03-99C6-59A8DC561956> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgthread-2.0.0.dylib
      0x23e000 -   0x359ff7 +com.sun.Scintilla (1.0) <9A74C350-1FF4-3373-8BCC-88371B35C726> /Applications/MySQLWorkbench.app/Contents/Frameworks/Scintilla.framework/Versio ns/A/Scintilla
      0x3ef000 -   0x41dff3 +libwbbase.dylib (1) <F6F012C6-6119-3ADA-9F8B-13E57323C94D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbbase.dylib
      0x449000 -   0x4f4ff3 +libgrt.dylib (1) <42E72546-021C-3102-BDDF-006BE243F078> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgrt.dylib
      0x5a9000 -   0x610ff3 +libmysql.canvas.dylib (1) <4483BAEB-1E41-30DE-BBC0-D501586C2E07> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysql.canvas.dylib
      0x6ce000 -   0x6e2ffb +libcdbc.dylib (1) <68B0F24C-E9DC-3C40-B92A-16C1A6C6C5B5> /Applications/MySQLWorkbench.app/Contents/Frameworks/libcdbc.dylib
      0x702000 -   0xa87fff +libwbpublic.be.dylib (1) <AA30B579-7D0F-3D17-A170-3D3DFF5F139F> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbpublic.be.dylib
      0xf06000 -  0x1601ff7 +libwbprivate.be.dylib (1) <09D6F65B-C54C-398C-BDC1-95B878309F38> /Applications/MySQLWorkbench.app/Contents/Frameworks/libwbprivate.be.dylib
    0x1d1f000 -  0x1e40ffb +libmforms.dylib (1) <F8609BB3-C342-3AF3-92FB-24607561BF1C> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmforms.dylib
    0x1fe2000 -  0x2049fff +com.oracle.mysql.workbench.WBExtras (1.0) <22F306B8-39FF-334A-BCD6-FAE77FE998C0> /Applications/MySQLWorkbench.app/Contents/Frameworks/WBExtras.framework/Version s/A/WBExtras
    0x20cf000 -  0x21b6ffe  org.python.python (2.7.5 - 2.7.5) <CEEA0C30-0A80-3055-8380-2702560D0190> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
    0x2207000 -  0x2208fff +libgmodule-2.0.0.dylib (3303) <CD572830-C546-37BB-8A34-3752649E6B7D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgmodule-2.0.0.dylib
    0x220f000 -  0x47a8ff7 +mysql.parser.dylib (1) <97B0B1F3-6940-38CD-93F9-A638A91FFF33> /Applications/MySQLWorkbench.app/Contents/Frameworks/mysql.parser.dylib
    0x4a3c000 -  0x4a40ffb +libpcrecpp.0.dylib (1) <6C12DAD8-71D1-31D6-97DC-525C9D143DC4> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpcrecpp.0.dylib
    0x4a49000 -  0x4a5cff3 +libtinyxml.dylib (1) <CE2171E4-9CB1-3E73-92A5-7E8224032A8A> /Applications/MySQLWorkbench.app/Contents/Frameworks/libtinyxml.dylib
    0x4a70000 -  0x4a8fff4 +libpcre.1.dylib (2) <49CF4D85-C23F-3565-8D99-79595FC90E8D> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpcre.1.dylib
    0x4a96000 -  0x4b54ff3 +libcairo.2.dylib (0) <5E5AFB69-5C20-37CF-A5E9-756FA63D1877> /Applications/MySQLWorkbench.app/Contents/Frameworks/libcairo.2.dylib
    0x4b81000 -  0x4cd0fe9 +libpixman-1.0.dylib (0) <1690B90B-76DD-397A-A9B2-54E09FE01BD3> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpixman-1.0.dylib
    0x4ce5000 -  0x4d10ffa +libpng12.0.dylib (0) <A828AF30-BA47-3195-91C4-0112FA35F876> /Applications/MySQLWorkbench.app/Contents/Frameworks/libpng12.0.dylib
    0x4d1a000 -  0x4d85ff7 +libmysqlcppconn.7.1.1.4.dylib (0) <3D2E513F-5386-3DBA-AED6-BC30BA9CC651> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysqlcppconn.7.1.1.4.dy lib
    0x4df3000 -  0x507effb +libmysqlclient.18.dylib (18) <4EE3497B-8C86-3E28-A47F-7F542EB91CFF> /Applications/MySQLWorkbench.app/Contents/Frameworks/libmysqlclient.18.dylib
    0x51c9000 -  0x5239ffb +libctemplate.0.dylib (2.2) <1430E75E-3032-791A-5948-49FFDB23B7DE> /Applications/MySQLWorkbench.app/Contents/Frameworks/libctemplate.0.dylib
    0x52e1000 -  0x52f6ffb +libvsqlitepp.0.dylib (0) <38E99F2E-B7D7-3CA9-A02F-0CC177132A32> /Applications/MySQLWorkbench.app/Contents/Frameworks/libvsqlitepp.0.dylib
    0x531a000 -  0x6046fff +libgdal.1.dylib (0) <4ABF3042-228F-3407-BC04-302D065A8706> /Applications/MySQLWorkbench.app/Contents/Frameworks/libgdal.1.dylib
    0x62da000 -  0x6333ff0 +libproj.0.dylib (0) <4D7F86B1-2644-33B7-A11E-47A80E38FD51> /Applications/MySQLWorkbench.app/Contents/Frameworks/libproj.0.dylib
    0x6344000 -  0x634fffc +libzip.1.0.0.dylib (0) <39E8E56B-861B-3D97-9E5B-2CBB1FDAEFBD> /Applications/MySQLWorkbench.app/Contents/Frameworks/libzip.1.0.0.dylib
    0x7c1b000 -  0x7c21ffb +db.grt.dylib (1) <12EEBDC8-B442-3CB5-BDD5-959D2980B509> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.grt.dylib
    0x7c2c000 -  0x7cb7ff3 +db.mysql.grt.dylib (1) <4B4D2041-D404-323A-BA65-1780ACFF307F> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.grt.dylib
    0x7d01000 -  0x7d04ffb  strop.so (76.100.1) <29C19707-E781-3E34-8884-83B69CDA5A83> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/strop.so
    0x7d09000 -  0x7d0cffe  operator.so (76.100.1) <2A24B38F-D09C-3C15-B14E-A3923F8033D7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/operator.so
    0x7d11000 -  0x7d11ffc  _functools.so (76.100.1) <8B6B250E-E34B-3860-A08F-0C790A5019B4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_functools.so
    0x7d15000 -  0x7d16fff  _locale.so (76.100.1) <52B51C26-D880-3321-9B8A-7F0E922D21BF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_locale.so
    0x7d1a000 -  0x7d1cfff  _collections.so (76.100.1) <22BAA559-DAE3-3104-8D20-BC0044F39116> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_collections.so
    0x7d21000 -  0x7d21fff +_ARC4.so (0) <91687EDB-4272-3F90-8971-B86AD03C5F43> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_AR C4.so
    0x8fe5000 -  0x900effb +db.mysql.parser.grt.dylib (1) <591EA3E7-D40F-3B40-971C-46913EB75274> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.parser.grt.dylib
    0x9033000 -  0x904fffb +db.mysql.query.grt.dylib (1) <561161D6-F083-3030-A66E-8A9B8112CCEB> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.query.grt.dylib
    0x906e000 -  0x912fff3 +db.mysql.sqlparser.grt.dylib (1) <0D38B2C7-AD33-3863-A7F3-96DB43C86187> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.sqlparser.grt.dylib
    0x91eb000 -  0x933cff7 +libsql.parser.dylib (1) <19ABFB99-85AB-3B7C-8356-91479DD64220> /Applications/MySQLWorkbench.app/Contents/Frameworks/libsql.parser.dylib
    0x93cc000 -  0x9418fff +wb.model.grt.dylib (1) <D8EF8A1E-17AB-3955-9DFB-A32839DAEBFF> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.grt.dylib
    0x944d000 -  0x9493ff3 +wb.mysql.import.grt.dylib (1) <1BD8E598-C538-3988-A5EA-B4F88C75B8CB> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.mysql.import.grt.dylib
    0x955f000 -  0x967cff7 +_mforms.so (1) <A684ABC4-3F08-3EAE-A3B3-2DA97139F893> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/_mforms.so
    0x9847000 -  0x984bffd  itertools.so (76.100.1) <BB875822-F784-3D55-B27F-16FEF82F8B2F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/itertools.so
    0x9852000 -  0x9853fff  _heapq.so (76.100.1) <EB82769D-06EE-3191-B3D9-2768E7730649> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_heapq.so
    0x9858000 -  0x9859ffb  time.so (76.100.1) <F45A4F21-964E-3CE2-9FB8-CBF3339C9B88> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/time.so
    0x989f000 -  0x98a1ffe  select.so (76.100.1) <61F400FB-79A1-3E03-B4C2-3A064885200C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/select.so
    0x98a6000 -  0x98a7ffc  fcntl.so (76.100.1) <339A6F31-4760-31D8-ACF4-F77CC1C4D977> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/fcntl.so
    0x98ab000 -  0x98aefff  _struct.so (76.100.1) <F88E14EB-8604-3D26-A6DF-FEA85A80952E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_struct.so
    0x98b4000 -  0x98b6fff  binascii.so (76.100.1) <842C430F-9BB0-3610-9545-3F94CE0C08D0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/binascii.so
    0x98ba000 -  0x98bbffd  cStringIO.so (76.100.1) <A9144569-57E5-3CCC-9036-1090842E85B0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cStringIO.so
    0x98bf000 -  0x98c1fff  _multiprocessing.so (76.100.1) <34718BD6-72E4-37EA-9398-3B427AD25178> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_multiprocessing.so
    0x98c6000 -  0x98d0fff  cPickle.so (76.100.1) <AFA21217-0A1F-351C-970B-5F6C4A637CE1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cPickle.so
    0x9916000 -  0x9925fff  _io.so (76.100.1) <CF1D9070-1B67-36FC-986D-81CDC2505859> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_io.so
    0x9933000 -  0x9936ff0  math.so (76.100.1) <1D3A53CC-C7E6-3128-AE6E-9393621D94F5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/math.so
    0x993b000 -  0x993cffe  _hashlib.so (76.100.1) <43C57D47-95AE-3B32-9DBB-464C6A85B56F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_hashlib.so
    0x9940000 -  0x9941ff9  _random.so (76.100.1) <E3DE4628-CB89-3411-86E6-5DF5B5361E8C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_random.so
    0x99c5000 -  0x99ceffc  datetime.so (76.100.1) <9CDA0E9D-F57C-3A42-94B0-509A67DE45FA> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/datetime.so
    0x99d6000 -  0x99defff  _sqlite3.so (76.100.1) <40F725D1-B1A2-3579-A038-1E5DA513AF27> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_sqlite3.so
    0x9b27000 -  0x9b2fff3  _socket.so (76.100.1) <A70A4F8F-8B9B-3A63-8FFB-E104C41D922A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_socket.so
    0x9b38000 -  0x9b3bfff  _ssl.so (76.100.1) <04E37108-2126-3F63-B99C-EC1CCCCC13E8> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ssl.so
    0x9b41000 -  0x9b45ffd  array.so (76.100.1) <26E74A26-B929-3955-B3F3-032FD0FAD61F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/array.so
    0x9b4b000 -  0x9b4cff5 +_counter.so (0) <2458BD3E-9C06-31C3-8A6D-07AF59DA6268> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Util/_coun ter.so
    0x9b4f000 -  0x9b54ff7 +_AES.so (0) <53E5A54B-063D-33EF-AB5F-368ADA8AE461> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_AE S.so
    0x9b97000 -  0x9b99fff  zlib.so (76.100.1) <90A50AF6-F710-3198-AA52-0489763DFCD5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/zlib.so
    0x9b9d000 -  0x9ba8ff7 +_DES3.so (0) <280806C9-1C5C-3EB0-9F60-7145C86C1D85> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_DE S3.so
    0x9beb000 -  0x9beeff7 +_Blowfish.so (0) <0877DDE3-C900-3F3E-AF0F-7E61B472BFB5> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Cipher/_Bl owfish.so
    0x9bf1000 -  0x9bf2ffd  termios.so (76.100.1) <59D05CA7-0E80-315D-91BC-160FF272B30D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/termios.so
    0x9bf6000 -  0x9bf6ff6 +strxor.so (0) <1C060F90-8403-3995-9F0F-EE9004E224C0> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/Crypto/Util/strxo r.so
    0x9bf9000 -  0x9c07ffb  _ctypes.so (76.100.1) <DC8228AC-4DEE-38A8-93EA-7356270066B9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ctypes.so
    0x9c51000 -  0x9c51ffe  grp.so (76.100.1) <5D60CEC5-6B82-3527-84FF-5DDB975941BC> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/grp.so
    0x9d3c000 -  0x9d40ff7  _json.so (76.100.1) <9BF5E50D-9145-394E-829F-48523B217B94> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_json.so
    0x9e05000 -  0x9e2cfff +_cairo.so (1) <95731EDE-144C-3728-9BD7-1880ABAD0743> /Applications/MySQLWorkbench.app/Contents/Resources/libraries/_cairo.so
    0x9fc8000 -  0xa001ffb +db.mysql.diff.reporting.wbp.dylib (1) <F23BA88D-A154-3E38-B1C2-3878960FF663> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.diff.reporting.wbp.d ylib
    0xa055000 -  0xa16bffb +db.mysql.wbp.dylib (1) <E00D73CC-81C7-3F10-A831-62FFA3ECAC07> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.wbp.dylib
    0xa28f000 -  0xa306fff +db.mysql.editors.wbp.dylib (1) <24BFC837-7B92-3BC3-8B78-756FFD9F6F59> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.editors.mwbplugin/Co ntents/Frameworks/db.mysql.editors.wbp.dylib
    0xa3b3000 -  0xa3f2ffb +db.search.wbp.dylib (1) <D7F1BC58-4C7E-3D94-8F67-833154C065AB> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.search.wbp.dylib
    0xa44d000 -  0xa471fff +wb.model.editors.wbp.dylib (1) <3029A06C-1E8C-30CE-855C-68D223A5E923> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.editors.mwbplugin/Co ntents/Frameworks/wb.model.editors.wbp.dylib
    0xa4b3000 -  0xa4d1fff +wb.model.snippets.wbp.dylib (1) <17040CCF-C18E-3869-B500-243E8ED64F87> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.snippets.wbp.dylib
    0xa4ef000 -  0xa505ff7 +wb.printing.wbp.dylib (1) <443EF14A-0531-3B2B-9D9D-EB20053951D3> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.printing.mwbplugin/Content s/Frameworks/wb.printing.wbp.dylib
    0xa5dd000 -  0xa5deff5 +cl_kernels (???) <5FDD1970-A21F-4DFF-AB2A-E861AA7B3637> cl_kernels
    0xa5ec000 -  0xa5edfff +cl_kernels (???) <58D2DE5A-F568-426B-86B2-5DC79BA8D2F8> cl_kernels
    0xada1000 -  0xae8cff7  unorm8_bgra.dylib (2.3.58) <73AEEEF2-DF38-33F9-994C-2BB7A76EB027> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_bgra.dylib
    0xaeb8000 -  0xaeeeff3 +com.oracle.mysql.workbench.dbmysqleditors (1.0) <7DE8A01C-A668-3B89-8ABB-26EF73803DA7> /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.editors.mwbplugin/Co ntents/MacOS/db.mysql.editors
    0xaf0b000 -  0xaf14ff3 +com.oracle.mysql.workbench.wbmodeleditors (1.0) <4B922804-45D2-3234-A555-9D252836F90E> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.model.editors.mwbplugin/Co ntents/MacOS/wb.model.editors
    0xaf20000 -  0xaf24ff3 +com.oracle.mysql.workbench.wbprinting (1.0) <9632227F-9AD8-35AA-A844-390F7B49AFA6> /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.printing.mwbplugin/Content s/MacOS/wb.printing
    0xc00a000 -  0xc02fff9  com.apple.framework.familycontrols (4.1 - 410) <A33A97EE-C735-38BA-9B49-5D78DAA3DEDA> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
    0xc044000 -  0xc04fffa  com.apple.CommerceCore (1.0 - 42) <E59717F2-6770-3DBC-8510-F7AA61E60F57> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
    0xd088000 -  0xd088ff3 +cl_kernels (???) <B4216B69-4B0C-4678-B269-CE74801D4AAE> cl_kernels
    0xd097000 -  0xd097ffb +cl_kernels (???) <1BD8B991-04DB-499D-9DA0-7002726A7D3E> cl_kernels
    0xd099000 -  0xd17fff7  unorm8_rgba.dylib (2.3.58) <54C13C5A-EF13-3CB8-A736-CDA39A907F3C> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/u norm8_rgba.dylib
    0xd934000 -  0xd934ffd +cl_kernels (???) <41032263-D9C5-438F-87A0-4B5B06D8FE76> cl_kernels
    0xd93a000 -  0xd93ffff +com.tee.NuFile (1.9 - 1.9) /Library/Contextual Menu Items/NuFile.plugin/Contents/MacOS/NuFile
    0xd945000 -  0xd949ff7 +org.tigris.scfinderplugin (169) <7EEC70AB-634F-D6C8-85BF-0AD1289630F3> /Library/Contextual Menu Items/SCFinderPlugin.plugin/Contents/MacOS/SCFinderPlugin
    0xd959000 -  0xd983fff  com.apple.datadetectors (5.0 - 246.0) <E78157B5-C380-3C09-8439-54F5E89209C9> /System/Library/PrivateFrameworks/DataDetectors.framework/Versions/A/DataDetect ors
    0xd9a0000 -  0xd9a1ff7 +cl_kernels (???) <E54B2CAD-3754-4898-8146-36775BDA1E8A> cl_kernels
    0xf754000 -  0xf943ffc  com.apple.WebKit2 (9537 - 9537.78.2) <7B6A5E63-15FA-3B8F-80EC-6A7703A55817> /System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2
    0x40000000 - 0x4045fff7  com.apple.driver.AppleIntelHD5000GraphicsGLDriver (8.28.32 - 8.2.8) <E98BAE1C-BA6D-36AE-B76C-9FDD40BA1236> /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/Mac OS/AppleIntelHD5000GraphicsGLDriver
    0x8fef7000 - 0x8ff29417  dyld (239.4) <0F2176BD-4239-3506-BA41-3B885269520E> /usr/lib/dyld
    0x90008000 - 0x90010ffe  libGFXShared.dylib (9.6.1) <632989B3-36C2-302E-8A85-A02125A9C5D6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
    0x90011000 - 0x90013ffb  libRadiance.dylib (1044) <6713977E-A33A-395A-9933-719F72DF1A98> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.d ylib
    0x90014000 - 0x9001ffff  com.apple.CrashReporterSupport (10.9 - 539) <10FE9B2D-404F-32B8-B3CA-CBA3524B4CFF> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
    0x90020000 - 0x90095ff1  com.apple.ApplicationServices.ATS (360 - 363.3) <FD423680-01A1-357A-89A7-33910A87DE65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90096000 - 0x900a1fff  libcsfde.dylib (380.70.2) <B3FC85EE-BBC2-3A20-9C45-C1ABDD063A63> /usr/lib/libcsfde.dylib
    0x900a2000 - 0x900a3ffa  libsystem_sandbox.dylib (278.11.1) <DA875837-A5C2-3004-8117-65F378E4BD03> /usr/lib/system/libsystem_sandbox.dylib
    0x900a4000 - 0x90310ff5  com.apple.AddressBook.framework (8.0 - 1371.2) <4B02A52C-E6F6-3083-89C4-1B99E27E81C6> /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x90311000 - 0x90745ff7  com.apple.vision.FaceCore (3.0.0 - 3.0.0) <5B12F3E9-84F6-3183-B85D-FD19EF800ADB> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x90746000 - 0x907a4ffd  com.apple.AE (665.5 - 665.5) <54F2F247-160C-3A22-A6E3-5D49655A67AB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x907a8000 - 0x907a9fff  libsystem_blocks.dylib (63) <2AC67D5E-ECD4-3644-A53C-9684F9B7AA33> /usr/lib/system/libsystem_blocks.dylib
    0x907aa000 - 0x907aeffe  libCoreVMClient.dylib (58.1) <0EB8FFD7-AFED-3A63-810E-29629831D43D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
    0x907af000 - 0x90818ffa  com.apple.datadetectorscore (5.0 - 354.5) <CB793FA7-B873-39A9-855F-D86AB0C35298> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDe tectorsCore
    0x90819000 - 0x90857ff7  com.apple.NavigationServices (3.8 - 215) <A093AAF0-248E-313E-BA82-01F69E269895> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x91019000 - 0x91031ff7  com.apple.CFOpenDirectory (10.9 - 173.90.1) <7F3A0094-3A24-302C-9B64-C32C65750EDE> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
    0x91034000 - 0x91041fff  com.apple.AppleFSCompression (56.92.1 - 1.0) <D2E7A2DF-9E5B-35E6-9CCD-0D40ADA7E021> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/Apple FSCompression
    0x91042000 - 0x91088ff7  libFontRegistry.dylib (127) <A0930DB2-A6C6-3C6E-B4A2-119E0D76FD7D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x91089000 - 0x910b4ff7  libsystem_network.dylib (241.3) <71EBA489-386D-3608-ADE6-CB50EBD1AB1B> /usr/lib/system/libsystem_network.dylib
    0x910b5000 - 0x9112cffb  com.apple.framework.IOKit (2.0.1 - 907.100.13) <D1308EE0-96AA-3442-A27B-264F58AE12B4> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x9112d000 - 0x912d9fff  com.apple.QuartzCore (1.8 - 332.3) <DA347693-5E26-3E47-A2B3-3824C52EB08B> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x912da000 - 0x91309ff7  com.apple.framework.SystemAdministration (1.0 - 1.0) <1BD6205B-7C66-3B7B-AC8C-11BE34F7CF6B> /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/Sys temAdministration
    0x9130a000 - 0x9130afff  com.apple.ApplicationServices (48 - 48) <7967F6FA-2984-3CC3-AD9A-7B9AEC562A2A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x9130b000 - 0x91409fff  libJP2.dylib (1044) <E8873182-8B75-34A5-A104-BED94B0C6BF6> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x9140a000 - 0x9140bfff  com.apple.marco (10.0 - 1000) <F7AD1FF7-5B1E-3D3C-AF00-FA3A43118CE5> /System/Library/PrivateFrameworks/Marco.framework/Versions/A/Marco
    0x9140c000 - 0x9168bff7  com.apple.imageKit (2.5 - 774) <53C3FA27-3830-3A15-9707-AF7369119866> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
    0x9168c000 - 0x916bdff4  com.apple.securityinterface (9.0 - 55047) <0D5ED2B8-C973-3C91-BA45-22501A043263> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x916be000 - 0x916e9ff5  com.apple.ChunkingLibrary (2.0 - 155.1) <50BBBBF8-F30B-39EA-A512-11A47F429F2C> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/Chunking Library
    0x916ea000 - 0x91727ff7  libauto.dylib (185.5) <CD008E66-4A0C-35F5-8D72-80D76A716A03> /usr/lib/libauto.dylib
    0x91728000 - 0x91759ffb  com.apple.GSS (4.0 - 2.0) <145B389F-AC1E-3817-835D-8EA263E96EA5> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x9175a000 - 0x9177fff7  com.apple.quartzfilters (1.8.0 - 1.7.0) <FCF52905-85B1-375C-B0AA-B8251B614D2D> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
    0x91780000 - 0x91793fff  com.apple.ImageCapture (9.0 - 9.0) <63D5C96F-1893-3F35-ADFB-EE451AFD87E6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x91794000 - 0x917e9ff3  com.apple.ImageCaptureCore (5.0 - 5.0) <69A007AE-4654-3C79-9AF6-5EC8F173F225> /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCo re
    0x917ea000 - 0x91874ff7  com.apple.CoreSymbolication (3.0.1 - 141.0.5) <A33D0598-8699-39AC-A1DD-37079F423269> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSy mbolication
    0x91875000 - 0x91876fff  libDiagnosticMessagesClient.dylib (100) <B936B1D4-90BB-395D-8EA9-E1237608E7D0> /usr/lib/libDiagnosticMessagesClient.dylib
    0x91877000 - 0x9187ffff  libsystem_dnssd.dylib (522.92.1) <7E36B79E-6BF4-3462-9A84-C0744D029636> /usr/lib/system/libsystem_dnssd.dylib
    0x91880000 - 0x9189bff5  com.apple.openscripting (1.4 - 157) <5C161A52-8D2F-3D56-A988-05727BED7A59> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9189c000 - 0x918b4ffd  libdispatch.dylib (339.92.1) <7E7A88BF-74B3-363B-B534-6F757DF2DDE3> /usr/lib/system/libdispatch.dylib
    0x918b5000 - 0x91baaffc  com.apple.CoreImage (9.4.0) <33696A53-9E18-32D6-844F-28098DB7E426> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage .framework/Versions/A/CoreImage
    0x91bab000 - 0x91c3cfff  com.apple.ColorSync (4.9.0 - 4.9.0) <8366AE10-0396-3100-B87A-A176E8ECE7B6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91c3d000 - 0x91c75ff7  com.apple.MediaKit (15 - 709) <82E0F8C0-313C-379C-9994-4D21587D0C0C> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
    0x91c76000 - 0x91d8dffb  com.apple.WebKit (9537 - 9537.78.2) <525C4DF6-81DE-3D49-900A-0CDA821F9B86> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x91d8e000 - 0x91d90fff  com.apple.SecCodeWrapper (3.0 - 1) <066E1E30-2EEA-3166-8F86-D1054B50875B> /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWr apper
    0x91d91000 - 0x91d99fff  liblaunch.dylib (842.92.1) <C180016C-F2DB-3D8B-A72D-5185CE67DFA2> /usr/lib/system/liblaunch.dylib
    0x91d9a000 - 0x91d9dff7  com.apple.help (1.3.3 - 46) <AB6292FA-D3BC-3D56-B3A5-2BE630A503E7> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x91d9e000 - 0x91da5ff2  com.apple.NetFS (6.0 - 4.0) <915AA303-C02B-3B0C-8208-D8AAA4350DB4> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x91da6000 - 0x91da7ff7  com.apple.diagnosticlogcollection (10.0 - 1000) <B2525E0D-2BB1-3AF6-BDCA-56DCDC1F7DBF> /System/Library/PrivateFrameworks/DiagnosticLogCollection.framework/Versions/A/ DiagnosticLogCollection
    0x91da8000 - 0x91e1eff3  com.apple.securityfoundation (6.0 - 55122.3) <DFA5E047-2B68-3CE8-B9C3-D19E6F2461CB> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x91e1f000 - 0x91e55fff  com.apple.IconServices (25 - 25.17) <A4B5242B-765E-3D58-B066-BBEDB5947AAD> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconService s
    0x91e56000 - 0x91ef5fff  libCoreStorage.dylib (380.70.2) <AAB92110-31F1-36F0-A877-21FCE9531C4F> /usr/lib/libCoreStorage.dylib
    0x91fa2000 - 0x9221bff2  com.apple.security (7.0 - 55471.14.18) <7A58D9DE-D68B-37F7-87EF-4A3575DA09B7> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x9221c000 - 0x9223bff9  com.apple.framework.Apple80211 (9.4 - 940.60) <8CCF54EE-F3CA-38B3-BD61-DDBF99E37FCB> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x9223c000 - 0x9223cfff  libkeymgr.dylib (28) <1B097DEA-011E-3B1C-86D5-6C7FAD5C765A> /usr/lib/system/libkeymgr.dylib
    0x9223d000 - 0x92261ff3  libc++abi.dylib (49.1) <43A04ACF-97A5-35ED-B454-6B5C0CF0F99D> /usr/lib/libc++abi.dylib
    0x92262000 - 0x923efffb  com.apple.CFNetwork (673.3 - 673.3) <2C900A5F-9E29-3636-846D-68B24774E82A> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x923f0000 - 0x92420ff7  com.apple.CoreServicesInternal (184.9 - 184.9) <999FEDEC-7657-3F32-A9AE-F29E0BE0AAF5> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/Cor eServicesInternal
    0x924210

    I suggest you start by writing a script that contains local variables.  These variables correspond to your intended procedure arguments.  Once you have that working, you should be able to convert the script into a stored procedure.  Since
    I don't have Northwind I'll use AdventureWorks as a reference.  The script below will not actually run successfully since I did not include all the required information to insert a row into the detail table - but it should give you a rough idea of what
    a basic script would look like. 
    set nocount on;
    use AdventureWorks2012;
    go
    begin tran;
    declare @orderid int;
    declare @productid int;
    declare @qty int;
    set @orderid = 10;
    set @productid = 1;
    set @qty = 4;
    insert Sales.SalesOrderDetail (SalesOrderID, ProductID, UnitPrice, OrderQty)
    select @orderid, prod.ProductID, prod.ListPrice, @qty
    from Production.Product as prod where prod.ProductID = @productid;
    rollback tran;
    go

  • Stored Procedure creation issue

    Hi All,
    I need a stored procedure's for below Scenario:
    tblProduct is a parameter table that has values list of Products and every product has code (Eg, PEN A, BOOK B , PENCIL C and so on)
    For every value a procedure sp_findIndex will be called 
    sp_findIndex finds the index of the alphabet based on the tblKeyValue a key value table which has two columns key and value, key 1,2,3....
    and values A,B,C..
    Further sp_findIndex calls sp_evenOdd with
    the index as input and provides an output whether index is an even or an odd number 
    which is printed through sp_findIndex procedure 
    Task 1
    List down even and odd for all the products.
    Task 2
    Now warp this logic to stored procedure sp_wrapper which takes input Product names separated by comma.
    Thanks in Advance.........
    Tbl_Product
    Create table Tbl_Product
    Product varchar(50) NULL,
    Code Varchar (50) NULL
    Insert into Tbl_Product values('PEN','A')
    Insert into Tbl_Product values('BOOK','B')
    Insert into Tbl_Product values('PENCIL','C')
    Insert into Tbl_Product values('TV','D')
    Insert into Tbl_Product values('COMPUTER','E')
    Insert into Tbl_Product values('SHOES','F')
    Insert into Tbl_Product values('SHIRT','G')
    Tab_KeyValue
    Create table tbl_KeyValue
    value char(3) NULL,
    keys int NULL
    Insert into tbl_Keyvalue values('A',1)
    Insert into tbl_Keyvalue values('B',2)
    Insert into tbl_Keyvalue values('C',3)
    Insert into tbl_Keyvalue values('D',4)
    Insert into tbl_Keyvalue values('E',5)
    Insert into tbl_Keyvalue values('F',6)
    Insert into tbl_Keyvalue values('G',7)
    Main
    Procedure:
    CREATE PROCEDURE DBO.SP_WRAPPD
    (PRODUCT1 VARCHAR(1000))
    AS
    BEGIN
    DECLARE @COMMA VARCHAR(2)
    SET @COMMA =','
    SELECT CODE FROM TBL_PRODUCT WHERE CHARINDEX(PRODUCT,@PRODUCT) >0
    END
    Second
    procedure:
    Create Procure sp_findIndexes(@value varchar(10))
    as
    begin
    Declare @keys int
    set @Keys =(select A.keys from tbl_keyvalue A where A.value=@value)
    Declare @Evenodd varchar(10)
    Declare @result int
    Exec @result =sp_EvenOdds @keys
    if @result=1
    set @EvenOdd ='Even'
    else
    set @EvenOdd='Odd'
    insert into ##EvenOddResultss select A.keys,B.Product,@evenodd as evenodd from tbl_product B
    inner join
    tbl_KeyValue A
    on A.Value=B.code and A.keys=@keys
    end
    Third
    Procedure:
    Create procedure sp_EvenOdds (@Key int)
    as
    begin
    if(@key%2=0)
    return(1)
    else
    return(0)
    end
    I am calling third procure from second,second from Main Procedure...
    Thanks in Advance...

    Hi,
    1. Again this is a image and not a code!
    Do you want to waste our time on typing while we can help other people?!?
    Isn't it more helpful to use copy/paste and to bring us a code and not stories/images? 
    2. How can we recreate the issue and execute or even just create this SP without having the relevant elements (like the tables) ?!?
    Please post DDL+DML!
    DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and recreate the problem in our server. Without DDL no one
    can execute any query.
    How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
    DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
    sample data.
    If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
    to identify issues, clarify terminology and prevent incorrect assumptions.  Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
    [Personal Site] [Blog] [Facebook]
    Hi Pituach,
    Tbl_Product
    Create table Tbl_Product
    Product varchar(50) NULL,
    Code Varchar (50) NULL
    Insert into Tbl_Product values('PEN','A')
    Insert into Tbl_Product values('BOOK','B')
    Insert into Tbl_Product values('PENCIL','C')
    Insert into Tbl_Product values('TV','D')
    Insert into Tbl_Product values('COMPUTER','E')
    Insert into Tbl_Product values('SHOES','F')
    Insert into Tbl_Product values('SHIRT','G')
    Tab_KeyValue
    Create table tbl_KeyValue
    value char(3) NULL,
    keys int NULL
    Insert into tbl_Keyvalue values('A',1)
    Insert into tbl_Keyvalue values('B',2)
    Insert into tbl_Keyvalue values('C',3)
    Insert into tbl_Keyvalue values('D',4)
    Insert into tbl_Keyvalue values('E',5)
    Insert into tbl_Keyvalue values('F',6)
    Insert into tbl_Keyvalue values('G',7)
    Main Procedure:
    CREATE PROCEDURE DBO.SP_WRAPPD
    (PRODUCT1 VARCHAR(1000))
    AS
    BEGIN
    DECLARE @COMMA VARCHAR(2)
    SET @COMMA =','
    SELECT CODE FROM TBL_PRODUCT WHERE CHARINDEX(PRODUCT,@PRODUCT) >0
    END
    Second procedure:
    Create Procure sp_findIndexes(@value varchar(10))
    as
    begin
    Declare @keys int
    set @Keys =(select A.keys from tbl_keyvalue A where A.value=@value)
    Declare @Evenodd varchar(10)
    Declare @result int
    Exec @result =sp_EvenOdds @keys
    if @result=1
    set @EvenOdd ='Even'
    else
    set @EvenOdd='Odd'
    insert into ##EvenOddResultss select A.keys,B.Product,@evenodd as evenodd from tbl_product B
    inner join
    tbl_KeyValue A
    on A.Value=B.code and A.keys=@keys
    end
    Third Procedure:
    Create procedure sp_EvenOdds (@Key int)
    as
    begin
    if(@key%2=0)
    return(1)
    else
    return(0)
    end
    I am calling third procure from second,second from Main Procedure

  • ORA-03111 - JCA Binding error while invoking a stored procedure in DB

    Hi,
    We are facing this problem for one interface alone.
    Need expert advice to fix this problem..
    This is scheduled to run once in a day and fails daily for past 2 weeks..
    We receive below error as response..
    Same interface worked fine for past 1 yr..
    Also it works fine if we reprocess the batch in next day morning...
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DB_Legacy_To_EBS_Invoice_Conversion' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the IRSOA.AR_SOA_INVOICE.TRN_GET_CUST_INV_RAW_TO_STAGE API. An error occurred while preparing and executing the IRSOA.AR_SOA_INVOICE.TRN_GET_CUST_INV_RAW_TO_STAGE API. Cause: java.sql.SQLException: ORA-03111: break received on communication channel ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    AND
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DB_Legacy_To_EBS_Invoice_Conversion' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the IRSOA.AR_SOA_INVOICE.TRN_GET_CUST_INV_RAW_TO_STAGE API. An error occurred while preparing and executing the IRSOA.AR_SOA_INVOICE.TRN_GET_CUST_INV_RAW_TO_STAGE API. Cause: java.sql.SQLException: ORA-01013: user requested cancel of current operation ORA-06512: at "IRSOA.XXIR_AR_SOA_CUSTOMER_INVOICE", line 213 ORA-06512: at line 1 ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution
    Thanks,
    Sundaram

    Looks like the SQL might be taking a longer time to execute and might be timing out.
    Please refer the following:
    Re: ORA-01013: user requested cancel of current operation
    http://www.dba-oracle.com/t_ora_01013_user_requested_cancel_of_current_operation.htm
    Additionally, ORA-06512 indicates that there is a mismatch of the with the data length that is being processed. Refer http://www.techonthenet.com/oracle/errors/ora06512.php
    Hope this helps.
    Thanks,
    Patrick

  • Why doesn't SSRS like an IF Statement in my SQL Stored Procedure???

    I have multiple IF Statements at the end of my SQL Stored Procedure Process that utilizes a @ReportTypeName Parameter to produce the chosen report result set
    IF @ReportTypeName = 'HMO-POS New To HFHP - No Prior Year Member Spans'
    BEGIN
    SELECT DISTINCT
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Contract Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Subscriber Member Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Pkg],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Division Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EFF DATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER FIRST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER LAST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Broker Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ADDRESS 1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER CITY],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER STATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ZIPCODE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE2],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE3],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EMAIL],
    CONVERT(VARCHAR,CAST(CONVERT(VARCHAR, [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH]) AS DATETIME),101) AS [INDV MEMBER BirthDate],
    FLOOR((CAST (GETDATE() AS INTEGER) - CAST(CONVERT(DATETIME, CONVERT(CHAR(8), [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH])) AS INTEGER)) / 365.25) AS [INDV MEMBER AGE]
    FROM [#TempTable_Distinct_Individual_Member_All_Info]
    WHERE (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] NOT IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans])
    ORDER BY [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    END
    IF @ReportTypeName = 'HMO-POS Renewals'
    BEGIN
    SELECT DISTINCT
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Contract Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Subscriber Member Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Pkg],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Division Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EFF DATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER FIRST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER LAST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Broker Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ADDRESS 1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER CITY],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER STATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ZIPCODE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE2],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE3],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EMAIL],
    CONVERT(VARCHAR,CAST(CONVERT(VARCHAR, [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH]) AS DATETIME),101) AS [INDV MEMBER BirthDate],
    FLOOR((CAST (GETDATE() AS INTEGER) - CAST(CONVERT(DATETIME, CONVERT(CHAR(8), [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH])) AS INTEGER)) / 365.25) AS [INDV MEMBER AGE]
    FROM [#TempTable_Distinct_Individual_Member_All_Info]
    INNER JOIN [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]
    ON [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR] = [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    WHERE (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    ORDER BY [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    END
    Microsoft Visual Studio and SQL Server Reporting Services did not like this! When I added my dataset and parameters accordingly, my Dataset had no fields...almost as if running the Stored Procedure in the background to get its Metadata was not working. I
    know this works because I tested it as a result of a straight EXEC Command. Why doesn't Microsoft Visual Studio and SQL Server Reporting Services not like this IF? I did end up getting around this by parameterizing the WHERE clause based on the @ReportTypeName
    chosen.
    WHERE (@ReportTypeName = 'HMO-POS New To HFHP - No Prior Year Member Spans'
    AND (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] NOT IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]))
    OR (@ReportTypeName = 'HMO-POS Renewals'
    AND (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]))
    I appreciate your review and am hopeful for a reply.
    Thanks!

    Hi ITBobbyP,
    I have tested on my local environment and can reproduce the issue, the issue can be caused by the temp table you are using which will also cause the data not display.
    I have use below sample table and record to have a test and details information below for your reference:
    Right click the DataSet to select the "DataSet Properties" and click the query designer to execute the stored procedure by click the "!" to check if you can get the data:
    If you got some error, the issue can be cause by the temp table invalid, so please make sure you have add the query to create and insert  recored to temp table like below:
    CREATE PROCEDURE vickytest0311_1
    @ReportTypeName nvarchar(50)
    AS
    create table #VickyTest
    column1 int,
    column2 varchar(20)
    insert into #VickyTest values (1,'Test1')
    insert into #VickyTest values (2,'Test2')
    insert into #VickyTest values (3,'Test3')
    IF @ReportTypeName ='Test1'
    BEGIN
    select * from #VickyTest
    where Column1=1
    END
    IF @ReportTypeName ='Test2'
    BEGIN
    select * from #VickyTest
    where Column1=2
    END
    GO
    3. I recommend you to not use the temp table and you will not need to add the create and insert statement in the stored procedure.
    4. If you still got no data, please try to click the "Refresh fields" as below:
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Ethernet Cable to WRE54G v3

    I have a WRE54G Range Expander that is currently operating in a wireless mode over an encrypted network. The signal is very weak. so what i want to do is to run an ethernet cable from the router to the WRE54G Range Expander which would allow me to mo

  • Search help for calendar

    Hi, is there in se11 search help which could be join to field at screen and it will show calenadar to help choosing data which will be put to this field? Search help or sample of code which allows to show calendar as search help? regards, Joanna

  • Office 2010 - Excel prompts "The office File Validation feature has blocked this file from opening as it may contain harmful content"

    The Excel Application opens a Windows with OK button. Reading Office has detected a problem with this file. To help protect your computer this file cannot be opened. This only happens when opeining the Excel File via a XenApp Published Application bu

  • How do i move my MobileMe hosting to somewhere else?

    My website has now gone, seeing as the MobileMe service has stopped. I've been looking online and theyre saying something about FTP, but i have no idea how to set that up. I also don't want to lose my domain name, or change it, e.g. it being at the m

  • Corruption  SYS user

    Hello experts I am reading SAP Database Admin with Oracle by Michael Hoding, Andre Faustmann, Gunnar Kelein, Ronny Zimmermann. In chapter 9 System Operation and Monitoring section 9.2.1.1 Complete Analysis it states: Check at least the objects of the