Database connection to SQL server using ABAP program
Hi all,
What do we need to enter in the con_env feild of dbcon table for connecting to the SQL databse
I have entered the following string dbname=SAP_DB user=sap password=sap host=145.17.60.87 port=1433
Is it correct ?
DATA: tbr(50) type c.
EXEC SQL.
CONNECT TO 'SQLDB'
ENDEXEC.
IF SY-SUBRC NE 0.
message s000(zf) with 'Imposible conectar a SQLDB'.
ENDIF.
EXEC SQL.
SET CONNECTION 'SQLDB'
ENDEXEC.
EXEC SQL PERFORMING LOOP_OUTPUT.
SELECT T_DES
INTO :tbr
FROM data_table
ENDEXEC.
FORM LOOP_OUTPUT.
write: / tbr.
ENDFORM.
where data_table is the database table name
also i think i will have to create a table in ABAP dictionary with the same structure as data_table but that table will start from 'Z'.
kindly help
Hi Sunil,
I am working on this same problem. What was the solution you used?
Thanks
Shane
Similar Messages
-
How do i connect to sql server using java?
hi ever body
i need to connect to sql server using java
what is the driver i will use?
thanksMicrosoft make a jdbc driver and it is readily available through MSDN. Here is a link http://msdn2.microsoft.com/en-us/data/aa937724.aspx. Whatever jdbc driver you are looking for, Google it, and if it exists you'll find it in 10 seconds.
-
Steps to change universe database connection from SQL server to Oracle 10
Hi,
we are moving from sql server to Oracle 10.Please let me know the steps and various parameters I should consider while changing universe database connection from SQL server to Oracle 10.
Following are the steps which I assumed :
1. create a new Oracle database connection or edit the existing connection to point to Oracle server
2. Need to check sql for each object, having integrity check for universe will solve the purpose of parsing each object
3. Exporting the universe after integrity check
4. Report data testing
Let me know if I miss on any steps.Also what all factors I need to consider while moving to Oracle for eg: what @ custom sql,what @ table names,what @ LOV etc.
Kindly replyThanks Abhijeet and Shreyash,
I will follow the steps you have suggested.
Actually I was searching for this on net and got to know that with Oracle database connection,theres lot of stuff needs to take care of in terms of custom sql and LOV and in our case,we have lot of custom sql for each object in the universe so just wanted to confirm.
I will do the changes and let you guys know in case theres any isuue specifically to Oracle. -
Connection with SQL Server using DBCO
Hi,
I want to connect to Misrosoft SQL Server using DBCO transaction. I have given the following fields.
DB Connection = test
DBMS = MSS
User Name = user02
password = test
Conn. info = MSSQL_SERVER=tcp:10.100.50.36 MSSQL_DBNAME=New_Wisdom
permanent selected
Connection Limit = 5
Optimum Conns = 2
while executing through the statement as follows,
EXEC SQL.
CONNECT :'TEST'
ENDEXEC.
I am getting the dump ' An SQL error occurred when executing Native SQL.
The error 900 occurred in the current database connection "DEFAULT".' Please suggest me what needs to be added or corrected.Hi Benito.
I'm not very familiar with MSS but maybe the following will help a little bit.
Depending on the version of your SAP system you can use the transaction DBACOCKPIT to add connections to non-SAP databases. There is an test connection button in that transaction, too. You will find some information about that transaction in some whitepapers here in the SDN. For example have a look at this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1062428c-f1df-2910-b08f-c322feddcd10
ADBC error 16 is just "something went wrong". Is your SAP system using MSS, too? If not you will need the matching DBSL for it on your SAP system.
If you have set up an connection you can use program ADBC_TEST_CONNECTION to check if everything is ok. If I remember it correctly in case of errors it allows you to jump into the trace file. There you should find some usefull information.
Perhaps asking in the Database&OS forum area (there is a MSS forum) might help, too.
Best regards,
Jan -
Database Connection in SQL Server 2000
Hi All!
I would like to ask your expertise regarding JDBC-MS SQL Server 2000.
I have here a sample code in connecting to SQL Server 2000, AgriMrpPrd Database using the account "sa" and the password "092802". I have tried running the code in my local server at home and It successfully runs, but when I tried running it on my local server in the office, I was not able to create a connection object though I already have changed the HOST, PORT, DATABASE, USERNAME, and PASSWORD values.
I have tried logging in using my local account, removed the LAN connection, start my local server and tried connecting to it but still it does not work.
I have tried turning the firewall OFF and try reconnecting but it there was no improvement.
I do not know if there is a difference if there is my computer is on a DOMAIN (althought I am only connecting to my local server).
Source Code:
import javax.swing.*;
import java.sql.*;
import com.microsoft.jdbc.sqlserver.*;
public class SQLServerConnection{
public String un, pw, db, host, port, url, driver;
public Connection conn=null;
public void connectDB(){
String msg="",title="MS SQL Server - JDBC:ODBC Connection";
int msgType=0;
driver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
host="206.101.216.95";
port="1433";
un="sa";
pw="092803";
db="AgriMrpPrd";
url="jdbc:microsoft:sqlserver://" + host + ":" + port + ";DatabaseName=" + db;
try{
Class.forName(driver);
conn=DriverManager.getConnection(url,un,pw);
System.out.println("Connected to Database!");
}catch(Exception ex){
msg="Unable to connect to MS SQL Server!";
msgType=JOptionPane.ERROR_MESSAGE;
JOptionPane.showMessageDialog(null,msg,title,msgType);
System.exit(0);
public static void main(String args[]){
SQLServerConnection ssc=new SQLServerConnection();
ssc.connectDB();
Please give me wisdom in handling this problem...
Take care always and God blesss
MADzHi All!
I would like to ask your expertise regarding JDBC-MS
SQL Server 2000.
I have here a sample code in connecting to SQL Server
2000, AgriMrpPrd Database using the account "sa" and
the password "092802". I have tried running the code
in my local server at home and It successfully runs,
but when I tried running it on my local server in the
office, I was not able to create a connection object
though I already have changed the HOST, PORT,
DATABASE, USERNAME, and PASSWORD values.If the code runs in one place and not the other, it's got to be a problem with seeing the host.
I have tried logging in using my local account,
removed the LAN connection, start my local server and
tried connecting to it but still it does not work.
I have tried turning the firewall OFF and try
reconnecting but it there was no improvement.
I do not know if there is a difference if there is my
computer is on a DOMAIN (althought I am only
connecting to my local server).I have no idea how to fix your problem, but there are several things to comment on about your code:
(1) You don't have to import the microsoft package. It's actually a bad idea.
(2) I'd name this class DbConnection, because if you wrote it properly it might have a chance of being useful wih other databases, too.
(3) You hardwire all the connection information. Better to pass it in so changing the database doesn't require a recompile.
(4) It's bad to mingle Swing and database code. Take those JOptionPane calls out.
(5) Print the stack trace out when you catch an exception. You're losing a lot of information by handling it that way.
% -
How to connect MS sql server using ODI
Hi ,
i am trying to connect MS SQL server database with ODI .
I have copied sqljdbc.jar file in drivers folders .i got this driver from MSDN
While creating data source i have selected com.microsoft.jdbc.sqlserver.SQLServerDriver driver
i am giving connection string as jdbc:microsoft:sqlserver://hostname:1438;databaseName=siebeldb;user=SIEBEL;password=SI
ODI java version :1.5.0_20
i am getting following error :
com.sunopsis.sql.c: com.microsoft.jdbc.sqlserver.SQLServerDriver
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.graphical.r.or.o(or.java)
at com.sunopsis.graphical.r.or.r(or.java)
at com.sunopsis.graphical.r.or.g(or.java)
at com.sunopsis.graphical.r.or.a(or.java)
at com.sunopsis.graphical.r.or.a(or.java)
at com.sunopsis.graphical.r.il.actionPerformed(il.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at com.sunopsis.graphical.r.or.q(or.java)
at com.sunopsis.graphical.r.or.<init>(or.java)
at com.sunopsis.graphical.frame.a.ji.bx(ji.java)
at com.sunopsis.graphical.frame.bn.w(bn.java)
at com.sunopsis.graphical.frame.bn.d(bn.java)
at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
any pointers on this will be very usefull.
regards ,
MOhanHI ,
i have copied 1.2 driver in my drivers dir and pointed oDI java home to 1.4.2 JRE .
tried testing connection with above Driver and connection string
now i got below error
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.graphical.r.or.o(or.java)
at com.sunopsis.graphical.r.or.r(or.java)
at com.sunopsis.graphical.r.or.g(or.java)
at com.sunopsis.graphical.r.or.a(or.java)
at com.sunopsis.graphical.r.or.a(or.java)
at com.sunopsis.graphical.r.il.actionPerformed(il.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at com.sunopsis.graphical.r.or.q(or.java)
at com.sunopsis.graphical.r.or.<init>(or.java)
at com.sunopsis.graphical.frame.a.ji.bx(ji.java)
at com.sunopsis.graphical.frame.bn.w(bn.java)
at com.sunopsis.graphical.frame.bn.d(bn.java)
at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source) -
Problem connection to SQL Server using DG4MSQL gateway.
I am getting the following error trying to use a SQL gateway on Windows platforms:
TNSPing seems fine (which seems like listener is fine).
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from DG4MSQL
The dg4msql gateway (32 bit box, 11.2.0) exists on a separate machine from the 64 bit Oracle database (10.2.0.4)
and is trying to call a MS SQL 2005 database. The listener starts and stops fine and TNSPing from the database box returns OK.
Thanks for any advice in advance and sorry for the length of the post but I tried to show all the relevant parts. I am a newbie for sure.
The Oracle_Home is on: C:\product\11.2.0\tg_1 and that is included as the first part of the path statement (C:\product\11.2.0\tg_1\bin).
LISTENER.ORA File (running on the gateway server box)
=============================
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = clickimrs.blackfoot.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4msql)
(ORACLE_HOME=C:\product\11.2.0\tg_1)
(PROGRAM=dg4msql)
initdg4msql.ORA file (exists in C:\product\11.2.0\tg_1\dg4msql\admin on gateway box)
====================================
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[MG-FM]/MG-FM/Blackfoot_OasisFM
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
TNSMAMES.ORA (running on the database server box)
=======================================
dg4msql =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=CLICKIMRS.blackfoot.com)(PORT=1521))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
SQLNET.ORA (running on the database server box)
=====================================
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
My create dblink statement:
====================================
create public database link dg4msql connect to "Axiom" identified by "ax" using 'dg4msql';listener status from listener on Gateway machine:
==============================================================
C:\Documents and Settings\tiefentr>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-OCT-2010 13:24
:06
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=clickimrs.blackfoot.com)
(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 20-OCT-2010 11:47:47
Uptime 0 days 1 hr. 36 min. 19 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\clickimrs\listener
\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=clickimrs.blackfoot.com)(PORT=1521))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
===================================================================
TNSPING from HOST machine housing Oracle DB:
C:\Documents and Settings\tiefentr>tnsping dg4msql
TNS Ping Utility for 64-bit Windows: Version 10.2.0.4.0 - Production on 20-OCT-2
010 13:20:21
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=CLICKIMRS.black
foot.com)(PORT=1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (60 msec) -
How i connect to SQL server using java?
hi every body
i need to connect to a sql server database using java
i do not know sql driver in java
plz help me
thanksThis is certainly the wrong forum for that question. Search in the JDBC forum. This has been asked and answered many times.
-
How do i connect to SQL server using the JDBC ODBC
I am attempting to connect to a database on a server over a network. It is running SQL Server 2005. Am i supposed to set the ODBC on my computer or on the server computer and this is the code i am using but i keep getting a class not found exception.
//Variables for the connection to the second Database static final String JDBC_DRIVER2 = "com.microsoft.sqlserver.jdbc";; static final String DATABASE_URL2 = "jdbc:sqlserver:///*serverName*/;databaseName=Dashboard;" + "user=dashboard; password = **********"; private Connection connection2; public void Connection2() throws Exception{ Class.forName(JDBC_DRIVER2); connection2 = DriverManager.getConnection(DATABASE_URL2); System.out.println("Connected 2"); Statement statement2 = connection2.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); }
I have the server's actual name in /*serverName*/ so i know that it is not the issue i left it out for business sensitivity.
I downloaded sqljdbc.jar and have placed it both in my eclipse driver folder and in the project folder itself.
Any help would be very grateful.
Thanks Nathan M.ODBC has nothing to do with the driver in the code that you posted.
Class not found has nothing to do with the connection string.
And the exception stack trace, if you were printing it, would make that obvious because then you would note that
it isn't getting to that line.
Class not found exception means that either your class path is wrong, which is a basic part of java not jdbc,
or that you specified the class name wrong.
I downloaded sqljdbc.jar and have placed it both in my eclipse driver folder and in the project folder itself.Apparently that isn't sufficient because it still isn't in your class path. -
UD Connect to SQL Server using Remote Cube(URGENT !!!!)
Hi all,
Scenario:
I am new to Remote/Virtual Cubes and I think everyone is new to Universal Data Connect (UD Connect). I have to create a prototype using Remote Cube to create a front end reporting tool for one of our partners that does not have an SAP system. So instead of our partner buying a front end tool to do querying on their database we decided to create the solution from our BW system by using Remote Cubes with UD connect since we just upgraded to 3.5 . The legal limitation prevent us from loading the data on our system so we have to use remote cubes.
Question:
I know RCs are limited when it comes to the amount of data that they report on and the number of users that can use them but I don't have exact numbers.... I'm quiet certain that no one really know the 'exact' limit but it would help if i know the approx figures I'm working with. I need to come with with a prototype ASAP so it can be decided if we want to go ahead with this.
I would appreciate ANY help from anyone regarding this issue and if you can think of some more issues that i might encounter pls let me know. It would be great if someone who has gone thru this can guide me as well...Thank you all in advance.
MLHi,
1) DB Connect is something like the grandfather of UD Connect (simply put).
2) Here is some documentation about UDC:
http://help.sap.com --> SAP NetWeaver --> [release, language] --> SAP NetWeaver --> Information Integration --> SAP Business Information Warehouse --> Data Warehousing --> Data Retrieval --> Data Transfer with UD Connect
directly:
http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/frameset.htm
3) Customer Call Series recordings, presentations, etc.:
http://service.sap.com/nw-cc
(the webex session for UDConnect was on 17th March)
4) UD Connect uses the 4 Connector types that SAP provides, like XML, ODBO, JDBC and SAP Query. They same connectors are used by the Bi Java SDK, which is included in the Visual Composer by the BI Kit.
While in the UDC scenario you can either extract or remotely access the data and build structures for it, in the VC scenario you just make remote access to the data.
Performance in either case depends on the amount of data and the kind of navigation and aggregation you require on the data made on the backend system (your MS SQL Server). And of course from network, load on the systems, etc.
Servus
Mario -
Database Connection Problem-SQL SERVER 2005
Dear all,
I have been struggling with this database connection.I have installed sql server 2005 in my PC and i am trying to connect to the Database Adventity.But it is showing port 1432 invalid.I have placed sqljdbc jar in my lib folder.If i dont specify Database name then it will print hi Message..if i specify Database name then the error will come.
MY CODE is::
<%@page import="java.sql.*,java.io.*,java.lang.*,java.util.*,java.util.Vector,bean.*" %>
<%
Connection con;
Statement stmt;
String url= "jdbc:sqlserver://156.0.11.140:1433/Adventity";
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
con = DriverManager.getConnection(url,"sa","hcl@123");
stmt = con.createStatement();
out.println("hi");
%>
THE ERROR IS:
javax.servlet.ServletException: The port number 1433/Adventity is not valid.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.adv1_jsp._jspService(adv1_jsp.java:66)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
PLEASE HELP ME TO GET RID OUT FROM THIS PROBLEM.
THANKS IN ADVANCE.hi
i have given what u said and it is not working but it displays blank page.even i tried to getdate..
pls help me
<%@page import="java.sql.*,java.io.*,java.lang.*,java.util.*,java.util.Vector,bean.*" %>
<%
Connection con;
Statement stmt;
try
String url= "jdbc:sqlserver://156.0.11.140:1433;databaseName=test";
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
con = DriverManager.getConnection(url,"sa","hcl@123");
stmt = con.createStatement();
String user="select getdate();"
System.out.println(user);
catch (Exception e) {
out.println(e.toString());
} finally {
try {
} catch (Exception e) {
e.printStackTrace() ;
%> -
NullPointerException when connecting to SQL Server using FreeTDS
i get this result when i run the code below:
Driver Loaded
Exception- java.lang.NullPointerException
error=null
try {
Class.forName("com.internetcds.jdbc.tds.Driver");
System.out.println("Driver Loaded");
String url = "jdbc:freetds:sqlserver://ws125/pubs";
String user = "sa";
String passwd = "";
Connection con = DriverManager.getConnection(url, user, passwd);
System.out.println("Connection Made");
} catch(Exception ex){
System.out.println("error="+ex.getMessage());
[\code]actually my code is like this:
try {
Class.forName("com.internetcds.jdbc.tds.Driver");
System.out.println("Driver Loaded");
} catch(Exception ex){
System.out.println("error="+ex.getMessage());
try {
String url = "jdbc:freetds:sqlserver://ws125/pubs";
String user = "sa";
String passwd = "";
Connection con = DriverManager.getConnection(url, user, passwd);
System.out.println("Connection Made");
} catch(Exception ex){
System.out.println("error="+ex.getMessage());
[\code] -
Problem connecting to SQL Server from JDeveloper 10g using jdbc third party
I am using Oracle 10g Jdeveloper and I tried to setup a database
connection to SQL Server using various Drivers for JDBC as Merlin, jtds, inet.tds, etc.
(I had no problem to set up a connection to an Oracle Database using the
Oracle JDBC driver).
When I am testing the connection throughout the wizard, I do receive
this error message: "Unable to find driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver".
I m not understanding from last 3 days where to place the corresponding JAR files so thaI may not get the Error.
When I hit n trialed at various directories of the JDeveloper as </rootDir/jdbc/lib>
</rootDir/lib>
</root/jdev/my Work/Application1/Project1/public_html>
</root/jdev/my Work/Application1/Project1/public_html/web-inf/>
when I tested the connection I do received:
"Unable to find driver:
xxx.xxx.xxx.xxxxxxx Unable to find driver:
Obviously it can't locate the Micrososft JDBC driver but I can't
figure out why.
I tried all kind of things without any success. Is somebody can help
me and took me beyond this.
I m trying to build DataSource connection from JavaBeans.
Please make me out of this cave. I m not finding any of the way to do this.
The last code I tried is
try {
Class.forName("com.inet.pool.PoolDriver");
com.inet.tds.TdsDataSource tds = new com.inet.tds.TdsDataSource();
tds.setServerName( "local" );
tds.setDatabaseName( "bluff" );
tds.setUser( dbUserName );
tds.setPassword( dbPassword );
DataSource ds = tds;
Connection con = ds.getConnection(dbUserName,dbPassword);
Statement stmt;
ResultSet rs = null;
Thanks,you are confusing me at least as your error is discussing the microsoft driver yet you are configuring the inet datasource.
I do not use JDeveloper, but you need to make sure that whatever is servicing your web app/JavaBean has access to the driver. Not sure why you are not doing a JNDI look up of the resoure, but because you are not you can stick the driver jar in the lib directory within the WAR bundle. I would suggest that you add the driver to the lib/ext or the lib directory which is loaded at boot time for your web container and then use JNDI to look up your DataSource to reduce your coding maintenance headaches. -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
How to connect sql server using oracle Client
Hi,
I am working in oracle9i and windows os 32 bit.
I need to connect SQL server 2000 from my oracle client..
I heard about heterogeneous connectivity ...
Please expalin me the steps what to add and how to connect the sql server...
Regs....Are you trying to connect to SQL Server from your Oracle database (i.e. create a database link in Oracle to SQL Server)? Or are you trying to connect to SQL Server using your Oracle client software (i.e. SQL*Plus)?
The former just requires Heterogeneous Services with Generic Connectivity. The latter is functionality that has been depricated and probably no longer works in your environment.
Justin
Maybe you are looking for
-
Multiple text fields on the same line
Hi Is it possible to have multiple text boxes on the same form line? I'm trying to replicate a form I've created usng Acrobat X Pro but can't seem to figure how to do it with FormsCentral? Apologise if I'm missing something obvious!
-
How can i transfer my iTunes library from the iPod Touch to my new Windows 7 computer?
My old computer died and I need to move the iTunes library from my iPod Touch to the new Windows 7 computer - how can I do that?
-
How do I transfer files from mac with snow leopard to a new retina display mac
What is the easiest way to transfer files from my old mac(2008) snow leopard to my new retina display mac book pro?
-
Hi, I have located this folder and files in my C:Temp Directory(Normally C:Windows/temp). CompatTelemetryLogs with AppAndDeviceInventory.log right next to it. and the following inside the folder. Folder = "IMG" lots of little image files of all my so
-
Why can i NOT INSTALL latest version of itunes
I cannot update itunes, it just will not install, my iupdad is freezing --- APPLE WHAT ARE YOU DOING, WE BUY THESE ITEMS AND YOU THEN BLOCK US EVERY WAY WE TRY, I AM SO SICK OF BEING USED