Uable to update tables on database level

I am running following query which is not working properly:
create table #temp(
tableName nvarchar(50)
insert into #temp
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
DECLARE @name VARCHAR(50)
DECLARE @TQ VARCHAR(500)
DECLARE @ContainName VARCHAR(500)
DECLARE db_cursor CURSOR FOR
SELECT tableName
FROM #temp
OPEN db_cursor
FETCH NEXT FROM db_cursor INTO @name
WHILE @@FETCH_STATUS = 0
BEGIN
select @name IF COL_LENGTH(@name,'IsDeleted') IS NOT NULL
begin
IF COL_LENGTH(@name,'IsActive') IS NOT NULL
begin
exec ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]')
end
ELSE
BEGIN
exec('ALTER TABLE '+@name+' ADD IsActive bit')
exec ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]')
exec('ALTER TABLE '+@name+' ALTER COLUMN IsActive SET DEFAULT ''true''')
END
if exists(select * from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name)
begin
set @ContainName=(select o.name from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name)
exec('ALTER TABLE ' + @name + ' drop constraint ' + @ContainName)
end
exec('ALTER TABLE '+@name+' DROP COLUMN [IsDeleted]')
end
FETCH NEXT FROM db_cursor INTO @name
END
CLOSE db_cursor
DEALLOCATE db_cursor
drop table #temp
In most of the tables in my db there are two columns "IsActive" and "IsDeleted" with both of them having default key constraint and of type BIT I am trying to do following:
If column IsDeleted exist, copy its negative values of IsDeleted to IsActive.
If column IsDeleted exist but not IsActive, then create column IsActive, copy negative values of IsDeleted to IsActive, then add default key constraint to the column IsDeleted.
   3.  Finally remove the default value constraint from the column IsDeleted and then drop that column.
I am running above query for each table in db.The above query is running and giving the expected result i.e. copying negative values of IsDeleted to IsActive and dropping the column IsDeleted in all the tables. Only problem is that I am getting errror: "Incorrect
syntax near the keyword 'SET'."

