Accessing SQL Server jar for EP6 SP19/EP7 SP11

Hi,
I have application that accesses SQL Server and used to run in old portals (SP under 13) but doesn't run under new portals.
This is the driver I use:
<i>com.sap.portals.jdbc.sqlserver.SQLServerDriver</i>
I tried to include the following jars under the 'lib' folder - didn't help
P9base.jar, P9sqlserver.jar, P9util.jar
I get  "[SAP_Portals][SQLServer JDBC Driver]This driver is locked for use with embedded applications".
What jar/driver do I need to use in order to run applications that access SQL server in the new portals.
p.s
I don't want to define connection in VA. I want to use DIRECT connection.
Thanks,
Omri

Solved it on my own.
MS SQL Server 2000
jars: msbase.jar, msutil.jar, mssqlserver.jar 
jdbc:sqlserver://<host_name>:<port>;DatabaseName=<db_name> 
Driver name:  com.microsoft.jdbc.sqlserver.SQLServerDriver 
Omri

Similar Messages

  • Accessing Sql Server from AS400 Java program

    Hi everybody,
    I am trying to access Sql Server from an AS400 Java program. I have tried various Sql Server JDBC drivers including the Microsoft one but no luck yet. When i try to compile my Java program (with driver file in the classpath) it gives some errors on the driver jar file and also it throws out lots of unreadable text characters. This gave me a feeling that probably its a character coding issue with the jar file, so i tried ftp the file in binary mode as well as copying through the Operations Navigator. But still compilation is giving the same kind of errors.
    Do I need to have some special JDBC Drivers compiled for AS400 specifically. My understanding was that Java is platform independent so any JDBC Type 4 driver will work.
    We are running Java 1.3 on the AS400. Any help on this issue would be great.
    Thanks
    Inder

    Thanks for the help. I am writing a Java program after a long time that's why was making that mistake. Now the program gets compiled correctly but on running the program i am getting the following error message:
    java 001-0070: Exception JVAB544 not expected
    /myjava/test/msbase.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    /myjava/test/msutil.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    /myjava/test/mssqlserver.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    I have no idea what is this error about. Though the same driver files don't give any error when running on a Windows machine.
    Thanks

  • Accessing SQL Server from Oracle

    I found an article:
    http:www.databasejournal.com/features/oracle/article.php/3442661
    It shows how to setup a connection from Oracle to SQL Server.
    I am new to Oracle Using SQL Loader and PL/SQL.
    I would like to use the SQL Loader in Oracle to load a table in SQL Server. It is my understanding that a ctl file is used and is called by an Oracle application.
    I would not have an Oracle application. I would like to use the ctl file to load the SQL Server table. Can someone point me on how to use the ctl file for SQL Server?
    Also, in PL/SQL would there be a connection string to connect to SQL Server when accessing a table.
    Is there a book or some documentation that would address the above?
    Thanks in Advance.

    that article shows you how to access SQL Server database through Oracle, therefore you have no need to use SQL Loader to load data from SQL Server bcos it can be queried directly by using simple select statement.
    If you want to load the data into Oracle just use CREATE TABLE ... AS SELECT ...
    in PL/SQL, what you need is the database link.
    Cheers,
    NH

  • Accessing SQL Server form SAP

    HI,
    I want to get data on SQL Server from SAP.
    What is the procedure to do the above.
    Thanks.

    hi
    in the SAP HELP Content,followthe instructions for Tutorial 2: Accessing SQL Server
    <u><i><b>also take  alook at this presentation</b></i></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e81685c-0701-0010-0eb3-918c6d56783a
    Below: is the Tutorial 2 instructions.
    In this tutorial you will create a portal component that retrieves and displays information from an MS SQL Server database. Your portal component will display information from the Northwind Categories table in a SAP NetWeaver .NET Table control. You will create a dataset to fill with the data and bind the Table control to this dataset to display data.
    Note: using a dataset is one of the data access options, which is not always recommended. You will use a dataset in this tutorial for the simplicity.
    To complete this tutorial, you need:
    Access to a MS SQL Server with valid permissions for the Northwind sample database
    Access to a running portal
    A portal user account with administrator's permissions
    The tutorial is split into a number of smaller pieces:
    Section 1. Creating the SAP Portal Application project
    Section 2. Creating and configuring the dataset
    Section 3. Adding the SAP NetWeaver Table control and binding it to the data
    Section 4. Adding code to fill the dataset and display the data
    Section 5. Viewing the component in the portal
    Section 1.
    =========================================================
    Creating the SAP Portal Application Project
    On the File menu, point to New, and then click Project.
    1. In the New Project dialog box, do the following:
    (a)In the Project Types pane, choose Visual C# Projects or Visual Basic Projects.
    (b)In the Templates pane, choose SAP Portal Application.
    (c)Specify a different name and location, or accept defaults.
    (d)Click OK.
    A new SAP Portal Application project is created at the specified location. A new portal component named PortalComponent1.ascx is added to your project automatically.
    Section 2.
    =========================================================
    Creating and Configuring the Dataset
    Prior to creating a dataset, you need to create and configure the data connection and data adapter.
    To create the data connection and data adapter
    1. From the Data tab of the Toolbox, drag an SqlDataAdapter object onto your portal component form. Data Adapter Configuration Wizard will help you create both the connection and the adapter.
    2. In the wizard, do the following:
    2(a)In the Choose Your Data Connection pane, create or select an existing connection to the SQL Server Northwind database.
    Important: when you configure the database connection, select the option Use a specific user name and password for server logon information. If your password is not blank, select the Allow to save password checkbox, and then select to Include the password in the connection string, when prompted. Although this is not a recommended practice, we use it in this tutorial for simplicity.
    2(b) In the Choose a Query Type pane, select the Use SQL statements option.
    2(c) In the Generate the SQL Statements pane, create the following SQL statement:
    SELECT CategoryID, CategoryName, Description FROM Categories
    If you need to build a different SQL statement, click Query Builder to open the Query Builder dialog box.
    2(d) Click Finish.
    The wizard adds two objects to your portal component: the SqlConnection1 object containing the database connection information and the SqlDataAdapter1 object containing the data definition.
    To generate the dataset
    1. From the Data menu, choose Generate DataSet. The Generate Dataset dialog box opens.
    Tip: If you do not see the Data menu, click the form; the form must have focus for the menu to appear.
    2. Select the New option and name the dataset dsCategories.
    3. Select the Categories table in the Choose which table(s) to add to the dataset listbox.
    4. Select the Add this dataset to the designer checkbox and click OK.
    Visual Studio generates the new dsCategories dataset class and the dsCategories.xsd schema that is added to Solution Explorer. An instance of the new dataset class (dsCategories1) is then added to the form.
    Section 3.
    =========================================================
    Adding the SAP NetWeaver .NET Table and Binding It to The Data
    1. From the SAP NetWeaver tab of the Toolbox, drag a Table control onto the portal component.
    2. Right-click it to open the Properties box.
    3. Set the DataSource property to dsCategories1.
    4. Set the DataMember property to Categories.
    Section 4.
    =========================================================
    Adding Code to Fill the Dataset and Display the Data
    Although the table is bound to the dataset, the data is not displayed automatically. You must explicitly fill the dataset and bind the table to its data source.
    To fill the dataset and display data in the Table control
    1. Double-click the form to switch to Code Editor.
    2. In the Page_Load event handler, call the data adapter's Fill method, passing it the dataset you want to fill:
    [C#]
    sqlDataAdapter1.Fill(dsCategories1);
    [Visual Basic]
    sqlDataAdapter1.Fill(dsCategories1)
    3. Call the DataBind method of the Table control to bind it to the dataset:
    [C#]
    Table1.DataBind();
    [Visual Basic]
    Table1.DataBind()
    4. Save your project.
    Section 5.
    =========================================================
    Viewing the Component in the Portal
    Deploy the PAR to the current portal.
    In Solution Explorer, right-click the portal component and choose View in Portal.
    The table with the list of categories is displayed in the browser.
    regards
    navjot
    reward accordingly
    Message was edited by:
            navjot sharma

  • To Restrict SQL account from accessing Sql server via SSMS

    Hi All,
    We are planning to tighten the security of our SQL Server.
    In the initial phase, we want to restrict all the SQL accounts(except sa) from accessing SQL Server via SSMS
    Since the SQL passwords are used in the connection strings(plain text) of our .NET Applications, developers are able to see it and they are accessing SQL server through SSMS with the credentials in the connection string.
    The requirement is, SQL accounts should only be accessing the databases through .NET applications and not through any other applications like SSMS, SQLCMD...etc
    1) We tried "Logon Trigger", but later we came to know that there is security breach in it.
    2) Application Roles - Password is plain text, again back to square one.
    We are looking for an alternate. Please share some ideas.
    Thanks & Regards,
    K.P.Senthil Kumar

    The basic presumption here is that there is on way you can tie a connection to an application as such. There is app_name(), but since this is passed from the application, the application can call itself whatever you want.
    As long as it is only a matter of keeping business users out, you can solve the issue with some three-tiered solution. Either by having a true middle layer, or just having a web server, or the application running on Terminal Server or Citrix.
    But you want to keep the developers out who work with the code. That makes it difficult to lock them out of the middle layer.
    Then again, you say "our SQL Server" is that singular? Don't you have more than one SQL Server? One for developement, one for test and one for production? If you only want to keep the devs out from development, you have different usernames
    and password for different environments, and they are read from config files. The config files for production should be well-protected.
    By the way, only permitting sa from logging in from SSMS is bad idea. Rather, you should disable sa, and everyone should log in with their individual Windows account. And those who should perform system-administration tasks should be member of sysadmin.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Accessing SQL Server Express on Win 8 Single language pack machine

    Hi
    I have written a small windows app which is installed on multiple windows laptops in our house among our family members.
    The app requires a data base which is an SQL express 2012 Edition. We need to install this on our new DELL PC with Win 8 SIngle language Pack OS.
    My Query is I am not able to access the Database from our laptops. Looking for a solution.
    V.Gopalkrishnan

    Hi,
    First,please use Ping command to check the network connectivity.
    For the WIndows 8 PC,please check the follow service to ensure this service is start.
    SQL Server (MSSQLSERVER)
    Also,temporarily disable firewall and other security software to check if that helps
    If the issue still persists,please contact the app support or
    SQL SERVER forum for help.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • How to access Sql Server Express installed on Virtual PC from Host?

     
    I have SQL Server Express 2008 R2 installed on Virtual PC. and on my Host machine i have SQL Server 2008 R2 ( Enterprise Version) installed.
    Since Management studio that comes with SQL express does not support SQL profiler, i want to access SQL Server Express from the Host machine’s management studio which has SQL profiler.
    But I could access it using VM’s ip address & instance name

    Hi lax,
    Follow below steps in your Virtual Machine:
    1. Allow remote connections to this server
    The first thing you want to check is if Remote Connections are enabled on your SQL Server database. In SQL Server 2008 you do this by opening SQL Server 2008 Management Studio, connect to the server in question, right click the server and open the Server Properties.
    Navigate to Connections and ensure that Allow remote connections to this server is checked.
    2.  Protocols for MSSQLServer
    The next good thing to check is the SQL Server Network Configuration. Open the SQL Server Configuration Manager, unfold the node SQL Server Network Configuration and select Protocols for MSSQLServer (or whatever the name of your SQL Server instance is). Make
    sure that TCP/IP is enabled.
    3. The Firewall
    If there is still no communication happening between your computer and the remote SQL Server you most likely need to configure your firewall settings.
    A good first step is to figure out which port is being used by TCP/IP (and which you need to open in your firewall). You can do this by right clicking TCP/IP and selecting Properties. Click on the tab IP Addresses .
    That was easy enough and all there is left to do is to allow inbound TCP/IP traffic on Port 1433 in your firewall. In Windows 7 this works something like this. Open the Control Panel and navigate to Windows Firewall. Click on Advanced Settings on the left hand
    side and you should see the Windows Firewall with Advanced Security. Select the Inboud Rules on the left hand side and click on New Rule on the right hand side. This opens the New Inbound Rule Wizard which you can use to allow inbound traffic on Port 1433
    for TCP/IP.
    For more information, please refer to
    http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx.
    In host machine:
    After you have done steps above, you could use the SQL Server Management Studio in the host machine to connect the SQL Server Express R2 in Virtual PC. If you installed a default instance in Virtual PC, you could use VirtualComputerName to login the SQL
    Server database engine. If you installed a named instance in Virtual PC, you could use VirtualComputerName\InstanceName to login the SQL Server database engine.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Criystal Report XI で ACCESSを介したリンクテーブルでSQL Serverに接続できません

    Crystal Report XIの製品バージョン :11.0.0.1282
    以前にMicrosoft Access 2000のDBファイルにアクセスしていた接続先を
    テーブル構成はそのままでSQL Server(実際にはMSDE2000A)に変更したいと思っているのですが、
    エラーが発生し接続できません。
    変更方法はツールバーから 「データベース ファイル」-「データソースの保存場所の設定」で行っています。
    AccessのファイルにSQL Serverに接続されたリンクテーブルを用いた環境が、
    こちらとしては望ましいので、以下の接続を試みましたが、エラーになってしまいました。
    ・「データベース ファイル」からテーブル名と同じ名前のリンクテーブルが貼られたAccessファイルを
    指定して接続する。
    ・OLE DB (ADO)のMicrosoft OLE DB Provider for SQL Serverを使って接続する。
    ・OLE DB (ADO)を使ってudlファイルを介して接続する。
    【エラー内容】
    「問題が発生したため、crw32.exe を終了します。ご不便をおかけして申し訳ありません。」
    というWindowsエラーが発生し、アプリケーションエラーでクリスタルレポートファイルが落ちます。
    環境に問題があるのか、設定に問題があるのかわかりません。
    ご存じの方いらっしゃいますでしょうか?
    よろしくお願いいたします。
    Edited by: toyotoya on Apr 24, 2009 7:22 AM
    Edited by: toyotoya on Apr 24, 2009 7:23 AM
    Edited by: toyotoya on Apr 24, 2009 7:24 AM

    ご指摘ありがとうございます。
    理解しづらい内容で申し訳ありませんでした。
    >今までは、MDB に接続して利用していた?
    >これからは、SQL Server に接続して利用したい?
    ご指摘の通り、今までACCESSのDBを利用していて、
    今後SQL Serverに接続して利用したいと考えております。
    >リンクテーブルって何?
    リンクテーブルとは、ACCESSの機能で、他のDBにアクセスするために利用する機能です。
    >MDB ファイルにリンクテーブルが存在し、その先がSQL Server っていうこと・・
    その通りです。
    よろしくお願いいたします。

  • Entity Framework - Code First - Migration - How to access SQL Server and Oracle using the same context?

    Hello,
    I use Entity Framework code first approach.
    My project is working fine with SQL Server. But, I want to access Oracle too. I want to switch SQL Server and Oracle in run time.
    I am able to access Oracle using "Oracle.ManagedDataAccess.EntityFramework.dl" in a new project.
    But, Is this possible to access SQL Server and Oracle in the same project.
    Thanks,
    Murugan

    This should be possible with a Code-First workflow.  In Code-First the database mapping layer is generated at runtime.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • SharePoint 2013 SQL Server Edition for BI Features - must be on SharePoint SQL Server?

    I need to install SQL Server 2012 for a new SharePoint 2013 installation.
    Let's say I want to use the BI features of SharePoint 2013 like PowerView.
    I already have a separate SQL Server running SQL Server 2012 BI Edition that is used as the database server for our data warehouse and some apps.  But this SQL Server will not be used to house the SharePoint 2013 databases.
    Do I need to install SQL Server 2013 BI Edition on the SharePoint 2013 SQL Server (where the SharePoint 2013 databases will be housed) or can I used SQL Server 2013 Standard Edition on that server and utilize the BI Edition on the data warehouse server to
    use the BI features of SharePoint?

    Yes, BI or Enterprise must be installed on the SharePoint server in order to integrate SSRS. PowerPivot can be on a separate server with just a download (http://www.microsoft.com/en-us/download/details.aspx?id=35577) for certain components residing on
    the SharePoint server. This will give you PowerView, as well.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Is Distributed Transaction Coordinator services of the application role are required by SQL Server 2012 for clustering and support of SharePoint 2013.

    All I want to know is if Distributed Transaction Coordinator services of the application role are required by SQL Server 2012 for clustering and support of SharePoint 2013.
    I have been planning and deploying my companies first Windows Server 2012/SQL Server 2012 Always On cluster and Always On Availability Groups Multi-Subnet cluster and instances for SharePoint 2013, and I will be brutally honest, the documentation on either
    the MSDN and TechNet leave alot to be desired. Continually finding links in the documentation will take me from a Windows 2012 reference to a page talking about Windows Server 2008 or R2, The differences of which there are so many when it comes to configurations,
    settings, roles, services when working with SQL Server 2012. I have been confused, frustrated, screaming mad, with all the misdirection in this documentation.  The documentation takes me windows 2008 R2 which is different than 2012!
    Tired and trying to pick myself up off the floor!
    Greg
    Gman

    In general, DTC is not required for SQL 2012.  But, since you are asking specifically about SharePoint, it would be better to ask in a SharePoint forum.  They would be more likely to know those situations where FTC might be needed by SharePoint. 
    .:|:.:|:. tim

  • Does Microsoft have a SQL Server driver for Node.js

    I want to create a Mobile Backend with Node.js, and I was wondering whether Microsoft provided a SQL Server driver for Node.js. If not, what driver module should I use? 

    Hey James,
    Have you see this
    https://github.com/Azure/node-sqlserver
    or this
    https://www.npmjs.com/package/mssql ?
    Sounds like this is what you're looking for.

  • Oracle equivalent of SQL Server's "FOR XML" and "OPENXML"

    Hi
    Can someone please tell what are the Oracle's equivalent of SQL Server's "FOR XML" and "OPENXML" features?

    Probably you can try General XML forum General XML
    Gints Plivna
    http://www.gplivna.eu

  • Problem accessing Sql server Procedure from Crystal with JDBC driver

    I have some Crystal reports using SQL Server procedures, most of them are working very well; however, I have 2 that have problems accessing sql server procedures. These reports are working using OLE DB connection without problem, but when I try to relocate the connection to JDBC Crystal generates an error like that the procedure not return records.
    The procedure is working with other products including OLE DB connections from crystal.
    What can I do?
    Thanks in Advance,
    JaimeC

    I am using:
    Crystal report 11 - 11.0.0.1282 and Crystal 2008 = 12.0.0.683
    SQL Server 2005 -  Microsoft SQL Server Management Studio Express     9.00.4035.00
    Windows XP
    I have discovered that the procedures create and work  temporary tables. In other cases when is working ok, the procedures have not working temporary tables.
    Thanks,
    Jaime Carrillo

  • SQL server requirement for sharepoint 2013

    Hello All,
    currently i have installed SharePoint2013 in server farm mode, and i have used SQL Server 2008 R2 for DB. Can i use SQL Server 2012 for SharePoint 2013?
    Thanks

    SharePoint 2013 is compatible with SQL 2008 R2 and SQL 2012 so yes.
    What you can do is "move" the SharePoint DBs from SQL 2008 R2 to SQL 2012 without restore or backup.
    Link to msdn: https://technet.microsoft.com/en-us/library/cc512725(v=office.15).aspx
    Here you have an example for SharePoint 2010 (is the same for SharePoint 2013): http://www.codeproject.com/Articles/664029/Migrate-SharePoint-s-SQL-Server-to-another-SQL-Ser
    Here an different example: http://surya20p.blogspot.com.es/2013/09/migrate-sql-2008r2-sp2-to-sql-2012-sp1.html
    Best regards.

Maybe you are looking for

  • Call forwarding to wrong number

    I have call forwarding set to forward calls to my cell phone. In the past few days three or four calls have been transferred instead to my home phone, which is a big nuisance, because I'm in the US at the moment and, because of the time difference, t

  • Issue with Consolidate Action through Batch Process

    We find that when "Load" reports an error, "Consolidate" does not fire - only from Batch. When processing manually, Consolidate fires regardless of Load errors. We are using an Essbase load rule that results in records continuing to be loaded, when t

  • Lsgrp - list all members of a group

    lsgrp is a small and fast utility written in C that does just one thing: it lists the members of a group. It can be used in scripts that need to do something for each user in a group, such as setting up directories or generating per-user configuratio

  • Is this possible to select Path nodes....? - Please help!

    Hi Everyone! Is this possible to select Path nodes. Like below image. If I select more than one closed and apply Path operation like shapeOperation.SHAPEINTERSECT & combine path. Thanks in advance. Note: Select all nodes from path not a select path i

  • Apple Color changes shot numbers in a reconform?

    Hi all, I've been wrestling with sending a project between FCP and Color.  It's my first time out, so I had a few things on the timeline that may have been problematic.  At any rate, the "Send to FCP" has been failing, so I have been jettisoning pote