kiran mohan

Greenhorn
+ Follow
since Mar 16, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kiran mohan

Hi Jesper,
Thanks for your post. The thing is that I wanna know the Connection String Used For Different Types of drivers for Different Databases in the
Class.forName("---------"); method. I hope You have got me and regarding the documentaion and the other stuff you have said , I don have any Documentation available with me right now and more over I don have much time to as I have to work on another Task right now.

Thank You
Take care
Kiran
Hi Everybody,
I need some information Regarding how to declare Type 1 2 3 4 Drivers for Establishing a Connection using JDBC For ORACLE, SQL SERVER,and DB2.
Please send me a link otherwise where I could get the necessary information.

Thank You
Kiran
Hi,
I am getting the following
Error:: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'jdbc'
when trying to connect SQL Server Enterprise Manager through JDBC, the main problem is that when I am trying to access a table with OWNER:: dbo and TYPE:: user I am not able to connect but if I try to access a table with OWNER:: dbo and TYPE:: system I am able to connect.
So I request everybody in the forum to consider this issue and help me sort it out.

ThankYou
Kiran
Thanks Scott, I referred the API and completed a program using load method. Now I have a problem with store method. plz tell me wat d problem in the code and exceution.

Data get from load method:
ISA*00* *15*2025442 *01*99603839 *000002314|
ISA*00* *15*2025442 *01*97853839 *000002314|
ISA*00* *15*2025442 *01*92543839 *000002314|
ISA*00* *15*2025442 *01*93693839 *000002314|
now d same data is to stored in other file useing store method, i did it but itz writing only one line and leaving remaing lines.

code:
Properties obj = new Properties();
obj.load(new FileInputStream("C:\\in.txt"));
obj.store(new FileOutputStream("C:\\out.txt"),"contains data");

plz explain why it happened.
18 years ago
Hello guys, could u plz tell me how to use properties class in java.util package, and watz it purpose. give me a small example.
18 years ago
Thank You Annie, I have done as said and it worked out fine. Thank you once again
bye take care
kiran
Hi Everybody,
I am getting the below exception when i am trying out to execute the program that just connects sql server 2000 using java. I wish somebody help me solve the problem.


java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDrive


Thank You
Kiran
Jeanne, thanks for your concern, the problem is that i am using Type 2 driver for connecting to Oracle database and i actually don't know the parameters to be passed an how to use it . i have written the following code so could please check it and suggest me the procedural way of doing it.
Could you also suggest whether any environment variables have to be defined to use the Type 2 Driver, because i have checked out some websites which suggested such changes.


String T2_Driver = "oracle.jdbc.driver.OracleDriver";
String T2_URL = "jdbc racle ci8:@TNSname";

try
{
Class.forName(T2_Driver);
Connection con = DriverManager.getConnection(T2_URL,"scott","tiger");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select eno from emp where ename='SCOTT'");
rs.next();
System.out.println("The ENO is "+rs.getString("eno"));
}
Hi i am getting a problem while using the jdbc Type 2 OCI driver so can you guys help me using this Type 2 driver for connecting to database.
hello friends
I have a problem while configuring Tomcat Server With Websphere Studio Application Dveloper 5.1.2 , so i request you give me a procedural way of doing that so that I can configure TOMCAT Server With WSAD.

ThankYou
MohanKiran
18 years ago
hi ravi i did even got the same output but the thing is that the result is a string object but my client requires it in a date object. so i hope u got me
plz try and help out

bye
ThankYou
18 years ago
hai guys i have a problem in changing the date format from , this is as follows

i will be getting a string "050622" which is taken as date format "yyMMdd" now thw thing is that we have to change the String to Date and the format of Date being "dd-MMM-yy".

i have tried with the following code but was stuck up at the point

public static void main(String[] args)
{
try
{
String srcValue = "050622";
ParsePosition pos = new ParsePosition(0);
SimpleDateFormat SDF=new SimpleDateFormat("yyMMdd");
Date dt = SDF.parse(srcValue,pos);
SDF.applyPattern("dd-MMM-yy");
srcValue = SDF.format(dt);
System.out.println(srcValue);

}
catch(Exception e)
{
System.out.println(e);
}

}
18 years ago
hai guys , how does a parse method of a date class work, i am totally confused how does it work.

plz check out this program and plz help me how does the parse method works


public class DateProg
{
psnm(String args[])
{
String date="050716"
ParsePosition p = new ParsePosition(0);
SimpleDateFormat sdate=new SimpleDateFormat("yyMMdd");
Date dt = sdate.parse(date,p);
System.out.println(sdate.format(dt));
sdate.applyPattern("yyyyMMdd");
System.out.println(sdate.format(dt));
}
}
18 years ago
Thank you Nick , Joel and Richard for ur help, i am well out of the problem with ur help.
Bye
With Regards
MohanKiran
18 years ago
hai guys i have a problem ingetting current SystemDate and change its format to yyyyMMdd , can any help out..!



ThankYou
MohanKiran
18 years ago