SQL JDBC Timestamp
Hello all,
How to convert java.Sql. timestamp yyyy-mm-dd HH:MM:SS.nanosec to yyyy-mm-dd HH:MM:SS format.
Thanks
shreenivasa wrote:
My code is:-
String cDt = "SELECT NOW()";
ResultSet curdate = st.executeQuery(cDt);
while(curdate.next()){
cdt = curdate.getTimestamp(1);
String updateString = "UPDATE `1` SET startdate = 'cdt' " +
"WHERE idchecklist LIKE " + chkId;
st.executeUpdate(updateString);
The output is 2008-04-25 18:28:00.0
Unable to insert into a Mysql Database to a filed which is timestamp. Pls provide me how to convert this to MYSQL format.You should use PreparedStatement.
Similar Messages
-
EA3/EA2 - SQL History Timestamp column
The formatting of the Timestamp column in the SQL History now uses the NLS Timestamp Format (yay!), but unfortunately does not cope with the seconds component of the format:
NLS Timestamp Format is DD-Mon-YYYY HH24:MI:SSXFF
Timestamp column in the SQL History displays as 25-Feb-2008 15:03:.
I assume from what has previously shown in the SQL History timestamp column (2/25/08 3:03 PM) that we do not record seconds in the SQL History timestamp. I don't really have a problem with that, but can we please trim the second and sub-second components from the format?
theFurryOneJust to add, this specific problem has been fixed. Hiding of sec/mill-sec information is handled by ignoring 'S/F', '.X', ':X' fields . But keeping the bug open so that a more generic fix is made which will handle symbols like '#SSXFF' in time field.
-
EA1 - SQL History Timestamp format
Feature Request "SQL History Timestamp - NLS Date format" (Use the current NLS Date or Timestamp Format preference for formatting the Timestamp displayed in the SQL History window) is listed as Scheduled for 1.5 but has not been included.
Rakesh,
Thanks for the update. I assumed that it hadn't been done yet, as it is using a different "default" NLS date format from the results tab, which also is not picking up the NLS date format preference. -
In sun java studio enterprise 8
I'm able to connect to my local DB2 sample database by creating a database schema.
But when I try to execute a java class (main) using
Class.forName("com.sun.sql.jdbc.db2.DB2Driver"). It returns a not found condition.
what am I doing wrong? do I have to point the classpath to some directory?try to add jar containing driver to
Your project -> Properties -> Libraries -> Run list. -
JDBC Adapter - Update SQL Statement - Timestamp
Hi All,
I'm using a JDBC Sender channel to bring information from a database, when I bring the data I want to UPDATE a field inserting the date and time (timestamp) when you got the info.
Sender Communication Channel: JDBC
Query SQL Statement: SELECT * FROM PI_Factory
Update SQL Statement: ????????
Could you tell me how to do this?Hi
please try the below query in Update sql statement
update table_name set fieldname = systimestamp where .....
or
update table_name set fieldname = current_timestamp where .....
Regards
Ramg. -
Jdbc timestamp error on getting timezone
Hello
I changed my application from J2EE standalone container 9.0.4 to the new OAS 10.1.0.2.
Now I have a problem with timestamp CMP-Attributes.
When I set a timestamp attribut and get it back I have the following exception. The JDBC driver seems to convert the timestamp variable with a sun util for timezones.
I allready set the timezone to real value on the database and with -Duser.timezone Options for the VM.
The Exception is:
java.lang.IllegalArgumentException
at sun.util.calendar.ZoneInfo.getOffset(ZoneInfo.java:322)
at oracle.jdbc.driver.DateTimeCommonAccessor.zoneOffset(DateTimeCommonAccessor.java:370)
at oracle.jdbc.driver.DateTimeCommonAccessor.getMillis(DateTimeCommonAccessor.java:411)
at oracle.jdbc.driver.TimestampAccessor.getTimestamp(TimestampAccessor.java:153)
at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(OracleResultSetImpl.java:750)
at com.evermind.sql.ResultSetBCELProxy.getTimestamp(ResultSetBCELProxy.java:297)
at FaelleLocal_EntityBeanWrapper30.loadStateCorePKNonPartial(FaelleLocal_EntityBeanWrapper30.java:44476)
at EbenenLocal_FaelleLocal_ORCollection172.getObjects(EbenenLocal_FaelleLocal_ORCollection172.java:93)
at com.evermind.server.ejb.ORCollection.contains(ORCollection.java:273)
at com.evermind.server.ejb.ORCollection.add(ORCollection.java:228)
at com.evermind.server.ejb.ORCollection.add(ORCollection.java:355)
at FaelleEJB_PersistenceManager31.__core__setebene(FaelleEJB_PersistenceManager31.java:1083)
at FaelleEJB_PersistenceManager31.setEbene(FaelleEJB_PersistenceManager31.java:1109)
at FaelleLocal_EntityBeanWrapper30.setEbene(FaelleLocal_EntityBeanWrapper30.java:11182)
at com.rehabnet.rehabcycle.server.util.TOFactory.setFallTO(TOFactory.java:693)
at com.rehabnet.rehabcycle.server.impl.ResourceManagerSessionEJB.setFall(ResourceManagerSessionEJB.java:1411)
at ...
Thanks for your help.
best
chrueHello
Thanks for your help.
I solved the problem.
We changed the column type from date to timestamp.
While doing this oracle produces illegal timestamp values with negativ milliseconds. When the bean reads the data he convert the time to the java time with the timezone. The IllegalArgumentException was throwing because of the negativ millisecond part.
best
chrue. -
Hello all ,
I have the following pl/sql function
FUNCTION NEW RETURNS NUMBER(38)
Argument Name Type In/Out Default?
NAME VARCHAR2 IN
PARENT_ID NUMBER(38) IN DEFAULT
ITEM_ID NUMBER(38) IN DEFAULT
LOCALE VARCHAR2 IN DEFAULT
CREATION_DATE DATE IN DEFAULT
CREATION_USER NUMBER(38) IN DEFAULT
CONTEXT_ID NUMBER(38) IN DEFAULT
CREATION_IP VARCHAR2 IN DEFAULT
ITEM_SUBTYPE VARCHAR2 IN DEFAULT
CONTENT_TYPE VARCHAR2 IN DEFAULT
TITLE VARCHAR2 IN DEFAULT
DESCRIPTION VARCHAR2 IN DEFAULT
MIME_TYPE VARCHAR2 IN DEFAULT
NLS_LANGUAGE VARCHAR2 IN DEFAULT
TEXT VARCHAR2 IN DEFAULT
DATA BLOB IN DEFAULT
RELATION_TAG VARCHAR2 IN DEFAULT
IS_LIVE CHAR IN DEFAULT
Now when i want to trigger this function i use the following code in
sqlplus
SQL> variable answer number;
SQL> execute :answer := content_item.new (name => 'k',title => 'k is here', parent_id => 982, description => 'yahoo', content_type => 'wg_tv_program', is_live => 'Y', creation_user => 44, creation_ip => '222' );
As you can see i don't use all argument names . And this works fine
But to do this through jdbc i have the following code
CallableStatement cs = con.prepareCall("{ ? = call content_item.new(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?) } ");
cs.registerOutParameter(1, java.sql.Types.INTEGER);
cs.setString(2,"k"); //name
cs.setInt(3, 982); //parent_id
cs.setInt(4,0); //item_id ??
cs.setString(5,"mm"); //locale
cs.setDate(6,null); // Creation_date
cs.setInt(7,44); //Creation User
cs.setInt(8,0); // Context_ID
cs.setString(9,"222"); //creation_ip
cs.setString(10,"nn"); // Item_subtype
cs.setString(11,"wg_tv_program"); //content_Type
cs.setString(12,"Krikor"); //title
cs.setString(13,"hehe"); //description
cs.setString(14,"bb"); // mime_Type
cs.setString(15,"oo"); // nls_type
cs.setString(16,"tt"); // text
cs.setString(17,"ff");
cs.setString(18,"dd");
cs.setString(19,"Y"); //IS_LIVE
cs.execute();
logger.debug("WHAT DO WE HAVE HERE" + cs.getInt(1));
So when the following code is called , i get the following
<Couldn't create Program : ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'NEW'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
>
And i cannot figure out what i am doing wrong ?
Also is there a way to use the argument names so i won't have to use all the arguments.? how can i use the default values ?
Sorry for the Mass questions
Thank you allHello, thank you for your response
I am currenty getting stuck on entering the date Object if i do the following i get this error
cs.setNull(6,java.sql.Types.DATE);//creation_date
<Couldn't create Program : ORA-01400: cannot insert NULL into ("WGBH_ROCKS"."ACS_OBJECTS"."CREATION_DATE")
ORA-06512: at "WGBH_ROCKS.ACS_OBJECT", line 68
ORA-06512: at "WGBH_ROCKS.CONTENT_ITEM", line 138
ORA-06512: at line 1
>
and if i use this
cs.setDate(6,(java.sql.Date)new Date());
where Date is a java util date i get the following
<Couldn't create Program : null>
What would be the rights choice tu use for an oracle date object.
- As to the parameterized names that is only availabes for oracle 10g i'm using 9.2 unfortunatly
and thanks for all the other info . -
Problem to establish good connection via ms sql jdbc on ms sql server expre
Hi ,
I had error below in testing connection on stand alone db server ms sql server 2005 express edition:
Method=cursor;
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream
was detected on a read.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
ce)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Connect.getConnection(Connect.java:28)
at Connect.displayDbProperties(Connect.java:45)
at Connect.main(Connect.java:82)
at Connect.main(Connect.java:82)
Error Trace in getConnection() : [Microsoft][SQLServer 2000 Driver for JDBC]End
of stream was detected on a read.
Error: No active Connection
I got this error in lauching the codes :
import java.sql.*;
* Microsoft SQL Server JDBC Test1 program
public class Test1 {
public Test1() throws Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://SERGE_TCHITEMBO:1433;databaseName=AutClust","autoclust","clust");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
}// Test1
public static void main (String args[]) throws Exception {
Test1 Test1 = new Test1();
I google this error but i did find response.
Please could help me.
Vovo.This is a database sever side forum. Your problem is client side db driver connectivity (the connection does not even reach the database from your description).
Thus I doubt that you will have much luck in getting the problem resolved here. I suggest you try a client language/driver forum instead.
Side note: I would add a test method to the code that takes IP/hostname and port as input, and then simply attempts a tcp socket open with these parameters. If socket connect works, close it and return a success. Else return a fail. Call this with the IP/hostname of the db server and port number of the server's listener (default 1521). Easy method to test network connectivity from client device to database server, without using any JDBC driver class and dealing with issues such as app protocol version differences and so on. -
DB LINK Oracle to SQL Server SQL Server TimeStamp converts to Oracle Date
Hi All,
I have created a DB link between Oracle 10g 10.2.0.5 to SQL server 2005 using Oracle 11g gateway. When I execute a query from Oracle that selects data from SQL server using the DBLINK then the column value of type Timestamp from SQL server gets converted to Date data type in Oracle and it losses the time value.
Is there some way (in gateway configurations or in select query sql ) that the SQL server data type Timestamp gets converted to Oracle's Timestamp?
Please help.
Best Regards!
Irfan
Edited by: irf_mas on Mar 13, 2012 3:23 AMYou're getting the ORA-2070 error as the gateway that you are using is not supporting the to_timestamp function in this context. You need to rewrite the code.
Best would be if you first check out the data format that is sent as a string when you just select the date column - for example:
data_create_dt
Jan 11 2012 1:40PM
Now the easiest way is to make sure the format you are using in your where clause matches the string from the SQL Server:
select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt"<'Jan 11 2012 1:41PM';
which will result in:
data_create_dt
Jan 11 2012 1:40PM
BTW,
it works with all formats the SQL Server understands:
SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt">'11-JAN-12 01.40.00.000000000 AM';
data_create_dt
Jan 11 2012 1:40PM
Another way using binds:
SQL> variable datum varchar2(26);
SQL> exec select to_char(systimestamp,'MON dd yyyy hh:mi') into :datum from dual;
PL/SQL procedure successfully completed.
SQL> print datum
DATUM
MAR 19 2012 08:29
SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt" <:datum;
data_create_dt
Jan 11 2012 1:40PM
There are several ways to get a result, just make sure you don't use an unsupported function in your statement. A list of supported functions is found in the manual. -
DB Adapter Custom Select SQL with Timestamps
Hi,
I am facing an issue with the DB Adapter Custom select sql: here is my scenario:
I am trying to select diff records from the database between user input start time & the sysdate. for this i am trying to use Execute Pure SQL option database adapter.
I am framing the SQL as below:
select * from tablename1,tablename2 where tablename1.id = tablename1.id and column1 like #userinput1 and tablename1.request_timestamp between to_date(#Userinput_requestTime) and sysdate
My question is whether the query
tablename1.request_timestamp between to_date(#Userinput_requestTime) and sysdate
is correct or not? I even given a try to_date(#Userinput_requestTime,'DD-MON-YY HH24:mi:ss') and sysdate
that too not worked ,
I have created OSB business service using the generated adapter and the input i am giving it as '04-MAR-15 03.36.23.368179000 PM -06:00' and the input is of type xs:string .
i am getting errors like java.sql.SQLDataException: ORA-01830: date format picture ends before converting entire input string
Whether my custom sql is correct or not ? please help me in resolving this issue.
THanks,
SVif
tablename1.request_timestamp
is timestamp then you need to compare as
timestamp beetween timestamp and timestamp
so convert date to timestamp by CAST as example
check How to convert DATE to TIMESTAMP -
hello all,,
how r u ?
it is My Problem
when i select a date and a number from Datebase in TOAD Application as
select date1, load from c_day
the result is :
date1 ( type Date ) load ( type Number)
DD/MM/YYYY
01/05/2007 20.30
02/05/2007 16.21
03/05/2007 65.014
04/05/2007 20.30
when inserting this query in Java Code as:
Timestamp t = null;
BigDecimal b = null;
String sql = "select date1, load from c_day";
PreparedStatement stm = con.prepareStatement(sql);
ResultSet rs = stm.executeQuery();
while(rs.next){
t = rs.getTimestamp(1);
b = rs.getBigDecimal(2);
System.out.println("date : " + t.toString() + " , load = " + b.doubleValue());
// some dates is wrong .
Result
date : 01/05/2007 00:00:00 , load = 20.30
date : 02/05/2007 00:00:00 , load = 16.21
[i]date : 02/05/2007 23:00:00 , load = 65.014
date : 04/05/2007 00:00:00 , load = 20.30
so is this a bug in Java or is there is any Solution ???hello all,,
how r u ?
it is My Problem
when i select a date and a number from Datebase in
TOAD Application as
elect date1, load from c_day
the result is :
date1 ( type Date ) load ( type
Number)
DD/MM/YYYY
01/05/2007 20.30
02/05/2007
16.21
65.014
20.30
ava Code as:
Timestamp t = null;
BigDecimal b = null;
String sql = "select date1, load from c_day";
PreparedStatement stm = con.prepareStatement(sql);
ResultSet rs = stm.executeQuery();
while(rs.next){
t = rs.getTimestamp(1);
b = rs.getBigDecimal(2);
System.out.println("date : " + t.toString() + " ,
load = " + b.doubleValue());
// some dates is wrong .
Result
date : 01/05/2007 00:00:00 , load = 20.30
date : 02/05/2007 00:00:00 , load = 16.21
[i]date : 02/05/2007 23:00:00 , load = 65.014
date : 04/05/2007 00:00:00 , load = 20.30
so is this a bug in Java or is there is any Solution
???Check your data. It could be that TOAD is using a different time zone or DST value to Java, and that '2/5/2007 2300' turns into '3/5/2007'.
David Rolfe -
PL-SQL JDBC -- No more data to read from socket Exception
I have a PL/SQL stored procedure which takes CURSOR as IN parameter.
I want to execute this procedure by passing a ResultSet object into it.
Below attached is the piece of code I am using.
When I execute I am getting the following exception ,
Thanks in advance
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:731)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:373)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:407)
at ECTTestClass.test16(ECTTestClass.java:500)
at ECTTestClass.main(ECTTestClass.java:51)
Statement st = con.createStatement();
String qry = "SELECT * FROM TAB1";
ResultSet rs = st.executeQuery(qry);
int cntr = 0;
while(rs.next()){
System.out.println("USER ID " + rs.getString("USER_ID"));
System.out.println("LICENSE " + rs.getString("LICENSE"));
cntr++;
System.out.println("No of rows " + cntr);
CallableStatement cst = con.prepareCall("{call PREM_TEMP.PREM_PROC(?)}");
cst.setObject(1,rs,OracleTypes.CURSOR);
System.out.println("set object...... successful");
cst.execute();
st.close();
cst.close();
con.close();I have a PL/SQL stored procedure which takes CURSOR as IN parameter.
I want to execute this procedure by passing a ResultSet object into it.
Below attached is the piece of code I am using.
When I execute I am getting the following exception ,
Thanks in advance
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:731)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:373)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:407)
at ECTTestClass.test16(ECTTestClass.java:500)
at ECTTestClass.main(ECTTestClass.java:51)
Statement st = con.createStatement();
String qry = "SELECT * FROM TAB1";
ResultSet rs = st.executeQuery(qry);
int cntr = 0;
while(rs.next()){
System.out.println("USER ID " + rs.getString("USER_ID"));
System.out.println("LICENSE " + rs.getString("LICENSE"));
cntr++;
System.out.println("No of rows " + cntr);
CallableStatement cst = con.prepareCall("{call PREM_TEMP.PREM_PROC(?)}");
cst.setObject(1,rs,OracleTypes.CURSOR);
System.out.println("set object...... successful");
cst.execute();
st.close();
cst.close();
con.close(); -
Date-format for MS-SQL / JDBC-Receiver
Hallo XI-guys
I have to implement a Szenario abap-proxy->XI->JDBC to a MS-SQL Database
One datafield is a DATE Field. MS-SQL datetime - Format
Is there any BLOG or Solution in the www or SDN how to do the mapping and other to-do.?
Have somebody any Idea/Solution ?
For a Oracle DATETIME field there is the BLOG
/people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database
probably it gives the same ?
Thanks BerndHi Bernd,
The same kind of requirement i had develop a UDF.., Following is the UDF
public String DateFormatConversion(String a,Container container){
String dt = a;
if (a.equals("00000000"))
return("");
else
dt = "to_Date('" + dt + "','yyyyMMdd')" ;
return dt;
Input for this UDF is your Field which is contains the value as Date and the Outcome of the UDF as
to_Date('20080430','yyyyMMdd')
Hope it helps
Cheers
Veera
>>Reward points if it is needful -
hi all,
I'm novice using Timestamp and I've the following problem:
I need to do a query that show me as result a specific rows in a date's range but when i try to execute the query I got a error because i must to send to db a Timestamps values and I'm sending a java.util.Date or String fields not Timestamps.
How I can create a Timestamp for my start date (b.e. '01/01/2003') and another for my ends date (b.e. '31/12/2003'), or I can do for resolve this problem.
thanks for advise me?From the JavaDoc for java.sql.Timestamp:
public Timestamp(long time)
Constructs a Timestamp object using a milliseconds time value.
From the JavaDoc for java.util.Date:
public long getTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. -
Hello,
I have the following problem. I am trying to connect to the database (MS SQL). I am following all the steps described in EP eLearning, using user mapping to login - it does not work. The error message is
" Failed to lookup null in Initial Context #"
I tried to enter credentials using "Personalize", the same problem. Using, Admin user ID, Admin Password, but it says login failed for my user.
Here are my parameters:
User Mapping Type = admin, type
Connection URL =
jdbc:sap:sqlserver://207.203.236.136:1433;databaseName=carlos"
Driver Class Name =
"com.sap.portals.jdbc.sqlserver.SQLServerDriver"
And in the end, when trying to create new iView, I receive a message:
"Could not connect to the back-end application..."
Can somebody help me with this message?Hi,
These are the steps I have followed for connecting JDBC iViews.
1. Create a JDBC system for the sqlserver in the portal. In the properties sheet provide the following values:
Connection String : jdbc:sap:sqlserver://<hostname>:1433;databaseName=<dbname>
driver : com.sap.portals.jdbc.sqlserver.SQLServerDriver
2. Create a system alias for the system.
3. In the user management part of the iView, configure it for admin or admin,user
4. Remember do perform the usermapping settings for this system in personalisation option.
Hope this helps.
Shankar
Maybe you are looking for
-
Status update for MeeGo on the N900
Here's a copy of the text sent by Harri Hakulinen from Nokia. He is the project lead for MeeGo on the N900. This message was sent to the MeeGo developer mailing list just now: Hello MeeGos ! This is brief status update of "MeeGo to N900" project. Thi
-
Can I get my Sprint 4S to work on Tmobile?
Ok, here are the facts: iPhone 4S sold by Sprint has both CDMA and GSM capabilities. Sprint will unlock your iPhone for international GSM use, but not for domestic carriers like ATT, Tmobile, or even CDMA Verizon. My iPhone 4S has been unlocked by Sp
-
Question about Receiver Determination step in BPM
Hello all, I have a BPM process similar to Multicat BPM Pattern. I have some questions regarding how the Receiver Determination works: 1. Does it have to have interface determination in the Integration Directory? 2. Does that interface determination
-
How to Load table from client file in C?
Hi all, I'm trying to determine how to write a C program to load a client file with the "load table ... using client file..." syntax without calling out to the dbisql program to load the table. I'm probably not seeing the forest for the trees here.
-
No privileges on system tablespace?
I am a new dba & have succesfully created tables and added constraints. Today I tried to add a constraint to an existing table, and received the message ORA-01950: no privileges on tablespace 'SYSTEM' I tried to add the constraint as the owner of the