Instead of EXEC, PRINT the SQL string and check for validity:
SET NOCOUNT ON
create table #temp(
tableName nvarchar(50)
insert into #temp
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
DECLARE @name VARCHAR(50)
DECLARE @TQ VARCHAR(500)
DECLARE @ContainName VARCHAR(500)
DECLARE db_cursor CURSOR FOR
SELECT tableName
FROM #temp
OPEN db_cursor
FETCH NEXT FROM db_cursor INTO @name
WHILE @@FETCH_STATUS = 0
BEGIN
select @name IF COL_LENGTH(@name,'IsDeleted') IS NOT NULL
begin
IF COL_LENGTH(@name,'IsActive') IS NOT NULL
begin
PRINT CONCAT ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]', SPACE(0))
end
ELSE
BEGIN
PRINT CONCAT ('ALTER TABLE '+@name+' ADD IsActive bit', SPACE(0))
PRINT CONCAT ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]', SPACE(0))
PRINT CONCAT ('ALTER TABLE '+@name+' ALTER COLUMN IsActive SET DEFAULT ''true''', SPACE(0))
END
if exists(select * from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name)
begin
set @ContainName=(select o.name from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name)
PRINT CONCAT ('ALTER TABLE ' + @name + ' drop constraint ' + @ContainName, SPACE(0))
end
PRINT CONCAT ('ALTER TABLE '+@name+' DROP COLUMN [IsDeleted]', SPACE(0))
end
FETCH NEXT FROM db_cursor INTO @name
END
CLOSE db_cursor
DEALLOCATE db_cursor
drop table #temp
Dynamic SQL: http://www.sqlusa.com/bestpractices/dynamicsql/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Similar Messages

  • Help with UPDATE table and database RELATIONSHIPS

    HI there, I have been trying to create an update table for
    weeks now and keep getting error messages.
    The database has a table named:
    "books" in the table cells are "idbook" and "book".
    "suppliers" in the table cells are "idsupplier" and
    "supplierName".
    "category" in the table cells are "idcategory" and
    categoryName"
    They all have a relationships with this table:
    "results" in the cells are "idbook", "idsupplier" and
    "idcategory".
    This "results" table brings all of the above tables together.
    When I try to do an update, i am doing one to the results
    table. Is this correct?
    The updates have problems because when drawing the text to
    the update table to view it comes in text form.
    When trying to update, it wont becuase all of the cells in
    the results table are numeric. This is because of the
    relationships.
    Can anyone suggest where i may be going wrong.
    Ask anything you need to.
    TA

    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    If (MM_editRedirectUrl <> "") Then
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    End If
    %>
    <%
    Dim Recordset1__MMColParam
    Recordset1__MMColParam = "1"
    If (Session("MM_UserName") <> "") Then
    Recordset1__MMColParam = Session("MM_UserName")
    End If
    %>
    <%
    Dim Recordset1
    Dim Recordset1_numRows
    Set Recordset1 = Server.CreateObject("ADODB.Recordset")
    Recordset1.ActiveConnection = MM_connSeek_STRING
    Recordset1.Source = "SELECT * FROM Query1 WHERE UserName = '"
    + Replace(Recordset1__MMColParam, "'", "''") + "'"
    Recordset1.CursorType = 0
    Recordset1.CursorLocation = 2
    Recordset1.LockType = 1
    Recordset1.Open()
    Recordset1_numRows = 0
    %>
    <%
    Dim rsUpdate
    Dim rsUpdate_numRows
    Set rsUpdate = Server.CreateObject("ADODB.Recordset")
    rsUpdate.ActiveConnection = MM_connSeek_STRING
    rsUpdate.Source = "SELECT * FROM tblSpecies"
    rsUpdate.CursorType = 0
    rsUpdate.CursorLocation = 2
    rsUpdate.LockType = 1
    rsUpdate.Open()
    rsUpdate_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
    %>
    <html>
    <head>
    <link href="css%20files/paragraph.css" rel="stylesheet"
    type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"
    marginwidth="0" marginheight="0"
    onLoad="MM_preloadImages('images/Publicationb.gif','images/Factsheetsb.gif')">
    <table width="100%" height="100%" border="1"
    cellpadding="0" cellspacing="0" bordercolor="#5D5D5D">
    <tr>
    <td colspan="2">
    <div align="right"></div>
    <div align="left"></div>
    </td>
    </tr>
    <tr>
    <td colspan="2"><table width="100%" height="100%"
    border="0" cellpadding="0" cellspacing="0"
    bordercolor="#5D5D5D">
    <tr>
    <td valign="top"><form
    ACTION="<%=MM_editAction%>" METHOD="POST" name="form1">
    <table width="90%" border="0" align="center"
    cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top"><div
    align="center"></div> <table border="1" align="center"
    cellpadding="2" cellspacing="0" bordercolor="#FFFFFF">
    <tr bgcolor="ECECD7">
    <td colspan="2"><div align="center">
    <p><strong><font size="3">Update Key Word
    &amp; Category</font></strong></p>
    </div>
    </td>
    </tr>
    <tr>
    <td><div align="center">
    <p><font size="1">Enter Up to 10 Species /
    Product
    Name</font></p>
    </div>
    </td>
    <td><div align="center">
    <p><font size="1">Select a
    Category</font></p>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2" bordercolor="#D0D09D">
    <%
    While ((Repeat1__numRows <> 0) AND (NOT
    Recordset1.EOF))
    %>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr><td width="50%"><div align="center">
    <input name="f1" type="text" id="f13"
    value="<%=(Recordset1.Fields.Item("TimberSpecies").Value)%>"
    size="33">
    </div></td>
    <td width="45%"><div
    align="center"></div></td></tr></table>
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    Recordset1.MoveNext()
    Wend %>
    <div align="center"> </div> <div
    align="center">
    </div></td></tr><tr>td
    colspan="2"> </td></tr><tr><td
    colspan="2"><div align="right"><p><font
    size="1">To Finalise Your Changes Please Press the Update
    Button      
    <input name="update2" type="submit" id="update"
    value="Update">
    <input type="hidden" name="MM_update" value="form1">
    <input type="hidden" name="MM_recordId" value="<%=
    rsUpdate.Fields.Item("TimberSpecies").Value %>">

  • Error while updating table in database.

    Hi,
    While updating a table I came across following error-
    ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'
    I have following undo parameters set in my parameter file-
    undo_management=auto
    undo_tablespace=UNDOTBS1
    If I have seperate undo tablespace then why Oracle is trying to use System undo segments?
    Thanks,

    Let's assume your settings are correct. However the error means you don't have an UNDO tablespace available. It could be because your tablespace doesn't exist, or you think you have started up your instance with this initialization parameter file.
    You should make sure you have your undo tablespace attached to your database, and you are using your correct initialization file.
    Have you edited this parameter in your pfile? Or have you configured this parameter in you spfile?
    Issue a query against v$rollname, you should see something simmilar to this:
    SQL> SELECT * FROM V$ROLLNAME;
    USN NAME
    0 SYSTEM
    1 _SYSSMU1$
    2 _SYSSMU2$
    3 _SYSSMU3$
    4 _SYSSMU4$
    5 _SYSSMU5$
    6 _SYSSMU6$
    7 _SYSSMU7$
    8 _SYSSMU8$
    9 _SYSSMU9$
    10 _SYSSMU10$
    If you can't then definitely you are not starting up your database with undo segments.

  • Automatically update table when database make any changes

    Hi Experts,
    I want to create one table in the database that table
    but values get inserted into that table automatically when the database make any changes (i.e if you insert/update/delete any values in any table in the database)
    how should i create this type of table into my oracle database
    please give me some script to create it
    reg,
    jel

    Why not simply enable audit? Then you can query SYS.AUD table to track inserts/updates/deletes and even selects. Other than that, you would have to create a trigger on every existing and newly created table.
    SY.

  • Create new rows or update rows in database table

    I have few table in database.
    I catch some values in my bean. Now I must put that values in my database tables. Values are in different tables.
    How can I update tables in database? Ok I know that my solution is updateable (entity) viewObject but please ... some example or description are welcome!
    Thx.
    Message was edited by:
    sinnerman

    Hi Frank. I read developer guide but this is detail and if you can help ... thanx in advance.
    I put code ... in my bean ... I need to insert row in table and commit. Please if you can answer me what`s wrong?
    code:
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    //Find corresponding object where variable "bindings" reside
    DCBindingContainer binding =
    (DCBindingContainer)app.getVariableResolver().resolveVariable(fc,
    "bindings");
    //Find the data control by name from the binding container
    DCDataControl dcCtl =
    binding.findDataControl("TMFStudServiceDataControl");
    //Retreive application module
    TMFStudServiceImpl am =
    (TMFStudServiceImpl)dcCtl.getApplicationModule();
    ViewObject vo = am.getGetIdStudentAnketaPitanje();
    ViewObject studentAnketaOdgovor = am.getStudentAnketaOdgovor();
    while (j < my_list.size()) {
    t = (Object)lista.get(j);
    System.out.println("IdOdgovora: " + t.toString());
    vo.setNamedWhereClauseParam("p_id_odgovora", t.toString());
    vo.executeQuery();
    Row currRow = vo.next();
    System.out.println("IdStudentAnketaPitanje: +currRow.getAttribute("IdStudentAnketaPitanje"));
    //am.insertStudentAnketaOdgovor();
    Row newStudentAnketaOdgovor = studentAnketaOdgovor.createRow();
    studentAnketaOdgovor.last();
    studentAnketaOdgovor.next();
    newStudentAnketaOdgovor.setAttribute("IdStudentAnketaPitanje", 1);
    newStudentAnketaOdgovor.setAttribute("IdOdgovor", 2);
    studentAnketaOdgovor.insertRow(newStudentAnketaOdgovor);
    am.getDBTransaction().commit();
    }

  • Updates to the table from the database level.

    Hi Dear All,
    If we do some updates to the table at the Database Level, like i deleted some records from the table at the Oracle level. But I'm still able to see the same deleted records from the Data Dictionary(SE11) at the application level.
    Can you pl explain the mechanism, that how it is possible and why.
    best regards
    Mahesh

    transparent tables store data directly....if you delete some data from transparent tables, the same is reflected in the database (oracle) but the reverse is not true...if you modify the database table contents directly...the dictionary table remains intact...
    transparent tables have a one-to-one relationship with the database tables....
    hope that clarifies a bit....
    (somebody correct me if i am horribly wrong)

  • How To Find Out Table Name At Database Level Trigger

    Table Name
    How do I will come to know the name of table on which currently DML statement is fired ?
    e. g. My current user is SCOTT. So Scott should realize the event of DML Statement fired. Hence my question is how the trigger on User Level is to be written & how to catch the event & table name on which the statement is being executed.
    Suppose my table is as follows
    Table Name : EMP
    EMPNO number
    ENAME varchar2(10)
    JOB varchar2(9)
    MGR number
    HIREDATE date
    SAL number
    COMM number
    DEPTNO number
    Bcd number
    Brcd number
    Rec_id number
    Scn_no number
    Sequences for above table
    1. EMP_REC_ID - minimum value is 1 increment by 1 & max value is unlimited
    2. EMP_SCN_NO - minimum value is 1 increment by 1 & max value is unlimited
    I have written a trigger as follows :
    CREATE OR REPLACE TRIGGER UPD_EMP_REC_SCN BEFORE INSERT OR UPDATE OR DELETE ON EMP REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
    DECLARE
    BEGIN
    IF (INSERTING) THEN
    SELECT EMP_REC_ID.NEXTVAL INTO :NEW.REC_ID FROM DUAL;
    ELSIF (UPDATING) THEN
    SELECT EMP_SCN_NO.NEXTVAL INTO :NEW.SCN_NO FROM DUAL;
    ELSIF (DELETING) THEN
    INSERT INTO DELETED_ROWS (TAB_NAME, BCD, BRCD, REC_ID)
    VALUES (‘EMP’, :OLD.BCD, :OLD.BRCD, :OLD.REC_ID);
    END IF;
    END;
    Hence My problem is
    If my database user contains 800 tables then I have to write down 800 triggers (i.e. for each table).
    I want to write only one trigger at database level so that I can dynamically take actions, for this I need table name and the event on which the dml event has taken place.
    Any help in this matter will be greatly appreceiated.
    Regards
    Vikrant

    You cannot write a single trigger that applies to multiple tables. If you need a trigger for every table, you will need to generate 800 triggers.
    Rather than manually generating 800 triggers, you might write a code generator that generates triggers for each of the tables by querying the data dictionary (i.e. DBA_TABLES, DBA_TAB_COLS, etc).
    Justin

  • Table does not refresh after database level action

    We have defined an Advanced table on a VO to represent invoice lines. The VO is referenced by a VL from the invoice header.
    At one point during our process, a database level package is executed on the current lines. We have a "Requery" button to refresh the lines, however, the lines do not refresh unless we exit the invoice entirely and come back to it via the VL.
    How can we refresh the lines on a current table after a database level transaction occurs?
    Thanks, Jerry.
    Our AM code is as follows...
    // handleRefreshInvoiceLines( )
    public void handleRefreshInvoiceLines()
    OAViewObject vo = (OAViewObject)getInvoiceLinesVO1( );
    if( !vo.isPreparedForExecution( ) )
    getTransaction( ).validate();
    vo.executeQuery( );
    clearVOCaches( "InvoiceLinesEO", true ); // troubleshooting
    } // handleRefreshInvoiceLines()

    Thank you. I've moved clearCache around a bit. apparently vo.isPreparedForExecution() is false. I wonder why?
    --Jerry.                                                                                                                                                                                                                                                   

  • Updating values in database table through Transaction

    Hi,
    Actually We have one transaction named EWAWA01. In that when we display the values from the transaction, there is a netweight field. The transaction displaying netweight values, but that value is not updated in the database table named EWA_WA_WEIGHPROC. How can i update that netweight value in the table.

    data:v_v_EWA_WA_WEIGHPROC type  (v_EWA_WA_WEIGHPROC lenth) c.
    decleare the data in charter type.
    after pass the data charter type.
    v_EWA_WA_WEIGHPROC = EWA_WA_WEIGHPROC
    update db.

  • Efficient way of updating data to database table

    what is the efficient way of updating data to database table  .
    i have huge amount of data in my internal table  , how to use update statement in this case .
    1. database table having 20 fields  ,
    2. one is key field and suppose 20 th field i want to change  .
    3. I have data for only 2 fields , i.e for ( 1 st and last 20 th field ) .
    i can't use update statement in loop , as it is not good practice(hits database several times ) .
    do it effects all the 20 fields for  particular record .

    Hi,
    Use UPDATE statement , check below description from SAP help.
    UPDATE dbtab FROM TABLE itab. or UPDATE (dbtabname) FROM TABLE itab.
    Effect
    Mass update of several lines in a database table.Here, the primary key for identifying the lines tobe updated and the values to be changed are taken from the lines of theinternal table itab. 
    The system field SY-DBCNT contains the number of updated lines,i.e. the number of lines in the internal table itab which havekey values corresponding to lines in the database table.
    Regards
    L Appana

  • Insert and update tables from SQL server to oracle database tables

    Hi,
    I am having problem while update data from sql server to oracle database tables.
    I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
    I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
    Thanks in advance.

    Hi,
    What about using Oracle SQL Developer for migration
    http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
    HTH

  • User defined tables:  amending Index on the database level. Opinions???

    Hi everybody who has some spare time to read my stuff
    I had a problem that some of you might have had. I have a user defined table, let’s call it ProductTypes. Now system by default creates two columns in this table, one is Code (primary key) and another is Name (Index). I have added third column called Department. Now, if I wanted to add the following data (see bellow) to the table I would have had a constraint violation message pointing me out that I have problems with indexing.
    Code, Name, Department
    1, Cream, Fragrances
    2, Cream, Beauty Products
          ^^
    I could thing of couple workarounds of this problem
    1. Is to duplicate Code into Name and storing rest of the data using user columns
    Code, Name, Product Name, Department
    1, 1,Cream, Fragrances
    2, 2, Cream, Beauty Products
    This approach isn’t very convenient as it requires UI development should we decide to attach this table to the Item master data form in a form of combo box.
    2. Is to amend Index on the database level. Initially, the index KProductTypes_Name consisted of only one column Name, what I have done is added another column which is Code to indexing. I don’t see how this can harm database consistency or damage the core system.  Please correct me if I am wrong.
    Another way of amending index in order to solve my problem could be choosing ignoring duplicate values option for column Name.
    Please let me know what are your thoughts.
    Best wishes

    > Why don't you try adding a trigger 'instead of
    > insert' where code = max(code)1 and name=max(name)1
    > and use only user columns for your data. This
    > provided you know SQL basics.
    in this scenario we would have to do UI SDK development for the output and going to have an extra column with meaningless data in it.

  • Updating tables in external database

    Is there a way to update tables in an external database using an HTML-DB process?
    I want to make my "Apply Changes" button process script update an external table in database x.
    Example:
    update x.tracking_locations@x
    set location = :P7_LOCATION,
    description = :P7_DESCRIPTION,
    IN_USE = :P7_IN_USE
    where tracking_location_num = :P7_TRACKING_LOCATION_NUM;
    I get the following error:
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from x
    None of these columns is type long! (they're varchar2)
    Both databases are 9iR2.
    I had a similar problem INSERTING the data (CREATE button) which I got around by posting to a table in my HTML-DB schema, inserting into the database x table as select from the HTML_DB table then deleting from the HTML-DB table all within the "on submit" process script.
    example:
    insert into tracking_locations
    (DESCRIPTION, LOCATION,IN_USE)
    values(:P7_DESCRIPTION,:P7_LOCATION,:P7_IN_USE);
    insert into x.tracking_locations@x
    (DESCRIPTION, LOCATION,IN_USE)
    select description, location, 'Y' from tracking_locations;
    delete from tracking_locations;
    This INSERT trick works, but seems like it should be easier! Nevertheless, I can't get updates to work.
    Any ideas?

    hey tony--
    neat issue. i just reproduced it on our development box and will log it in a minute. for now, though, an easier way to get around it would be to assign the values from your page items to local variables declared in your update procedure and use those local vars for your update. so instead of...
    update x.tracking_locations@x
    set location = :P7_LOCATION,
    description = :P7_DESCRIPTION,
    IN_USE = :P7_IN_USE
    where tracking_location_num = :P7_TRACKING_LOCATION_NUM;
    ...you could set it up like so...
    declare
    l_location varchar2(200) default :P7_LOCATION;
    l_description varchar2(200) default :P7_DESCRIPTION;
    l_in_use default :P7_IN_USE;
    begin
    update x.tracking_locations@x
    set location = l_location,
    description = l_description,
    in_use = l_in_use
    where tracking_location_num = :P7_TRACKING_LOCATION_NUM;
    end;
    ...and things should work fine. i'm also pretty sure that you could avoid having to declare the local variables if you referred to your items in your update statement using the v('ITEM_NAME') syntax, but you'd have to have global_names set to true and it might not be as performant a workaround.
    hope this helps,
    raj

  • How to find for ex : kunnr is updating how many database tables

    Hi all
    How to find for ex : kunnr is updating how many database tables .
    Rgds
    Rafi .

    hi rafi
    go to se15->abap dictionary->fields->table fields-> give kunnr at  field name text box->press f8.
    then it will show ,in how many tables the kunnr field exist.the kunnr field updates those tables.
    don't forget reward points.
    kiran

  • Updating table of non-sap Database

    Dear All,
                  I want to transfer data from Ztable to  non-SAP database table. Is it possible to do it.
    If yes, Plz suggest ...........
    Regards,
    Gulrez

    Hi.
    >
    Gulrez Alam wrote:
    >      I have to update a Mysql Database  table (non-SAP ) from ztable.. Actually have done like this for Oracle table(non-SAP)  table.
    >
    > Actually in table dbcon there is field DBMS in that there are entriey for Oracle, Microsoft SQL and other DB , but no entry for Mysql Database.
    Looks like you haved use multiconnect for this task in the past. At the moment only databases that are supported as a main database can be accessed using this technique. So you cannot have an entry for a mysql database in the dbcon table. Sorry for that but that is the current status. You will have to use a different approach.
    Best regards,
    Jan Stallkamp

Maybe you are looking for

  • Clean up data in AP ???

    Hi Experts Please guide me in figuring out How to clean up the data in Configuration system in terms of  Accounts Payable Invoicing and Payment Processing standpoint? Before starting the testing in Config system we have to do the cleaning. Can anyone

  • Bug in my Illustrator or preference setting?

    Yesterday some saved pdfs from Illustrator CS5 started to not preview correctly--in Preview or Adobe Acrobat.      After testing it I've found if I make a change to a pdf and hit save, it no longer previews to show the full artboard size; it shows a

  • Problem Installing/Running Ovi Maps Plugin

    Hi everyone, I seem to be having a small problem with Ovi Maps 3.0 which I'm hoping somoene can help with. Probably an obvious solution to my problem but I can't seem to get the Ovi Maps plugin to install/run. When I try to install nothing happens. I

  • Java Add-In Route

    Hello to all: I'm newby, and I want to dowload de Java Add-In from the sap marketplace but I don't find it, can someones tell me the route for find it and download. Download -> Installation and Upgrades -> Entry by Application Group -> SAP Netweaver

  • N95 - significance of software versions?

    I have 2 N95 handsets, one purchased in UK as an upgrade, one purchased abroad. The have different firmware: non-UK phone: V 12.0.013 19-06-07 UK phone: V 11.0.026 17-04-07 Now going to the Nokia site and entering the phone model nos. it says for eac