CS4 won't expand Command (Stored Procedure) in Bindings window

Hi, I am having an annoying issue with DW CS4 and Stored
procedures
I have a created a command to run a stored procedure in our
MS Sql 2005 server. I can run it on the server under the
appropriate user. I can see the stored procedure in the DW CS4
command dialog box using the correct Schema, I can successfully
test the stored procedure in The DW CS4 command dialog box. But as
soon as i click on the + to expand it in the Bindings window it
gives the following error.
Could not find stored procedure
'greathage_database.rep_daily_orders_by_email'.
This is very strange as I can see it and run it in DW CS4
command dialog box.
Can anyone help?

I am having this same issue.  I've recently upgraded from DW8 (where this functionality worked fine) to DW CS4.  I can see the Command in the Bindings panel as well, however the only attribute or field available says 'Return Value' ... none of the fields from the Command are being returned.  If I go into the command and check the box for return recordset and I give the recordset a name and click okay, things 'seem' okay.
However, I cannot seem to create an object such as a list box and bind the results of the command to the list box.  DW CS4 does not seem to recognize the command I just created.  In addition, if I go back into the same command form server behaviors, the check box for return recordset is no longer checked and the name I provided for the recordset is blanked out.
I've experienced this on existing pages and a pre-existing DW site that all worked in DW8.  I tried opening a ticket with the Adobe support and they politely withdrew my ticket.  They said they do not support the Server Behavior portion of thier product and that I had to try the 'developer section' to find support.

