Can I use Same ADF application with SQL server 2008 as well as Oracle 11g?

Hi ,
I have created a application in ADF(Using J-Developer). I used SQL server 2008 as Database Provider. I have same Database in Oracle 11g. I want to connect my appliction to Oracle 11g database. I changed connection and connected to Oracle. But, when I tried to save or delete any data from front end, it gave error. Any solution on this?
Thanks

Hi,
I have created Entity object and View object for every page in my application. That objects created from sql server database. Application is working fine with sql server. But when connected with Oracle 11g. It is giving following errors:
On clicking search control it gives: ORA 00923 From keyword not found where expected.
On searching with perticular field it gives: ORA-01722: Invalid Number.
On Clicking save buttonit gives: ORA-00933: SQL command not properly ended.
These are error messages from IntegratedWebLogicServer-Log:
java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
<QueryCollection> <buildResultSet> [3929] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
Caused by: java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
<DCBindingContainer> <cacheException> [3947] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
<DCBindingContainer> <cacheException> [3948] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
<DCBindingContainer> <cacheException> [3949] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
<DCBindingContainer> <cacheException> [3950] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
<DCBindingContainer> <cacheException> [3951] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
<DCBindingContainer> <cacheException> [3952] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
<DCBindingContainer> <cacheException> [3953] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
<DCBindingContainer> <cacheException> [3954] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
java.lang.NullPointerException

