Defining database

first line of the abap editor is report statement,in that report statement we use line-size,line-count,message-id & defining database.what is defining database?

Hi,
The defining database :
This addition shows that the current program is the database program of the logical database ldb. The name of this logical database has a maximum length of 20 characters. Logical databases are maintained with the tool Logical Database Builder of the ABAP Workbench, in which the framework program is generated automatically including the statement REPORT. The name of the framework program is SAPDBldb.
Example
Introduction of the logical database F1S.
REPORT sapdbf1s DEFINING DATABASE f1s.
Hope it is useful.
Thanks,
Sandeep.

Similar Messages

  • The "DEFINING DATABASE ldb " addition in "REPORT" statment

    Hi all
    I wonder what the "DEFINING DATABASE ldb " addition in "REPORT" statment is involve to?
    cause I didn't understand the SAP help of this addition!
    Thanks.

    When defining logical databases (via SE36), the underlying database program needs to have this addition to the REPORT statement. See SAPDBSDF for logical database SDF as an example.
    Greetings
    Thomas

  • How can i define database name in oracle ADI

    Hai Friends,
    I am facing a problem when i am going to define database name in oracle ADI there is a error u can enter minimum 6 char database name but my database name is PROD it is only 4 char long. how can i define can i will change the database name. Please suggest me.
    If u have any query regarding oracle apps plse discuss with me.
    Many thanks
    Ghanshyam khetan

    Database is used internally by ADI and does not have any relationship to the name of your database.
    Using ADI I am able to create a database with the following:
    Name - My Wacky Database
    GWYUID and FNDNAM as usual
    Connect String - VIS
    I'm able to signon and work successfully with that definition. The connect string is more important in this scenario as that tells the networking layer which database to actually talk to. As you can see here mine is only three characters.

  • Modifying .PRM file for user defined database functions

    Hi,
    Currently we have the BOXI 3.1.8 Universe in oracle database and we are planning to migrate to SQL server 2008.And the universe contains few oracle functions and user defined functions in the universe objects.
    In the way of migration we are planning to have both Oracle and SQL Server database connecting to single universe. To make the universe generic we have identified the objects using user defined functions and trying to push it to the database.
    Since there are a few differences in the way oracle and SQL Server functions are invoked, we have decided to edit the .PRM files available in the path D:\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc , so that we have a common way of invoking the functions.
    Invoking functions:
    SQL Server : <SchemaName>.<function>
    Oracle: <function>
    1.Is there any problem if I edit the .PRM?
    2.Whether these changes will work fine?
    3.Whether the reports will run fine if I use those objects in the reports?
    Thanks,
    Lavanyaa

    Hi Lavanyaa,
    The PRM files actually state the functions that are normally available in a database, including the standard format.
    They are what drives the list of functions available when you build the SELECT definition or CONDITION definitions in Information designer... The fact that a function needs aggregation or/not is also determined in there.
    However:
    The SQL that you provide in the universe is what will be sent to the database and that must be 'understood' by the database.
    So it's not as simple as changing the PRM file and you will be able to speak 'universal' SQL in your universes.
    Fortunately:
    That complexity is taken away from you when you create a multisource database.
    You will speak 'data federator' SQL in the universe. Data federator will take care of translating it to the right syntax for each database. Notice you will probably need some customization to determine how a SQL will be handled when you need to query two databases, as the default is not automatically the best way performance wise.
    Hope this helps,
    Marianne

  • Designing a well defined database access javabean

    Hi All
    Can you please help me with the basic layout of how
    a well defined javabean accessing the database should look like?
    thread safe too..
    It should have the following basc methods
    JavaClass get(String id)
    JavaClass[] getAll()
    void save ()
    void delete()hope that gives you an idea

    Hi Jos
    Lets say we have a bussiness class named Car then basically the Car class would
    be represented in the database as
    carId
    carName
    carModel etc..
    I Know how to get this data into a javabean but i do not know if it is correct
    Example
    public class Car
          private Connection conn
          private String carID
          private String carName
          private String carModel
          /* getters and setters .....*/
          public Car get(String id) throws Exception {
                String sql = "SELECT * FROM Car WHERE carID = " + this.carID;
          //and so forth with deleting a car saving it etc...What i would like to know is what is a good standard of coding such a class to be thread safe
    and use minimal resources?
    the parameter would be in this as it would be the current class used by lots of clients
    Edited by: -epoch- on Oct 28, 2008 5:33 AM

  • How define database performance?

    Hi all
    I have a question about performance.
    I have an Oracle database installed on Xeon server
    1. I want to know parameters of my server. How many processors it has? What is it's RAM and other parameters. From Linux, with which command I can get information about it?
    2. My company wants to buy a server computer for our database. My questions is: Depending on which parameters of database, which server I must select??
    Thanks...

    All my vmstat is like that
    vmstat 10 13
    procs -----------memory---------- ---swap-- -----io---- system ----cpu----
    r b swpd free buff cache si so bi bo in cs us sy id wa
    1 3 78696 16300 3836 2546896 23 19 1447 62 220 106 56 12 19 13
    2 3 91188 15468 3852 2535148 2 128 5285 195 2223 2231 31 8 24 37
    2 6 124956 16620 3776 2501260 0 286 8264 422 2228 2220 30 9 13 47
    2 3 141692 20268 4120 2493528 0 1467 4935 1589 2266 2233 42 11 12 35
    3 2 153172 17516 4380 2494264 0 1098 3174 1216 2051 2081 48 9 18 26
    2 2 158496 20188 4688 2492288 16 631 3305 754 2081 2318 42 9 20 29
    2 2 167652 24556 5032 2494788 4 642 3353 782 2023 2408 47 8 19 26
    11 1 171272 15660 5556 2505372 13 659 2998 827 1972 2049 66 9 10 15
    0 2 175784 17452 5928 2511704 26 342 2632 435 1958 1893 63 10 14 12
    3 1 184056 18156 5976 2504476 0 889 2139 1027 1842 1783 64 9 14 12
    5 4 185196 16988 6352 2510060 13 567 2192 992 1787 1652 73 8 8 11
    7 2 185324 24748 6660 2503840 0 1146 2831 1332 1858 1663 74 11 5 11
    10 2 185308 25700 7132 2507532 0 77 1976 202 1901 1297 85 14 0 1

  • Define database at Logon

    At the opening of my main form an On_Logon trigger/procedure is
    set off.
    The purpose of this trigger is to perform an OCI (or whatever
    works) call via a cursor or command that will connect my
    Developer application with the database I want to process from.
    I have already tried the following methods. The first compiled
    but errored out in the application. The other two would not
    compile.I am playing with OCI now.
    1. BLOCK_NAME := ('SET(CURRENT_SCHEMA = NAME)');
    2. connection_id := EXEC_SQL.OPEN_CONNECTION('alter session set
    current_schema = DATABASE');
    cursor_number := EXEC_SQL.OPEN_CURSOR(CONNECTION_ID);
    EXEC_SQL.PARSE(connection_id, cursor_number, sql_string);
    3. v_cursor := DBMS_SQL.OPEN_CURSOR ;
    If anyone has been able to perform this type of connection via
    OCI or either of the previous 3 methods I listed above, pls
    share!
    null

    Hi Marion,
    MobileMe does not support server side scripting or databases by users.
    I have a work around to show the HTML published database with an iFrame if your database app. has instant web publishing capabilities. But that may not be what you are looking for as there will be a 'log-in to database(server)' screen first.
    If you are looking for a database driven content management platform then you may want to check out [Drupal|http://drupal.org>, it works with MySQL databases and PHP.
    On their website you can find plenty of hosts for your Drupal website.
    With PHP or MySQL over ODBC you can even connect to your database.
    Check out [DynDNS|http://www.dyndns.com> if you want to use your own Mac as a web/database server behind a consumer router with variable IP nr.
    Kind regards,
    Leo

  • There seems to be no defined database cache

    Hello, looking at the parameters in this database there appears to be no cache. This shows that AMM is turned off but also that there is no db cache. How is cache being allocate if these are all 0? I am running Oracle 10.2.0.3 on AIX
    5300-09. Are there other parameters to look at. Shouldn't db_cache_size be set to something?
    sga_max_size ==> 908M
    shared_pool_size ==> 252M
    db_cache_size ==> 0
    db_16k_cache_size ==> 0
    db_2k_cache_size ==> 0
    db_32k_cache_size ==> 0
    db_4k_cache_size ==> 0
    db_8k_cache_size ==> 0
    sga_target == > 0
    I just noticed that this database is using the old method:
    db_block_buffers ==> 49152
    Should I be setting this to 0 and using db_cache_size instead?
    Thank you,
    David
    Edited by: JesusLuvR on Aug 5, 2009 2:58 PM

    Db block buffers would be used to set the buffers within the cache.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams038.htm
    You need to find out that why the setting of the db cache size was set to zero? Are you using any setting of VLM(Very Large Datbase) or somethng in your db?
    HTH
    Aman....

  • How does oracle i officially /i define b Database /b

    <h1>How does oracle <i>officially</i> define <b>Database</b></h1>
    There are many definitions I have found on google ( by searching define: database )
    how does oracle <i>officially</i> define <b>Database</b>.

    From
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref11
    An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information. A database server is the key to solving the problems of information management. In general, a server reliably manages a large amount of data in a multiuser environment so that many users can concurrently access the same data. All this is accomplished while delivering high performance. A database server also prevents unauthorized access and provides efficient solutions for failure recovery.

  • Open and close database connection jsp page

    hi there, i wanna know about how to open database connection to Mysql at the beginning of the page and close the connection at the end of the page. The jsp page contain all processing code.
    plz help me...thx thx

    <html>
    <head>
    <basefont face="Arial">
    </head>
    <body>
    <%@ page language="java" import="java.sql.*" %>
    <%!
    // define variables
    String id;
    String firstName;
    String lastName;
    // define database parameters, change this according to your needs
    String host="localhost";
    String user="root";
    String pass="";
    String db="test";
    String conn;
    %>
    <table border="1" cellspacing="1" cellpadding="5">
    <tr>
    <td><b>id</b></td>
    <td><b>first name</b></td>
    <td><b>last name</b></td>
    </tr>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user 
    + "&password=" + pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    // change this query according to your needs
    String Query = "SELECT id, firstname, lastname FROM abook";
    // get result
    ResultSet SQLResult = SQLStatement.executeQuery(Query);
    while(SQLResult.next())
       id = SQLResult.getString("id");
       firstName = SQLResult.getString("firstname");
       lastName = SQLResult.getString("lastname");
            out.println("<tr><td>" + id + "</td><td>" + 
         firstName + "</td><td>" + lastName + "</td></tr>");
    // close connection
    SQLResult.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </body>
    </html>hi :-)
    i've got that on the net as part of the tutorial on jsp (long long time ago)
    you just have to be resourceful in finding solutions :-)
    try google :-) there are lot's of tutorial available in there ;-)
    goodluck ;-)
    regards,

  • MySQL Database Connection (two databases at the same time)

    I have never had to open more than one MySQL database from within the same website before, but I do now.  The website I have is designed where all the content comes from within the main database.  I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
    Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory.  Below is the proposed code that would be placed within the "common.php" file:
    // Define Database Variables
    $dbserver = "127.0.0.1";
    $dbuser  = array('clevelan_user1', 'clevelan_user2');
    $dbpass  = array('P@ssw0rd', 'P@ssw0rd2');
    $dbname  = array('clevelan_database1', 'clevelan_database2');
    // Start Session
    session_start();
    // Connect to Databases
    connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
    connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
    // Database 1 Connection
    function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection;
      $connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
      return $connection;
    // Database 2 Connection
    function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection2;
      $connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
      return $connection2;
    //End of Code Within the "common.php"
    From within any page of the website, I want to access both connections by placing an include at the top of each page:
    include_once("lib/common.php");
    Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database.  It's as if the second database is the only database seen by the website.
    I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed).  But the main database is always open.

    Create one project using one copy of the exact tables.
    create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
    That should work fine.
    Peter

  • Sql 2000 database role

    Hi ,
    I want to grant execute permission to all SP's in SQL 2000  database, when I tried to create a db_execprocs role it is throwing an error near ROLE, and when I googled  I have found a script as 
    CREATE PROCEDURE dbo.spGrantExectoAllStoredProcs @user ABC\venkat
    AS
    -- Object Name: spGrantExectoAllStoredProcs
    -- Author: Edgewood Solutions
    -- Development Date: 03.19.2007
    -- Called By: TBD
    -- Description: Issue GRANT EXEC statement for all stored procedures 
    -- based on the user name that is passed in to this stored procedure
    -- Project: SQL Server Security
    -- Database: User defined databases 
    -- Business Process: SQL Server Security
    -- Num | CRF ID | Date Modified | Developer | Description
    -- 001  | N\A     | 03.15.2007    | Edgewood | Original code for the GRANT 
    -- EXEC process
    SET NOCOUNT ON
    -- 1 - Variable declarations
    DECLARE @CMD1 varchar(8000)
    DECLARE @MAXOID int
    DECLARE @OwnerName varchar(128)
    DECLARE @ObjectName varchar(128)
    -- 2 - Create temporary table
    CREATE TABLE #StoredProcedures
    (OID int IDENTITY (1,1),
    StoredProcOwner varchar(128) NOT NULL,
    StoredProcName varchar(128) NOT NULL)
    -- 3 - Populate temporary table
    INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
    SELECT u.[Name], o.[Name]
    FROM dbo.sysobjects o
    INNER JOIN dbo.sysusers u
    ON o.uid = u.uid
    WHERE o.Type = 'P'
    AND o.[Name] NOT LIKE 'dt_%'
    -- 4 - Capture the @MAXOID value
    SELECT @MAXOID = MAX(OID) FROM #StoredProcedures
    -- 5 - WHILE loop
    WHILE @MAXOID > 0
    BEGIN 
     -- 6 - Initialize the variables
     SELECT @OwnerName = StoredProcOwner,
     @ObjectName = StoredProcName
     FROM #StoredProcedures
     WHERE OID = @MAXOID
     -- 7 - Build the string
     SELECT @CMD1 = 'GRANT EXEC ON ' + '[' + @OwnerName + ']' + '.' 
     + '[' + @ObjectName + ']' + ' TO ' + '[' + ABC\venkat + ']'
     -- 8 - Execute the string
     -- SELECT @CMD1
     EXEC(@CMD1)
    -- 9 - Decrement @MAXOID
    SET @MAXOID = @MAXOID - 1
    END
    -- 10 - Drop the temporary table
    DROP TABLE #StoredProcedures
    SET NOCOUNT OFF
    GO
    this too is throwin an error as:
    Msg 170, Level 15, State 1, Procedure spGrantExectoAllStoredProcs, Line 1
    Line 1: Incorrect syntax near '\'.
    Msg 170, Level 15, State 1, Procedure spGrantExectoAllStoredProcs, Line 52
    Line 52: Incorrect syntax near '\'.
    Can someone help me with this.
    I just need to grant execute permission on all SP's  to 1 database only.
    Thanks.

    First create the procedure and then call the procedure with parameter.
    Try this 
    CREATE PROCEDURE dbo.spGrantExectoAllStoredProcs @user varchar(20)
    AS
    -- Object Name: spGrantExectoAllStoredProcs
    -- Author: Edgewood Solutions
    -- Development Date: 03.19.2007
    -- Called By: TBD
    -- Description: Issue GRANT EXEC statement for all stored procedures
    -- based on the user name that is passed in to this stored procedure
    -- Project: SQL Server Security
    -- Database: User defined databases
    -- Business Process: SQL Server Security
    -- Num | CRF ID | Date Modified | Developer | Description
    -- 001 | N\A | 03.15.2007 | Edgewood | Original code for the GRANT
    -- EXEC process
    SET NOCOUNT ON
    -- 1 - Variable declarations
    DECLARE @CMD1 varchar(8000)
    DECLARE @MAXOID int
    DECLARE @OwnerName varchar(128)
    DECLARE @ObjectName varchar(128)
    -- 2 - Create temporary table
    CREATE TABLE #StoredProcedures
    (OID int IDENTITY (1,1),
    StoredProcOwner varchar(128) NOT NULL,
    StoredProcName varchar(128) NOT NULL)
    -- 3 - Populate temporary table
    INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
    SELECT u.[Name], o.[Name]
    FROM dbo.sysobjects o
    INNER JOIN dbo.sysusers u
    ON o.uid = u.uid
    WHERE o.Type = 'P'
    AND o.[Name] NOT LIKE 'dt_%'
    -- 4 - Capture the @MAXOID value
    SELECT @MAXOID = MAX(OID) FROM #StoredProcedures
    -- 5 - WHILE loop
    WHILE @MAXOID > 0
    BEGIN
    -- 6 - Initialize the variables
    SELECT @OwnerName = StoredProcOwner,
    @ObjectName = StoredProcName
    FROM #StoredProcedures
    WHERE OID = @MAXOID
    -- 7 - Build the string
    SELECT @CMD1 = 'GRANT EXEC ON ' + '[' + @OwnerName + ']' + '.'
    + '[' + @ObjectName + ']' + ' TO ' + '[' + @user + ']'
    -- 8 - Execute the string
    -- SELECT @CMD1
    EXEC(@CMD1)
    -- 9 - Decrement @MAXOID
    SET @MAXOID = @MAXOID - 1
    END
    -- 10 - Drop the temporary table
    DROP TABLE #StoredProcedures
    SET NOCOUNT OFF
    GO
    dbo.spGrantExectoAllStoredProcs 'abc\venkat'
    OR
    directly execute the below script
    Change the @user parameter with valid account
    DECLARE @User Varchar(20)
    DECLARE @CMD1 varchar(8000)
    DECLARE @MAXOID int
    DECLARE @OwnerName varchar(128)
    DECLARE @ObjectName varchar(128)
    SET @user='abc\venkat'
    -- 2 - Create temporary table
    CREATE TABLE #StoredProcedures
    (OID int IDENTITY (1,1),
    StoredProcOwner varchar(128) NOT NULL,
    StoredProcName varchar(128) NOT NULL)
    -- 3 - Populate temporary table
    INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
    SELECT u.[Name], o.[Name]
    FROM dbo.sysobjects o
    INNER JOIN dbo.sysusers u
    ON o.uid = u.uid
    WHERE o.Type = 'P'
    AND o.[Name] NOT LIKE 'dt_%'
    -- 4 - Capture the @MAXOID value
    SELECT @MAXOID = MAX(OID) FROM #StoredProcedures
    -- 5 - WHILE loop
    WHILE @MAXOID > 0
    BEGIN
    -- 6 - Initialize the variables
    SELECT @OwnerName = StoredProcOwner,
    @ObjectName = StoredProcName
    FROM #StoredProcedures
    WHERE OID = @MAXOID
    -- 7 - Build the string
    SELECT @CMD1 = 'GRANT EXEC ON ' + '[' + @OwnerName + ']' + '.'
    + '[' + @ObjectName + ']' + ' TO ' + '[' + @user + ']'
    -- 8 - Execute the string
    -- SELECT @CMD1
    EXEC(@CMD1)
    -- 9 - Decrement @MAXOID
    SET @MAXOID = @MAXOID - 1
    END
    -- 10 - Drop the temporary table
    DROP TABLE #StoredProcedures
    --Prashanth

  • Database access in JSP?

    Can I easily access MS access using JSP? If it is, what kind of drive should be used to access the MS Access database?
    Thank you so much!

    <%!
    // define database parameters
    String host="localhost";
    String user="";
    String pass="";
    String db="";
    String conn;
    %>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user + "&password=" +
    pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    This is when accessing a database in a JSP, not a javabean... Try searching this forum, there are LOTS of topics about this.

  • Usage of GET - Basic LOGICAL database question

    Hi,
    I have a few doubts in Logical Databases.
    1.) Why should i include a logical database in a abap program.
    2.) Can i add more than 1 LDB to a abap program
    3.) can Nodes statement used on all nodes on LDB
    4.) Please provide a example program based on F1S LDB with small explanation.
    Thanks in advance,
    Bala.

    >
    Bala Shanmuga Priyan wrote:
    > Thank you all.
    >
    > What is the difference between tables and nodes statement,
    >
    > Thanks in advance,
    > Bala.
    AFAIK, it is expected that we should we the TABLES statement if the node type is a TABLE and if the node type is DDIC type then it is expected that we should use NODES statement, however I found that they can be used interchangeably.
    We can find the node type info in the structure defintion of the LDB(in SE36)
    Also check this extract from the SAP help
    The nodes of the structure are declared with the TABLES statement which generates
    the appropriate table work areas. You can also use the NODES statement to define
    database tables as nodes. If a node of a logical database is not a database table,
    you must use the NODES statement.
    [Example of a Logical Database |http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9be035c111d1829f0000e829fbfe/content.htm]

  • Reconstructing a string from a database retrieval

    What is the correct way to retrieve data such as a string from a database? If I inputing data to the database like this...
    std::string inputString = "hello world";
    data.data = &inputString;
    data.size = inputString.size();
    ret = dbp->put(dbp, NULL, &key, &data, DB_NOOVERWRITE);
    and retrieving it like this...
    ret = dbp->get(dbp, NULL, &key, &data, 0);
    what do I need to do with 'data' to recover my string?
    std::string outputString = ??????;
    Thanks in advance.

    I'm using c++, just didn't realize that there was a db_cxx.h. I still have the same problem though. Here is my test code...
    #include <sys/types.h>
    #include <stdio.h>
    #include <string.h>
    #include <db_cxx.h>
    #define DATABASE "access.db"
    int main()
         Db db(NULL,0);
         int ret;
         db.open(NULL, DATABASE, NULL, DB_BTREE, DB_CREATE, 0);
         std::string KEY = "THE KEY";
         std::string DATA = "THE DATA: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
         Dbt key(&KEY, KEY.length());
         Dbt dataIn(&DATA, DATA.length());
         if((ret = db.put(NULL, &key, &dataIn, DB_NOOVERWRITE)) != 0)
              db.err(ret, "DB->put");
         Dbt dataOut;
         if((ret = db.get(NULL, &key, &dataOut, 0)) != 0)
              db.err(ret, "DB->get");
         std::string outStr = *(std::string *)dataOut.get_data();
         std::cout << outStr.c_str() << std::endl;
         if((ret = db.close(0)) != 0)
              db.err(ret, "DB->close");
         return 0;
    If I run this twice, the first time through everything behaves as I believe it should. The database gets created and the output is "THE DATA: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z". However, the second time I run it, 'put' returns an error due to an existing identical key/data pair (as it should), but the string is just junk as if the pointer is not pointing to the correct memory location. Since 'put' returned the appropriate error message, I expect that the database is fine, and the problem is somewhere in the 'get' function or conversion back to a string. Any ideas?

Maybe you are looking for

  • HOW DO I PRINT WITH CALENDARS IN ORDER?

    help! i have multiple cals in my calendar. i would like them to print in the order i have them orgnized, when i print everything is not in the order they are in my cal. this is very frustraing, i need to see te same informatin in order every day acro

  • Limit the number of results from a querying a table

    I have a table, NAMES, that holds appx 50 names. I want to be able to list a certain amount of names and once that limit is reached( 6 or 7 or so), output a row / link / statement that says, you've reached your limit. For example the output would loo

  • Ipod nano 2g wont work

    afoter one or 2 years of not useing my ipod nano 2g did wont turn on it wont cennent to my computer or it wont reset. can someone HELP ME!!!! thanks.

  • Smart talk for business customer ?

    Hi, I'm wondering if you're planning to support smart talk app for business customers in the near future ? Alan

  • Objective Setings and appraisals

    Hi, We are implementing EHP4 performance management solution.In one of the requirement we want to use the BADI HRHAP00_LINK.But for cetain logic I want to get to know the object ID of the criterias defined in the backend at runtime. Could sombody ple