Similar Messages

  • Help with Command - Stored Procedure

    Hi all,
    I'm having a great deal of difficulty getting my head around
    an update command / stored procedure, I've pulled out all of my
    books and spent the last two days on Google which has made my
    confusion worse. In simple terms what I'm trying to do is update a
    field in a table with the value y, but based on certain criteria.
    So my table has the following fields -
    JBAID
    JBASiteID
    JBADatePosted
    JBAPostFor
    JBANotified
    What i want to do is update the value of field JBANotified on
    all records that meeting the following criteria to Y
    The criteria is -
    WHERE DATEADD(d,JBAPostFor,JBADatePosted) BETWEEN DATEADD(d,
    -7, GETDATE()) AND GETDATE() AND JBANotified = 'n' AND JBASiteID =
    MMColParam (where MMColParam is Session("SITEID"))
    So I've just tried building a command / stored procedure -
    which reads (see attached code)(more than likely all wrong)
    The things that I cant get my head around are -
    Firstly getting the code right in the first place, running
    the command on page load and then when the command has run
    redirecting to the next page.
    I really would appreciate some help with this -
    thanks all

    Ed Stewart wrote:
    > Are you using CS3 with ASP/VBScript? There is a bug in
    the command
    > implementation that has this function broken.
    >
    > I asked about it in this forum several months ago, but
    now I can't find my
    > original post, but I did find another post that talks
    about the same thing:
    >
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=26
    > 3&threadid=1281539&enterthread=y
    >
    > My solution is to drop back to DW8 for command editing,
    but use CS3 for
    > everything else. I don't know what you're supposed to do
    if you don't have an
    > earlier version.
    >
    > It looks like your sql is correct, but the bug prevents
    the second code block
    > is not being updated with the correct values.
    >
    > I hope a solution is forthcoming....
    >
    Create a stored procedure and then use a recordset to
    exectute it,
    making sure the recordset has matching parameters that the
    stored
    procedure expects.
    Commands are broken, I reported it to Adobe and they said it
    might get
    fixed in the next version.
    Steve

  • Calling Stored Procedure from APEX window

    Hopefully someone will be able to help me. I have a stored procedure that generates a csv of time worked from our system. When I hard code the values in the procedure and call it from a button, the popup window opens excel and displays the time worked.
    When I call it with session variables, the window opens, but no values are listed for time worked.
    This is the first line of the proc.
    create or replace procedure "PRC_EXP_HOURS_TO_CSV"
    (p_name IN VARCHAR2,
    p_wk_end_dt IN DATE).....
    This is how the button calls the proc
    javascript:popupURL('#OWNER#.prc_exp_hours_to_csv?p_name=&P20513_NAME.,&p_wk_end_dt=&P20513_ACTIVITY_DATE.');
    Both P20513_NAME and P20513_ACTIVITY_DATE show a session status of 'I' so I am not sure what is going wrong here. As stated if I hard code values in the proc for name and '06-APR-08' for date the proc runs.
    Kevin

    Kevin
    Is it possible that :P20513_NAME value has "special" characters (space, comma, etc)?
    If it has then you have to "escape" it or you can get values with V functions in your stored procedure:
    <pre>
    declare
    l_name varchar2(4000);
    l_date date;
    begin
    l_name := v('P20513_NAME');
    l_date := v('P20513_ACTIVITY_DATE');
    </pre>
    Lev

  • Stored Procedure for checking Invoice Vendor ref No

    Hi All
    I need a sp for checking a vendor ref no  on an invoice if it already exist in the system or the user forgot to include one when trying to add the document.
    I get this error on the one that I created
    16/03/2010  12:21:54: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '24     0' to data type int. (CINF)
    Here is my SP :-
    DECLARE @Invoice AS VARCHAR(15)
    DECLARE @Card AS VarChar (20)
    SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
    WHERE DocEntry = @list_of_cols_val_tab_del
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice is null
    begin
        If exists (SELECT T0.cardcode, T0.NumAtCard  FROM OPCH T0 where T0.NumatCard is null and  T0.cardcode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Supplier invoice number not entered.'
         END
    END
    SELECT @INVOICE = NumatCard FROM dbo.OPCH
    WHERE DocEntry = @list_of_cols_val_tab_del
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice to check if the invoice no exist
    begin
        If exists (SELECT T0.cardcode, T0.NumatCard  FROM OPCH T0 where T0.NumatCard = @invoice  and  T0.cardcode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'This invoice number already exist for this supplier.'
         END
    END
    Regards
    Bongani Dlamini

    This code should be inserted into the original (or already expanded) SBO_SP_TransactionNotification stored procedure after the line
    --     ADD     YOUR     CODE     HERE )
    Try this full (and a little modified) procedure:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    --     ADD     YOUR     CODE     HERE
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP invoice
    BEGIN          ----
    DECLARE @Invoice AS VARCHAR(15)
    DECLARE @Card AS VarChar (20)
    SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
         WHERE DocEntry = @list_of_cols_val_tab_del
    -- AP Invoice is null
    If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null
               and T0.DocEntry=@list_of_cols_val_tab_del)
    begin
    SET @error = 10
    SET @error_message = N'Supplier invoice number not entered.'
    end
    -- AP Invoice to check if the invoice no exist
    If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice
               and T0.CardCode=@card and T0.DocEntry!=@list_of_cols_val_tab_del)
    begin
    SET @error = 10
    SET @error_message = N'This invoice number already exist for this supplier.'
    end
    END          ----
    -- Select the return values
    select @error, @error_message
    end

  • PHP / MySQL / Stored Procedures

    I'm trying to call a stored procedure on my site which uses
    php / mySQL 5.x. I've got the procedure working in the database so
    that when I call it from within a MySQL client it executes and
    returns the results I need, but Dreamweaver doesn't even "see" the
    stored procedure.
    By this I mean If I use the recordset wizard, go to advanced,
    select the relevant database and then expand the Stored Procedures
    tab none are listed.
    Searching through Adobe help, it lists nothing about Stored
    Procedures with PHP/MySQL apart from that MySQL doesn't support
    them. The later versions of MySQL do support Stored Procedures, but
    has anyone got them working with Dreamweaver? If so how!??!!
    Any help much appreciated.

    Talk Rowing wrote:
    > Well thanks for setting me straight - even if you are
    the bearer of bad news.
    > I've filed a feature request as you suggested. Can't
    believe Adobe don't offer
    > this.
    Stored procedures have been available in MySQL only since
    version 5.0,
    which was released in October 2005, one month after
    Dreamweaver 8. It
    would have been nice to include support for stored procedures
    in CS3,
    but no new functionality was added to any of the server-side
    features of
    Dreamweaver. I have my fingers crossed for next time.
    > On another note I don't suppose you could point me in
    the direction of some
    > tutorials on how to create a recordset from a stored
    procedure manually? I've
    > tried google and not come across a lot...
    My server doesn't support MySQL 5.0, so apart from the
    information in
    the MySQL documentation, I don't know a great deal about
    using stored
    procedures:
    http://dev.mysql.com/doc/refman/5.0/en/stored-procedures.html
    One of the problems is that many hosting companies are still
    using older
    versions of MySQL (a lot still offer only 3.23). I'm
    currently in the
    process of moving to a new server with support for both PHP 5
    and MySQL
    5.0. Once I've had time to experiment, I hope to know a lot
    more.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How may one increase JVM/Java Stored Procedure Perfomance?

    Hi all,
    my question: How can one increase the performance of the Oracle JVM, especially of Java Stored Procedures?
    I ask this because I did some performance analysis (and was horrified :):
    I have a static Java method that'll need an average 15 ms to return - when executed locally.
    The same code, uploaded to an Oracle10g instance and published as Java Stored Procedure will take awful *925 ms*.
    I measured both times from within the method as shown below:
    public class JSProc {
    public static void doSomething() {
    long start = System.currentTimeMillis();
    // now comes the '15 ms'-code
    long time = System.currentTimeMillis() - start;
    That way, I'm not including any call spec overhead, network communication or whatever into the 925 ms. All in all the above procedure call will take about 1200 to 1500 ms until it returns to the client...
    The hardware: both client/server computers have the same hardware, both use the JDK provided with the latest Oracle10g release; single difference: client is Win2K, server is Linux.
    I would be immensely grateful for your suggestions concerning the possibilities to increase the JVM performance...
    Greetings,
    Sam

    As Avi suggested, subsequent calls of the procedure within the same session will reduce the execution time down to 40 ms in my testing environment.
    But that doesn't change anything for the 'first call' - when I start a new client program that opens a new connection, the Java Stored Proc will again need about a second to return.
    I wrote the procedure now in PL/SQL - it will return in less than 30 ms, subsequent calls will return in less than a ms. Guess what I'll use :)
    I played around with the JAVA* configuration params, but, as expected, that doesn't change anything in terms of performance. According to documentation, it will only affect the amount of classes I can load into the server.
    I just read that Oracle creates a new "little" JVM for every session, and I imagine that there's lot of method intercepting and things (the ominous AOP-code) to ensure transaction security.
    That's why I come to the conclusion that I won't use Java Stored Procedures for classical "connect, execute, disconnect" client-server applications. It's like full braking on the freeway :)

  • Stored Procedure in mysql 5.0 failure!

    Hi,
    somebody can help me!
    my database is: mysql-5.0.0a-alpha
    the connection driver is:mysql-connector-java-3.1.1-alpha-bin.jar
    I want to test stored procedure of the new feature in MySQL version 5.0. A
    I can call the stored procedure procPara in Window Console as next show,
    but when I run in procTest.java(shown as next),I get error Messages.
    The error is at the line:
    CallableStatement cs=conn.prepareCall("{call procPara(?)}");
    between checkpoint 1 and checkpoint 2
    your answer is highly appreciated!
    from: Nanfei
    mysql> delimiter //
    mysql>
    mysql> CREATE PROCEDURE procPara(IN name varchar(16))
    -> BEGIN
    -> SELECT note FROM kmdoc where username=name;
    -> END
    -> //
    Query OK, 0 rows affected (0.22 sec)
    mysql> call procPara("John")//
    | note |
    | mysql Manul |
    | Office2000 |
    | PDF |
    | PowerPoint Animation Runtime|
    | Office2003 |
    | Test Title |
    | Say Hello |
    7 rows in set (1.16 sec)
    Query OK, 0 rows affected (1.67 sec)
    mysql>
    procTest.java as following:
    package km;
    import java.sql.*;
    public class procTest{
    public static void main(String[] args)throws Exception {
    String driverConnection="jdbc:mysql://localhost/";
    String catalog="mycatloge";
    String user="myname";
    String psw="mypsw";
    String connDbUserPsw=driverConnection+catalog+"?user="+user+"&password="+psw;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    catch (ClassNotFoundException e) {}
    Connection conn = DriverManager.getConnection(connDbUserPsw);
    System.out.println("checkpoint 1");
    CallableStatement cs=conn.prepareCall("{call procPara(?)}");
    System.out.println("checkpoint 2");
    cs.setString(1,"john");
    java.sql.ResultSet rst=cs.executeQuery();
    while(rst.next()){
    String s=rst.getString(1);
    System.out.println(s);
    Messages:
    checkpoint 1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9
         at java.lang.String.substring(String.java:1480)
         at com.mysql.jdbc.DatabaseMetaData$TypeDescriptor.<init>(DatabaseMetaData.java:7031)
         at com.mysql.jdbc.DatabaseMetaData.getCallStmtParameterTypes(DatabaseMetaData.java:6615)
         at com.mysql.jdbc.DatabaseMetaData.getProcedureColumns(DatabaseMetaData.java:2637)
         at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:904)
         at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:72)
         at com.mysql.jdbc.Connection.prepareCall(Connection.java:999)
         at com.mysql.jdbc.Connection.prepareCall(Connection.java:978)
         at km.procTest.main(procTest.java:17)
    Exception in thread "main"
    -------------------------------------------------------------------------

    I got the answer from the following Link:
    Use a nightly snapshot of Connector/J 3.1 from
    http://downloads.mysql.com/snapshots.php
    I replace the old connection driver mysql-connector-java-3.1.1-alpha-bin.jar
    with the more new driver mysql-connector-java-3.1-nightly-20040408-bin.jar
    which I believe is not the final one!
    Now ,Stored Procedure with parameter in mysql 5.0 work ok!

  • Error: Could not find stored procedure !!

    Hi,
    Error: Could not find stored procedure.
    I Installed the SQL Server SP2 and the error still occurs when ever I call the stored procedure from my windows app!!
    Any Help ?

    I run this query:
    select uid,
    left ([name], 30) as [name]
    from sysobjects
    where [name] like 'ThisMonthRecords%'
    the result is:
    1 ThisMonthRecords

  • Stored Procedure CS4?

    I use MS2008 SQL Server and I'm trying to get Dreamweaver to connect using stored procedures. ASP VBscript.
    If I use "Command" and click on "Procedures" it starts to load them up and then sits there. I waited about 5 minutes and gave up waiting.
    Same with doing it the Recordsets way. There was a time when doing the recordsets way worked but apparently not now in CS4. So not only has it not be fixed but it's gotten worse.
    Any workarounds? Ideas?
    Is this their way of saying I should move to php?
    Are they EVER going to fix this and if not why do they keep it in the interface when they have no plan to fix it?

    LArtJunky wrote: Glasonbury,
    Are you setting up the lighting because you work for a lighting company? Also, where are you from? I was thinking you lived somewhat southwest of London.
    Lighting is my hobby, I have been doing it for 10 years. Mainly clubs and free parties (raves) but also do a couple stages at the Glade Festival with some friends of mine. I do happen to work for a lighting company, have done for a couple of years, which is why its an ideal job for me. I do all the asp/sql parts of the website that marketing have overall control over. I also do internal systems using asp/sql. I think I have learnt more in the last 2 years than I have in the last decade, and all because the products and the company interest me.
    Now Glastonbury is a good 3 hour drive in an old Merc van full of sound and lighting kit. Your right, I do live west of London, but do parties all over the place. This one wasn't that well attended or well paid, but it was still a good party.
    Steve

  • How can i run an OS command in a stored procedure?

    Hi, I'm creating a stored procedure in which I need to copy a file from one directory to another.
    I know that in Forms, this can be done with the "host" function, but it doesn't work in the stored procedure.
    I read something in a forum about using the DBMS_SCHEDULER, with a sentence like this:
    DBMS_SCHEDULER.CREATE_PROGRAM('OS_Command', 'EXECUTABLE', v_command, 0, TRUE );
    where v_command is a string containing the cp command I need to execute.
    Would this be correct? And would this sentence be enough for the command to be executed instantly?
    Thanks in advance,
    Jorge

    http://www.oracle.com/technetwork/database/enterprise-edition/calling-shell-commands-from-plsql-1-1-129519.pdf

  • How to execute stored procedure in the SQL Commands page

    i'm oracle express edition newbie :) i have this stored procedure. it not belong to a package.
    create or replace procedure "LIST_MEMBERS"
    ("MEMBER_CUR" OUT SYS_REFCURSOR)
    is
    begin
    OPEN MEMBER_CUR FOR
    SELECT * FROM members;
    end;
    now, in the SQL Commands page, how to run the stored procedure and return the records. i do this:
    begin
    execute list_members();
    end;
    but i'm getting some errors. just need some immediate help :) thanks!!!

    Example of using a ref cursor:
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace procedure open_cur(c IN OUT SYS_REFCURSOR) is
      2  begin
      3    open c for 'select rownum rn from dual connect by rownum <= 10';
      4* end;
    SQL> /
    Procedure created.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    c     SYS_REFCURSOR;
      3    v_val NUMBER;
      4  begin
      5    open_cur(c);
      6    loop
      7      fetch c INTO v_val;
      8      exit WHEN c%NOTFOUND;
      9      dbms_output.put_line(v_val);
    10    end loop;
    11    close c;
    12* end;
    SQL> /
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    PL/SQL procedure successfully completed.
    SQL>

  • Command for "How to find Cursor Size" in Oracle Stored Procedure"

    Hi
    Can u tell me....
    How to find Cursor Size" in Oracle Stored Procedure........
    I want command for that........

    why don't you try select count(*) from your_table;That requires running the same query twice - or rather running two different queries twice. Besides it still doesn't guarantee anything, because Oracle's read consistency model only applies at the statement level (unless you're running in a serialized transaction).
    This is such a common requirement - users are wont to say "well Google does it" - it seems bizarre that Oracle cannot do it. The truth is that that Google cheats. Firstly it guesses the number on the basis of information in its indexes and refines the estimate as pages are returned. Secondly, Google is under no onus to kepp all its data and indexes synchronized - two simultaneous and identical queries which touch different Google servers can return different results. Oracle Text works the same way, which is why we can get a count with CTX_QUERY.COUNT_HITS in estimate mode.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com
    .

  • JDBC SQL Server Channel Calling Stored Procedure Won't Return Result Set

    Good afternoon, Experts
    We're calling a stored procedure in a sender communcation channel.  I can perform any SQL SELECT statement here, but for some reason when I execute the SP (EXECUTE StoredProcedureName) The Adapter Engine returns the following:
    Database-level error reported by JDBC driver while executing statement 'DECLARE @UpdateRecords bit SET @UpdateRecords = 0 EXECUTE ExportToSAP @UpdateRecords'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.
    Even stranger yet is is that this works just fine on our PI-DEV system.  I created an identical communication channel connecting to the same database with the same UID and PWD and it won't work in PI-QAS.
    Any help/ideas you could share would be greatly appreciated!!!
    Thanks,
    Chad

    Hi Chad.
    Normally, itu2019s a problem with your procedure. The Store Procedure is wrong and something is different between your DEV environment and QAS environment.
    Try to ask to DB team check it.
    Regards,
    Bruno

  • How to run stored procedure in DOS command line????

    Hi,
    I want to run a stored procedure in DOS command line?
    (My_Stored_Procedure is the stored procedure that I want to run )
    This is what I did in DOS prompt
    C:\>sqlplus scott/tiger exec lMy_Stored_Procedure <Return>
    Obviously it is NOT working. Please send me the correct way to fix this.
    Thanks so much in advance for helping.
    Cuong

    Billy  Verreynne  wrote:
    BluShadow wrote:
    True Billy, but even Windows hasn't completely got away from using the "DOS" word...Yeah - the command line/shell environment is based on that of the old DOS command interpreter. But Microsoft does not make the mistake of call it DOS.
    In fact, with earlier versions of Windows NT, a 16bit DOS real-mode virtual machine was supported. This was very kewl.
    Running a large BBS with multiple nodes back then required a DOS machine per node, an IPX network, and a Novell file server.Novell Netwars. ;)
    Ahhhh! good old DOS... so many good programs written at that low level, outside the Windoze environment.Yeah.. cut my teeth on writing code for DOS. Still have all my old BIOS and assembler manuals for it. Wrote my own screen s/w (write to a buffer and then move it into the video buffer, instead of writing char wise to the video buffer via interrupts), mucking about with my own concurrent threading model (using very simplistic cooperative multitasking) and so on. Heck, wrote tons of s/w on DOS... :-)Yeah I've still got a copy of my old machine code programs for writing to buffers and screen memory switching for smooth animation. Run them nowadays and they run like sh!t off a shovel. And all my old coursework including writing an interpreted language and multi-window (dos based windows) editor, parser and the code to execute the language and display the output. Oooo, and so much other stuff.
    Awesome back then as you got really intimate with the o/s and hardware. This is sorely lacking today in environments like Java. And I think the reason why so much code written today is less than optimal - to put it kindly.Exactly. Started for me on the Sinclair zx81 (writing Basic), then the Sinclair Spectrum (Basic and Assembly), then Sinclair QL (yes I really had one!) and then the BBC Master 128K (where I got to writing my own rom filing system and creating my own eproms, to integrate with the word processor for additional printing features etc. as well as storing games on rom for speedy loading - and I still have it and it still works!)
    It's that level of working with the underlying memory and assembly language that gives you the understanding of how values are passed between code using the stack and registers, and how memory allocation and referencing is done etc. As you say... it's missed in a lot of todays teaching, which just seems too high level and misses the basic concepts of things such as datatypes and why they are different. I bet half the modern programmers wouldn't have a clue how to do multiplication or division of binary numbers using the carry flag.

  • Executing a Operating System command from Stored Procedure ??

    I want to execute a Operating System command from a PL/SQL Stored Procedure, can anyone suggest me how can I do this ??
    I am on Sun-Solaris with Oracle 8.1.7 database.
    Please do email me at [email protected]
    Thanks in Advance,
    Ramesh L.

    Are you using a webserver? If so, you could make your operating system script into a CGI program, then execute it from pl/sql using utl_http.request.

Maybe you are looking for