Removing udf in sql 2005 using sdk

Hi,
I am trying to delete a userdefined field thru SDK but it is not allowing me to do so in SQL Server 2005 database. The same code works in SQL Server 2000 database.
If oUserFieldsMD.GetByKey(TableName, FieldId) Then
   lRetCode = oUserFieldsMD.Remove()
      If lRetCode <> 0 Then
         oCompany.GetLastError(lRetCode, sErrMsg)
      End If
End If
The program execution stops/hangs at   
lRetCode = oUserFieldsMD.Remove() line.
Do i need to do anything differently for SQL 2005?
Thanks,
Jayakumar

hello Jayakumar,
Are you finding the record?
Check the error code on getbykey- remember it passes a boolean not an integer.
Make sure you have the correct field id.
Field id increments and does not decrement- I like to find the field id via a doquery and then pass it to the getbykey function.
HTH
JW

Similar Messages

  • Integrating MS SQL 2005  using DBAT Connector 9102

    Hi,
    I am trying to integrate MS SQL 2005 using DBAT Connector 9102 using GTC. My OIM version is 9102. Though the table exist in MS SQL still it is not able to find it.
    It is able to connect but throwing error that table "test" does not exist.
    I also tried to connect with small java program to test the connectivity
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              con = DriverManager.getConnection("jdbc:sqlserver://<IP>;instanceName=<instance>;portNumber=1433", "sa", "******");
              System.out.println("connect done");
              stmt = con.createStatement();
              ResultSet rset = stmt.executeQuery("SELECT * FROM test");
    It is throwing following error
    com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'test'.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:196)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1454)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:786)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:685)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1416)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:185)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:160)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:620)
    at TestingDB.main(TestingDB.java:33)
    I have also tired to put 1433 port in firewall exception list but same result.
    Any suggestion how to fix this issue?
    Regards,
    Sajid

    just try the appending the username in the sql query .., select * from sa.test
    - Double check that the table exist in the same schema which your are connecting
    Thanks
    Suren

  • Dump while acessing tables in sql 2005 using DB connect

    we have a sql 2000 as source system in place and now i created sql 2005 source system with DB connect.
    bw version 3.0.
    tables naming conventions are according to SAP.
    when i click the button to show tables in source system (sql server) , it is throwing a short dump while connecting to data base.
    I initially thought tahat something wrong with BW support pack , but my other sql connection is working perfectly fine.
    plz help.
    error in short dump
    Error analysis                                                                               
    <b>Only message types A, E, I, W, S and X are allowed.
    There is probably an error in the program          
    "RSDL_META_UPLOAD ".                               </b>
    <b>MESSAGE_TYPE_UNKNOWN" C                   
    RSDL_META_UPLOAD " or "RSDL_META_UPLOAD " 
    END-OF-SELECTION</b>"
    > points will be awarded for useful inputs..
    Message was edited by:
            aravind sam
    Message was edited by:
            aravind sam

    I am having the similar issue. I have DB connect to oracle schema, however, some of the tables I can view and access the data but others are throwing short dumps and following error:
    Event with errors RSDL_META_UPLOAD in DataSource
    I have applied support Pack 10 for BI. But this problem persist.
    Any IDEA.
    Thanks in Advance.
    Shaukat

  • How can i update/Remove Items from AR Invoice using SDK?

    Hi All,
    I have 1 problem with update or remove item from sales order. here is the source code of mine.
    If inv.GetByKey(DocumentNumber) = True Then
                        inv.CardCode = cardcode
                        Dim ercode As Integer
                        Dim ind As Integer = 1
                        For Each drow As DataGridViewRow In gv.Rows
                            If gv.Rows.Count = ind Then Exit For
                            ercode = drow.Cells("No").Value
                            inv.Lines.SetCurrentLine(ercode)
                            'inv.Lines.ItemCode = drow.Cells("itemcode").Value
                            'inv.Lines.ItemDescription = drow.Cells("itemname").Value
                            inv.Lines.Quantity = drow.Cells("qty").Value
                            inv.Lines.Price = drow.Cells("price").Value
                            ind = ind + 1
                        Next
                        errorcode = inv.Update
                        If errorcode <> 0 Then
                            PublicVariable.oCompany.GetLastError(errorcode, errorsms)
                        Else
                            errorcode = 0
                        End If
                    Else
                        errorsms = "Not found Invoice Document Number"
    End If
    After update, it error "[INV1.Quantity][line:1],'Field cannot be updated (ODBC -1029)'"
    Does anybody know about this?
    Thanks
    TONY

    Hi $riniva$ Rachumallu,
    This is my mistake that not test manually in application.
    Thanks
    TONY

  • Connect Non-SAP Oracle db (32bit) in sql 2005 (64 bit) using linked server

    Hi,
    I am connecting Oracle 10g database from SQL 2005 using linked server, in which i get the error
    "Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
    OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
    were not found. " (Microsoft SQL Server, Error: 7303)
    SAP Server with sql 2005 db is in 64 bit server / Windows 2003
    Non-SAP Oracle 10g is in 32 bit windows 2003 server.
    i have installed Oracle 64 bit client in the SAP Server and also copied the 64 bit version of dboraslib.dll to the DIR_LIBRARY path. I am able to view the oracle tables in the oracle client.
    But, when i create the linked server, it gives the above error.
    If i install 32 bit version of Oracle client in the SAP Server, i am able to create the linked server in the db level, but, it says "Work Process restarted, session terminated" message in the Z program in SAP.
    The same works in the test environment where both are 32 bit servers. problem is when SAP server is in 64 bit and non sap is in 32 bit.
    Please suggest.
    Thanks and Regards,
    Nagu

    "Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
    OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
    were not found. " (Microsoft SQL Server, Error: 7303)
    check the workprocess traces for errors (and/or SM21). It seems that the system is "not aware" that an Oracle client is installed.
    64bit programs can´t load 32bit libraries/DLLs that´s why the workprocess dumps when you use the 32bit client.
    Markus

  • Coldfusion connection to MS SQL 2005

    Please help with this issue if you have any suggestions. I am
    trying to establish a connection from my IIS server with ColdFusion
    to another local server with an MS SQL 9.0 database. I can connect
    to this database using Enterprise from another computer, but when I
    use the same username and password within ColdFusion I get the
    following error:
    Connection verification failed for data source: FORMS
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Login failed for user 'domain\coldfusion'. The
    user is not associated with a trusted SQL Server connection.
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user
    'domain\coldfusion'. The user is not associated with a trusted SQL
    Server connection.
    I have reinstalled ColdFusion with no errors and have also
    installed the MS JDBC driver for MS SQL 2005 but still get the same
    error.
    Thanks for any suggestions you might have.
    Craig

    If there is anyone else with this problem I have something
    that you may want to try. This did work for me and I'm able to
    connect to SQL 2005 using ODBC Socket. The IIS computer was using
    system credentials and not the ColdFusion credentials I had
    created.
    On the ColdFusion application server goto the Properties of
    CF's ODBC server and agent. Under LogOn change the LogOn
    information to the username and password you have set up for
    ColdFusion for both and restart these services. When setting up
    your ODBC Socket do not include username or password information.
    Hopefully CF8 will include Windows Authentication. Even with
    this workaround we may need to switch to mixed authentication on
    SQL which is not ideal.

  • Conecting to MSSql 2005 Using Flash

    I am very new to Flash and Web design in general. Is there an
    easy way to connect to MS Sql 2005 using Flash 9?

    You need to use a server side script to make the connection
    between the SWF and the database. Such languages like php, asp, and
    so forth. It will act as the middle man to transfer data back and
    forth.

  • I downloaded Mozilla 4 and tried to use it then, I had to delete it and go back to 3.6 vs now I am having problems with my MS SQL 2005 why? What was changed to enable Mozilla 4 to sync with MS SQL and how do I get it corrected?

    After, trying Mozilla 4 beta and then having to go back to a previous vs of Mozilla 3.6.11 my MS OLE DB Provider for SQL 2005 Server has this error message '80040E57' I am using Windows 7 which was pre-installed on my new computer. I do not know how to fix it?

    The latest flash player release is 11,0,1,152.
    Can you upgrade to this version and see whether the crash stil exists?
    Go to get.adobe.com/flashplayer to download and install flash player.
    In case you need direct link to installer/uninstaller, please go to http://forums.adobe.com/message/3952360#3952360 to find them.
    saranlee wrote:
    My computer crashes repeatedly and I get the message pages are not responding do you want to stop, and/or shockwave is not responding do you want to stop. I have Windows XP Service Pack 3, I am having the same issues whether I use Internet Explorer, Google Chrome, or Mozilla Firefox. My HP Pavilion Desktop has 504 MB of Ram and I am using high speed internet connection. Because it was crashing so much, I used the uninstall program for Flash player to uninstall Flash, I checked my registry and removed anything I saw that was Flash. I then uninstalled Google Chrome and Mozilla Firefox, then I reinstalled the most recent versions from their websites. I did the same for FlashPlayer and Shockwave Flash. I went to the Adobe website and had them check to see if it was working and it shows I have FlashPlayer 10.3.181.36. The page that shows  which version of flash player goes with Windows XP states that I should have 10.3.181.34 (This is what I thought I had before I updated, I was having the same problems). When I went into my computer to see what version I have, it shows 11.5.9.620 Activex and both Flash Player and Flash Player Object is listed as 10.3.181.34. My firewall for Windows is set to medium. I also am running Norton Internet Security. It takes anywhere from 3-6minutes for some of my games to load, and I have to refresh at least 3-4 times in order to play. When I do start to play it freezes frequently and I use escape to free it up. This has been going on for a month. I have no idea what to do. I am not very computer savy and I have been learning as I go.

  • ODI 10.1.3.4.0 - Topology Manager Connection Error using SQL 2005 SP3

    Hello All,
    I am using the ODI repository in SQL 2005 SP3. I could create my master repository using the following parameters:
    driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    URL:jdbc:microsoft:sqlserver://server_name:1433;SelectMethod=direct;DataBaseName=ODI
    I needed to copy to the drivers directory all files of SQL 2000 (msutil.jar, msbase.jar,mssqlserver.jar) and SQL 2005 (sqljdbc.jar). I am using the JRE 1.4.2 and JDBC 2005 1.2 (http://msdn.microsoft.com/en-us/library/ms378422(SQL.90).aspx)
    But when I try to connect in Topology Manager to create the work repository appears the following error:
    using this driver string: com.microsoft.jdbc.sqlserver.SQLServerDriver
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC] Can't start a cloned connection while in manual transaction mode.
    using this driver string: com.microsoft.sqlserver.jdbc.SQLServerDriver
    java.sql.SQLException: No suitable driver
    Does Somebody know what is happening?
    Regards,
    Wallace Galvao
    Sao Paulo - Brazil

    Hi,
    If you plan on using the SQL Server 2005 drivers then you only need the 1.2 sqljdbc.jar file in the drivers directory.
    The connection details for SQL Server 2005 should be like the following.
    com.microsoft.sqlserver.jdbc.SQLServerDriver
    jdbc:sqlserver://<sqls machine>:1433;databaseName=<db name>;integratedSecurity=false
    I would try just with just the correct driver in place, remove the others, restart any ODI components and then make sure the connection information is correct like above.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • TS430 Removing SQL 2005 Instance

    Hello,
    Our TS430 came with an instance of SQL 2005. Our CRM application installs SQL Server Express but will work with 2005 through a custom installation. Is it advisable to run both 2005 and Express 'side-by-side' or should I remove 2005 entirely and use Express exclusively on the macjhine?
    Best,
    Christopher

    Here is the summary Information
    Connector     IDBC
    ConnectorType     SQL
    DatePrefix     '
    DateSuffix     '
    Description     Illuminator test Database
    Enabled     true
    InitCommand     
    InternalDateFormat     yyyy-MM-dd HH:mm:ss
    JDBCDriver     com.microsoft.sqlserver.jdbc.SQLServerDriver
    Name     SQL_test
    PoolMax     100
    PoolSize     1
    ServerPackage     com.lighthammer.Illuminator.connectors.IDBC
    ServerURL     jdbc:sqlserver://Servername\Instancename:1433?:database=test_db&sql7=true
    Timeout     15
    UseCount     256
    UserName     User
    ValidationQuery     SELECT GETDATE()
    WaitTime     30
    And the error i get is
    Unable to create connection pool for SQL_test: Fatal error while filling connection pool for jdbc:sqlserver://Servername\Instancename:1433?:database=test_db&sql7=true
    Regards,
    A Prashant Kiran

  • Getting error "This file was removed" when trying to use sdk/test/httpd.

    Hi, I wish to test my website using httpd.js. Now when I am trying create a add-on and use sdk/test/httpd by adding following line
    var { nsHttpServer } = require("sdk/test/httpd");
    I am getting following error:
    Message: Error: This file was removed. A copy can be obtained from:
    https://github.com/mozilla/addon-sdk/blob/master/test/lib/httpd.js
    As new to Add on development I am unable to resolve this issue.
    Thanks in advance.

    Apologies for redirecting you to a different site, but this forum primarily handles end-user support. For extension development advice, please try here: [https://forums.mozilla.org/viewforum.php?f=7 Extension Development - Mozilla Add-ons Forum].

  • Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g

    Hi All,
    I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
    I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
    ORA-22992: cannot use LOB locators selected from remote tables
    Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
    Best Regards!
    Irfan

    Irfan,
    If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
    I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
    For the Ora-22992 problem have a look at this note in My Oracle Support -
    Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
    Regards,
    Mike

  • CF8 and connection pooling using MS SQL 2005 JDBC Driver

    After upgrading one of our production servers to CF8 we're
    getting errors under load while connecting to MS SQL 2000 data
    bases using the MS SQL 2005 JDBC 1.1 driver instead of the driver
    cf8 ships with. The following error is recorded in the logs:
    Error Executing Database Query. The TCP/IP connection to the
    host has failed. java.net.BindException: Address already in use:
    connect
    Confirmed by the database statistics, Coldfusion is no longer
    pooling the database connections. After changing the data source to
    use the build in driver everything works fine. We've been using
    this driver and CF7 for some time without this error.
    Is this a compatibility issue between the driver and Java 6?
    Or is there a conflict between this driver and the build in driver?
    Has anyone seen similar issues? We’d like to use this driver
    rather then the build in one.
    Thanks,
    Remy Becher

    thanks for the answer...I have been waiting for one..I do agree that connection ppooling is same ..but I would appreciate it if someone could point me to some example implemenations using MS JDBC type 4 driver..
    Thanks again..
    PS: I did search the forum before posting this..

  • Trying to use Linked Servers in SQL 2005 to connect to RDB 7

    I'm looking for detailed info on how to set up a linked server in SQL 2005 to connect to my Oracle RDB 7 database (running on VMS). I'm able to connect via odbc using VS.Net and Sql Server 2005 Reporting Services. I'm not sure if I need to use the ODP.NET or not. I have created a generic linked server, but it requires me to use the OpenQuery function to access the data, which is not giving me the functionality I'm looking for.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

  • Using Oracle from MS SQL 2005

    I am having a strange problem while running an SQL statement in MS SQL 2005 that uses a linked Oracle server. I am getting the following error:
    OLE DB provider "OraOLEDB.Oracle" for linked server "OG" returned message "ORA-01403: no data found".
    Msg 7346, Level 16, State 2, Line 1
    Cannot get the data of the row from the OLE DB provider "OraOLEDB.Oracle" for linked server "OG"
    I am getting the error on the following SQL statement (OG is the Oracle server):
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IH.AID, IH.NumOut, IH.DateOut, IH.WorkerOut, IH.NumIn, IH.DateIn, IH.WorkerIn,
    CC.CatID, CC.CatName, CC.BinItem, CC.Active, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemHistory AS IH ON Inv.AreaNo = IH.AreaNo AND Inv.CatType = IH.CatType AND Inv.CatNo = IH.CatNo AND
    Inv.ItemNo = IH.ItemNo
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0
    What's strange is that the following SQL statement works fine. The only difference between table ItemHistory (above) and ItemsOut (below) is that ItemHistory adds 3 columns that ItemsOut does not have. Other than that table the SQL statements are the same (as you can see).
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IO.AID, IO.NumOut, IO.DateOut, IO.WorkerOut, '1' AS NumIn, '1/1/1900' AS DateIn, '1' AS WorkerIn,
    CC.CatID, CC.CatName, CC.BinItem, CC.Active, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemsOut AS IO ON Inv.AreaNo = IO.AreaNo AND
    Inv.CatType = IO.CatType AND Inv.CatNo = IO.CatNo AND
    Inv.ItemNo = IO.ItemNo
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0
    As a test I tried just running an SQL statement against ItemsHistory and the Oracle table, thinking it might be something with ItemsHistory, but the following command also runs just fine:
    SELECT ItemHistory.*, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemHISTORY
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    I'm not sure why the one SQL statement is erroring out with ORA-01403. I see no problems with it, as it is the same as the one that works except using a different table, and another SQL statement using the table in the erroring SQL works also. I'm stumped!
    I am using the 'OraOLEDB.Oracle' provider in SQL 2005.
    Thanks for any help you can give on this...

    I've been testing it, and I've found that if I comment out 4 fields from the field list (all from the same table), it runs. As soon as I add any one of the 4 fields back into the select list, I get the Oracle error. I also found that I had to change the Oracle table from a LEFT JOIN to just a JOIN, or else I also get the Oracle error.
    Here is the SQL (same as the previous post) with the 4 fields commented out, and the modified JOIN. Maybe that will give someone an idea, because it has me puzzled...
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IO.AID, IO.NumOut, IO.DateOut, IO.WorkerOut, IO.NumIn, IO.DateIn, IO.WorkerIn,
    OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    --, CC.CatID, CC.CatName, CC.BinItem, CC.Active
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemHistory AS IO ON Inv.AreaNo = IO.AreaNo AND Inv.CatType = IO.CatType AND Inv.CatNo = IO.CatNo AND
    Inv.ItemNo = IO.ItemNo
    JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0

Maybe you are looking for