Similar Messages

  • Commercial distributed application with SQL Server 2008 back-end

    Hi All, I am suffering some confusion and wondered if anyone could clear up a few questions for me.
    I am currently developing an application to be sold commercially, to be deployed locally on a customer's site. It is a client-server application and the server utilises an SQL Server 2008 back-end. Client applications however do connect directly to the SQL
    Server.
    We probably want to support about 100+ client applications. Each client application could feasibly be making several SQL query requests per second.
    Firstly, what are the licensing implications of this for the customer? I understand SQL Server 2008 can support 30000+ concurrent connections, but am I correct in thinking that each client application will require CALs? Or I understand there is a "processor
    licence"...
    Secondly, and I know this is quite a broad question, but can anyone offer a rough estimation of the processing/storage requirements for the server?
    Thanks in advance!

    Hi click,
    Usually, SQL Server is licensed through Microsoft Volume Licensing programs using two software licensing models, one is the Per Processor (Core-based) licensing model, another is Server plus Client Access License (Server+CAL) licensing model which is based
    on the users or devices accessing the product.
    Using the Per Core Licensing Model When running SQL Server in a physical operating system environment (OSE), all physical cores on the server must be licensed. When licensing SQL Server software under the Server+CAL model, customers purchase a server license
    for each server and a client access license (CAL) for each device (Device CAL) and/or user (User CAL) accessing SQL Server or any of its components.
    For more detailed information regarding to the license issue, please call 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. For international customers, please use the Guide
    to Worldwide Microsoft Licensing Sites to find contact information in your locations.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Can i use same apple id with 2 iphones

    can i use same apple id with 2 iphones

    Welcome to Apple Support Communities
    Of course. Furthermore, you should do this if both phones are yours, so all your content will get synced and you can use all your purchases in both iPhones

  • Integrating J2EE application with SQL Server Reporting Services

    Hello everybody,
    I want to integrate a J2EE application with SQL Server 2005 Reporting Services. In fact, it is the first time to be involved in developing an interoperability component between .Net web service and Java application. So I have learned for some time how to pass this challenge. Moreover, I found the following virtual lab is an excellent starting point "MSDN Virtual Lab: Implementing SQL Server Reporting Services with a Java Enterprise Edition (EE) Application" [http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032315323&EventCategory=3&culture=en-US&CountryCode=US]
    After going through the lab, I tried to apply the same code in my machine but I have stuck with the following error:
    {color:#ff0000}*; nested exception is:*
    org.xml.sax.SAXParseException: Premature end of file.
    {color}{color:#333333}I use the following tools:
    - Netbeans IDE 6.5
    - Java SDK: build 1.6.0_01-b06
    - Web Server: Apache Tomcat 6.0
    - axis Jars (axis.jar, axis-ant.jar, commons-discovery-0.2.jar, commons-logging-1.0.4.jar, jaxrpc.jar, log4j-1.2.8.jar, saaj.jar, wsdl4j-1.5.1.jar)
    - Reporting Tool: SQL Server 2005 Reporting Services
    I will be so grateful if someone help me. I am waiting your response
    this is a snippet of my code :
    {color}{color:#333333}
    package net;
    {color}{color:#333333}
    //import java.io.*;
    import com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingservices.*;
    import java.io.Serializable;
    * @author Abdullah Al Fararjeh
    public class NetData implements Serializable
    static String[] data;
    public NetData(){}
    public static String[] getData(String myURL, String searchStr)
    try{
    CatalogItem[] returnedItems;
    String folderName = "/";
    returnedItems = FindReports(folderName, myURL, searchStr);
    if(returnedItems != null && returnedItems.length > 0){
    int count = returnedItems.length;
    data = new String[count];
    for(int x = 0; x < returnedItems.length; x++){
    data[x] = returnedItems[x].getPath();
    else
    data = new String[] {"No Records Found"};
    return (data);
    catch(Exception e){
    System.out.println(e.getMessage());
    String[] s = new String[1];
    s[0] = e.getMessage();
    return (s);
    private static CatalogItem[] FindReports(String folderName, String serverUrl, String searchStr)
    try
    //CatalogItem find;
    ReportingService2005Locator loc = new ReportingService2005Locator();
    //retrieve a report from the service locator
    ReportingService2005Soap port = loc.getReportingService2005Soap(new java.net.URL(serverUrl));
    //set the HTTP Basic Authentication credintials using Stub object methods
    javax.xml.rpc.Stub stub = (javax.xml.rpc.Stub) port;
    stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, "abdullahPC\\abdullah");
    stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, "mypassword");
    //set up a search condition where the item name contains the specified search string
    SearchCondition condition = new SearchCondition();
    condition.setCondition(ConditionEnum.Contains);
    condition.setName("Name");
    if(searchStr != null)
    condition.setValue(searchStr);
    else
    condition.setValue("");
    //create an array of SearchCondition which will contain our single search condition
    SearchCondition[] conditions;
    conditions = new SearchCondition[1];
    conditions[0] = condition;
    //Call the web service with the appropriate parameters
    CatalogItem[] returnedItems;
    System.out.println("before port.findItems");
    returnedItems = port.findItems(folderName, BooleanOperatorEnum.Or, conditions);
    System.out.println("after port.findItems");
    return returnedItems;
    catch(Exception e){
    System.out.println(e.getMessage());
    return null;
    {color}
    Edited by: Abdullah on Feb 8, 2009 3:03 AM

    I also need to do this. Were you successful in getting this to work? Is it possible for you to share how you accomplished this?

  • How can I connect NetBeans 6.1 with SQL Server 2005?

    Hello guys...
    how can i connect NetBeans 6.1 with SQL Server 2005?
    there is no SQL Server in Server list when we create a new Web Project and choose Server.
    I'm new to NetBeans and this is my first time of posting.
    If has some errors and unwanted disturbing,pls understand me. Thanks.
    (If you have references or some snippets, i'll be glad if u can share.)
    scsfdev

    The JDBC-ODBC bridge wasn't recognizing any of the primary keys I had set up in SQL Server. After lots of head banging, here's the solution I came up with:
    1. Download the appropriate driver. SQL Server 2000 requires the SQL Server 2000 JDBC driver (http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en).
    SQL Server 2005 download: (http://www.microsoft.com/downloads/details.aspx?familyid=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en)
    3. After installing, right-click on "Libraries" in your project, and choose "Add Library...". Next, give it a name (i.e. SQLServer2000), and select "Class Libraries".
    4. On the next screen, find the JAR files (should be in C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\), and add them under the "Classpath" tab. It will now be available under "Libraries" for future projects.
    5. You can now create a connection to a specific database under the "Services" tab (next to "Projects" and "Files" in the top left of the screen). Select "Microsoft Sql Server 2000 (Microsoft Driver)" and format the "Database URL" like this:
    jdbc:microsoft:sqlserver//YOURSERVER:1433;DatabaseName=YOURDATABASE
    1433 is the default port, though your DBA may have changed it.
    I posted a simpler version of this on the NetBeans.org FAQ page - they had the following title with no content on the answer page:
    "Cannot Select Tables From MsSql 2000 Because It Says No Primary Key Next To Each Table But The Tables DO Have A Primary Key. What Do I Do?"

  • Connection pooling with SQL Server 2008 and Tomcat 6.0

    Hello Everybody,
    I'm creating a web application using struts 2.0 , tomcat 6.0 and sql server 2008.
    Everything works fine but i'm unable to create connection pooling with sql server 2008.Please help me to solve this issue.
    Code for this is as foolows:
    in my META-INF/context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/spas" docBase="spas"
    debug="5" reloadable="true" crossContext="true">
    <Resource
    name="jdbc/spas_new"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="20"
    maxIdle="10"
    maxWait="-1"
    user="spas_user"
    password="spas123"
    driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
    url="jdbc:sqlserver://HGL-0053\dbo:1433;databaseName=spas_new;responseBuffering=adaptive;"/>
    </Context>
    in my web.xml
    <resource-ref>
    <description>SQL Server Datasource</description>
    <res-ref-name>jdbc/spas_new</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    and in my ConnectionThread.java file i've used:
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Sorry! No Context Exception");
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/spas_new");
    System.out.println("ds:"+ds);
    conn=ds.getConnection();
    Following is the exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Login failed for user ''.)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at login.V_SPAS_ConnectionThread.getConnection(V_SPAS_ConnectionThread.java:87)
    at org.apache.jsp.login.v_005fspas_005flogin_005fpage_jsp._jspService(v_005fspas_005flogin_005fpage_jsp.java:95)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
    at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at login.V_SPAS_SecurityCheckFilter.doFilter(V_SPAS_SecurityCheckFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''.

    Hi Karthikeyan,
    This is not the issue at all. I can open the management studio by the same login id and password and also i can make the database jdbc connection from plain java file.
    It does not give me any problem by them.
    I'm unable to find the actual problem. May be i'm missing something in connection pooling.
    Please help.
    Regards
    Mina

  • DI Server with SQL Server 2008

    Hello.
    In the company where I work we develop an application that uses B1WS.
    In the development environment had the following characteristics:
    SAP Business One 2007 SP01, PL 09
    SQL Server 2005 Developer Edition
    Windows XP Professional SP 3
    SAP Business One Web Services 1.0
    At the time we applied to the deploying the SAP Business One version 8.8, but I had a serious problem. The test environment has the following characteristics:
    SQL Server 2008 Enterprise Edition
        SAP Busines One 8.8 * PL 10
    Windows Server 2008
    The problem is that when trying to connect to the DI Server generates the following messages:
    The TAO NT Naming Service has stopped. (WithOut DBUser and DBPassword)
    Unable to access SBO-Common database Login (With DBUser and DBPassword)
    I tested the connection directly to the DI Server disponbile by example in the SDK and it generates the same error. For the SAP interface is connected correctly.
    DI Server allows connect with SQL Server 2008?
    Messagge:
    <DatabaseServer>mv-05910a0046</DatabaseServer>
    <DatabaseName>Prueba</DatabaseName>
    <DatabaseType>dst_MSSQL2008</DatabaseType>
    <DatabaseUsername>sa</DatabaseUsername>
    <DatabasePassword>12345</DatabasePassword>
    <CompanyUsername>manager</CompanyUsername>
    <CompanyPassword>12345</CompanyPassword>
    <Language>ln_English</Language>
    <LicenseServer>mv-05910a0046:30000</LicenseServer>
    Thanks
    Edited by: Andres Naranjo on May 14, 2010 12:47 AM
    Edited by: Andres Naranjo on May 14, 2010 3:56 PM
    Edited by: Andres Naranjo on May 14, 2010 3:58 PM

    Had the same error
    'The TAO NT Naming Service has stopped.'
    Was using the external IP address for the LicenceServer - which is on the same server as SAP DIserver and B1WS.
    I changed to using localhost:30000 and that solved the issue.
    I suspect if I had used the internal IP it would have worked as well (ie the one you get from ipconfig) but as it works I'm not going to test that.
    HTH

  • ODBC function SQLDriverConnect() crashes with SQL Server 2008 R2

    When calling the SQLDriverConnect() function from a 64-bit process and selecting a system DSN with a SQL Server Native Client 10.0 ODBC driver with SQL Server 2008 R2 SP3, then this call crashes here:
         sqlncli10.dll!SNIMemRegion::Pop()  + 0x77 bytes    
         sqlncli10.dll!SNIPacketAllocateEx2()  + 0xa8 bytes    
         sqlncli10.dll!Np::ReadSync()  + 0x7e bytes    
         sqlncli10.dll!Ssl::HandshakeReadToken()  - 0x1b bytes    
         user32.dll!InternalDialogBox()  + 0x132 bytes    
         user32.dll!DialogBoxIndirectParamAorW()  + 0x56 bytes    
         user32.dll!DialogBoxParamW()  + 0x85 bytes    
         sqlncli10.dll!SQLDriverConnectW()  + 0x34f23 bytes    
         odbc32.dll!SQLInternalDriverConnectW()  + 0x17c bytes    
         odbc32.dll!SQLDriverConnectW()  + 0xa15b bytes
    Am I calling SQLDriverConnect() correctly (see below)? Or is this a bug in the 64-bit version of the ODBC driver?
    In the 32-bit version, everything works fine.
    Here is a test program:
    int _tmain(int argc, _TCHAR* argv[])
    SQLHENV hEnv = NULL;
    SQLHDBC hDbc = NULL;
    SQLRETURN ret = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &hEnv);
    assert(ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO);
    ret = SQLSetEnvAttr(hEnv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER) SQL_OV_ODBC3, 0);
    if (ret != SQL_SUCCESS && ret != SQL_SUCCESS_WITH_INFO)
    fprintf(stderr, "SQLSetEnvAttr failed\r\n");
    return EXIT_FAILURE;
    ret = SQLAllocHandle(SQL_HANDLE_DBC, hEnv, &hDbc);
    assert(ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO);
    SQLTCHAR szConnection[2048];
    SQLSMALLINT cbChars;
    ret = SQLDriverConnect(hDbc, ::GetDesktopWindow(), (SQLTCHAR*) _T(""), SQL_NTS,
    szConnection, _countof(szConnection)-1, &cbChars, SQL_DRIVER_PROMPT);
    if (ret != SQL_SUCCESS && ret != SQL_SUCCESS_WITH_INFO && ret != SQL_NO_DATA)
    fprintf(stderr, "SQLDriverConnect failed\r\n");
    return EXIT_FAILURE;
    else
    fprintf(stdout, "Success\r\n");
    return 0;
    The stdafx.h contains the following includes:
    #include "targetver.h"
    #include <stdio.h>
    #include <tchar.h>
    #include <Windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #include <assert.h>
    Steps to reproduce the crash: compile program with Visual Studio 2010 as 64-bit console application; run it and select a 64-bit SQL Server DSN.
    If the crash does not occur, try using the "AllocationPreference" registry entry set to 0x100000 (see https://msdn.microsoft.com/en-us/library/windows/hardware/Dn613975%28v=vs.85%29.aspx for details); don't forget to reboot Windows. This registry
    helps to find 64-bit portability issues.

    Hi T.holt,
    Personally, I don’t believe SQL 2008 R2 with ADMT 3.2 is supported.  From the guidelines of install the Active Directory Migration Tool (ADMT), ADMT v3.2 requires a preconfigured instance of SQL Server for its underlying data store. We
    should use SQL Server Express and install ADMT v3.2 on a member server. ADMT installation enforces the following service pack requirements:
    • SQL Server 2005 Express must be installed with Service Pack 3 (SP3) or later.
    • SQL Server 2008 Express must be installed with Service Pack 1 (SP1) or later.
    If you use full versions of SQL Server 2005 or SQL Server 2008. In this case, you need to install and run the ADMT console on a remote computer, and you can run multiple ADMT consoles on different remote computers. If
    you use a full version of SQL Server, ADMT installation does not enforce any service pack requirements.
    For more information about installing ADMT in the target domain, you can review the following article.http://technet.microsoft.com/en-us/library/cc974370(v=ws.10).aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Vb6,adodb with sql server 2008

    hi for i am new to vb6 with sql server 2008. I have managed to create database named : Tuscan77 in project folder with all the necessary tables with primary and foreign keys in tables. I have done the same project in vb6 with adodb with ms access and i have
    finished it. But now based on my boss orders i have to connect vb6 with adodb with sql server 2008.
    Now below is my code in mdi parent form in vb6 which i used to connect to database in access.:
    Dim i As Integer
    Dim AccessConnect As String
    Dim dBOOL As Boolean
    Dim dMstr As String
    If (Left(App.Path, 1) = "\") Then
    dMstr = Dir(App.Path & "tuscanDB.mdb")
    Else
    dMstr = Dir(App.Path & "\tuscanDB.mdb")
    End If
    dBOOL = IIf(dMstr = "", False, True)
    If (dBOOL) Then
    AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _
    "Dbq=tuscanDB.mdb;" & _
    "DefaultDir=" & App.Path & ";" & _
    "Uid=Admin;Pwd=;"
    If (adoDatabase.State <> 0) Then
    adoDatabase.Close
    End If
    adoDatabase.ConnectionString = AccessConnect
    adoDatabase.Open
    Else
    Dim mPath As String
    CommonDialog1.CancelError = True
    CommonDialog1.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNFileMustExist
    ' Set filters
    CommonDialog1.Filter = "All Files (*.*)|*.*|RTF (*.rtf)|*.rtf|Text Files (*.txt)|*.txt"
    ' Display the Save dialog box
    CommonDialog1.FileName = ""
    CommonDialog1.ShowOpen
    dMstr = Dir(CommonDialog1.FileName)
    mPath = Left(CommonDialog1.FileName, InStr(mPath, dMstr) - 2)
    If (CommonDialog1.CancelError = False) Then
    AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _
    "Dbq=" & dMstr & ";" & _
    "DefaultDir=" & mPath & ";" & _
    "Uid=Admin;Pwd=;"
    ' Connection Object Methods
    adoDatabase.ConnectionString = AccessConnect
    adoDatabase.Open
    End If
    End If
    where adoDatabase is name of my connection in vb6 with adodb with ms access.
    Now how i connect vb6,adodb with sql server 2008?
    Now my sql server 2008 details:
    Server type: Database Engine
    Server name:  NPD-4\SQLEXPRESS
    Authentication: Windows authentication
    User name: NPD-4\TUSCANO
    password:(it is left blank or not necessary)
    Database name: Tuscan77
    How to i connect my Database named Tuscan77 in vb6 and adodb.? Can anyone help me please.Any help or guidance would be greatly appreciated.

    Hi,
    It would be more appropriate to post all your vb6 related queries in the below forums.
    http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier
    http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming
    SRIRAM

  • DeadLocks on Query Notifications with SQL Server 2008 SP3

    Hello,
    according to this article https://support.microsoft.com/kb/975090 the issue with deadlocks on query notifications should be fixed with SQL Server 2008 SP3 (10.0.5500.0). But we still get deadlocks in the following manner:
    <resource-list>
    <keylock hobtid="72057598393909248" dbid="5" objectname="MyDB.sys.query_notification_1411013420" indexname="cidx" id="lock1731c1f00" mode="RangeX-X" associatedObjectId="72057598393909248">
    <owner-list>
    <owner id="process573dc8" mode="RangeX-X"/>
    </owner-list>
    <waiter-list>
    <waiter id="process58ddc8" mode="RangeS-U" requestType="wait"/>
    </waiter-list>
    </keylock>
    <keylock hobtid="72057598372872192" dbid="5" objectname="MyDB.sys.query_notification_253437289" indexname="cidx" id="lock800c8780" mode="RangeS-U" associatedObjectId="72057598372872192">
    <owner-list>
    <owner id="process58ddc8" mode="RangeS-U"/>
    </owner-list>
    <waiter-list>
    <waiter id="process573dc8" mode="RangeS-U" requestType="wait"/>
    </waiter-list>
    </keylock>
    </resource-list>
    Is there any need to install another fix?
    Thanks in Advance!

    Hello,
    SQL Server 2008 SP4 and all cumulative updates of SP3 do not have fixes related to deadlocks.
    Maybe the following workarounds and solutions can help in your scenario.
    http://stackoverflow.com/questions/3707137/understanding-deadlocks-with-sql-server-query-notifications
    Deadlock Prevention. In case you need to lock multiple conversation groups in a transaction, you need to take the same order to lock the different conversation groups in all transactions, otherwise you will have a deadlock issues.
    Source:
    http://blogs.msdn.com/b/kangmo/archive/2008/12/17/a-brief-guide-on-sql-server-service-broker.aspx
    Try to may transactions more simple and shorter.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Add does not run with sql server 2008

    Hi all,
    My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B.
    On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY"
    we are trying this scenario on a test machine where SAP B1 2007B with temporary license for one month and SQL server 2008
    is installed.
    Help needed.
    Thanking you
    Pradnya

    Hi Use this
    Dim i as integer
    i=oCompany.Connect()
    if i<> 0 Then
    msgbox(ocompany.GetLastErrorDescription ())
    end if
    the you will get the error description also use try catch wherever necessary
    Alternatively you can use
    Dim SboGuiApi As SAPbouiCOM.SboGuiApi
    Dim sConnectionString As String
    Set SboGuiApi = New SAPbouiCOM.SboGuiApi
    sConnectionString = Command
    SboGuiApi.Connect sConnectionString
    Set SBO_Application = SboGuiApi.GetApplication()
    Set ocompany = New SAPbobsCOM.Company 'initialate DI company object
      ocompany = SBO_Application.Company.GetDICompany
    HTH,
    Atul

  • IS ODI 10.1.3 compatible with SQL SERVER 2008?

    Hi All,
    Doews 10.1.3 work with sqlserver 2008? I have a sqljdbc4 driver listed in my driver folder, but I can't seem to get a connection when I am testing the connection.
    Thanks

    Don't forget that ODI 10g has a bug in predefined connection string for SQL Server, and you'll need to check\correct it. We use ODI with SQL Server 2008, and everything is ok.

  • BI 7.3 delta extraction with SQL Server 2008

    Hi experts,
    I'm trying to extract data with delta update from a SQL Server with UD Connect, i test this ways:
    Field DateTime in SQL Server: The problem is I only can delta within a day, no changes detected in the same day because SAP detects two fields here date and time, and can only can reference date field as a delta field.
    Field TimesTamp in SQL Server: The problem seems the same, SAP recognize this as a date and time field.
    Can any explain here the correct way for a delta implementation with SQL Server 2008? I would be very grateful.
    Regards,

    Hi Fernando
    That is what I need to do.
    Create a Model from an existing SQL Server database with the Import data Dictionary option , be able to modify tables structures, extended properties in the model, and then sync those changes with the database.
    So far I can't import the extended properties with DM 3.1.1. If you find a way , please let me know.
    Thanks,
    Jorge

  • Will Report Builder 2012 Work with SQL Server 2008???

    Simple question really
    Will Report Builder 2012 work in conjunction with SQL Server 2008???
    Is it worth while upgrading?
    The main reason i ask is the ability to export in an xlsx format
    Thanks

    Hi Gmach,
    The version of Report Builder on SQL Server Reporting Service (SSRS) 2012 is Report Builder 3.0. The Report Builder 3.0 manufactures 2010 RDL reports, so it only works with the version of SQL Server 2008 R2 or later. So in your scenario, we can no connect
    to SQL Server 2008 Server using Report Builder that on SSRS 2012.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • DM 3.1.1 with SQL Server 2008 . Extended Properties not imported .

    Hi
    I am using Data Modeler 3.1.1 with SQL Server 2008.
    I have a database where I have Extended Properties (MS_Description) for the tables and columns.
    I use the Import Data Dictionary option (database type SQL 2005) , and the extended properties are not being imported to the model.
    Is there anything else that I should do to have the descriptions imported?
    Regards,
    Jorge

    Hi Fernando
    That is what I need to do.
    Create a Model from an existing SQL Server database with the Import data Dictionary option , be able to modify tables structures, extended properties in the model, and then sync those changes with the database.
    So far I can't import the extended properties with DM 3.1.1. If you find a way , please let me know.
    Thanks,
    Jorge

Maybe you are looking for