Monday, October 1, 2012

JDBC Connection with MSSQL Server

Hello there, its a while I returned to blog. Here I will enlist the steps needed to perform for JDBC Connection with MSSQL Server 2008.

Steps:
  1. Download the MSSQL Server JDBC Driver from here http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774
  2. Unzip the folder and you will get three important files - sqljdbc4.jar, sqljdbc.jar and sqljdbc_auth.dll in the \sqljdbc_4.0\enu\auth\x86 folder
  3. Now put  sqljdbc4.jar file in D:\Program Files\Java\jre7\lib\ext whereas my JDK is installed in D drive
  4. Then put sqljdbc_auth.dll file the D:\Program Files\Java\jre7\bin
  5. Also add those two paths into the PATH system variables
  6. Also get the TCP/IP port number of the SQL Srever instance from SQL Server Management Studio
  7. Now you can check the following code modifying the connection string for you
try

String DbName="stackoverflow_db";
        Class.forName( "com.microsoft.sqlserver.jdbc.SQLServerDriver" ).newInstance();
                Connection con = DriverManager.getConnection( "jdbc:sqlserver://localhost\\SQLEXPRESS;databaseName="+DbName+";integratedSecurity=true");
System.out.println("Connected to database successfully");
}catch(Exception exc){
System.err.println(exc.getMessage());
}


Tuesday, July 24, 2012

Why can't you be a researcher and developer both?

I strongly believe that a student can be a researcher and developer at the same time. Once I started my job at a software company called NOCHALLENGE, I started working 14 hours (not imposed by company, I imposed on myself) and started learning lots of new things like professionalism, subtle issues, new tools and new job requirements. I believed that without software development experience, a person can't be a good researcher in software engineering field. To accomplish that goal, I kept working for 2 full time jobs ( Lead developer @ NOCHALLENGE and Lecturer @ CSE, KU). I worked hard (very hard) for the last 3 years and discovered my capability of handling pressure- its quite satisfactory. Anyway, now I am retiring from software development temporarily and looking for research opportunities.

Tuesday, April 3, 2012

Bad time again

I am not sure whether this girl is going to be changed or not. I am really anxious about our future life. What will happen if she continuous to act like that? How do human habits become like this? I could be more happy if I could leave, but its really hard....I am just going down by depression, anxiousness and I had to act in everyday life. What a tragedy of love!!!

Edit: Many things are changed, now she is a good wife!! :)

Bad time again

I am not sure whether this girl is going to be changed or not. I am really anxious about our future life. What will happen if she continuous to act like that? How do human habits become like this? I could be more happy if I could leave, but its really hard....I am just going down by depression, anxiousness and I had to act in everyday life. What a tragedy of love!!!

Edit: Many things are changed, now she is a good wife!! :)

Sunday, February 19, 2012

Painful experience

We didn't talk for almost 5 days. I am not sure what is going to happen. Will she change? Right now I can't predict anything. Human mind is different at different times. I often found she is not interested to negotiate, this time I am also determined to be cooled down. Let see what happens..how love can change a man/woman?

Painful experience

We didn't talk for almost 5 days. I am not sure what is going to happen. Will she change? Right now I can't predict anything. Human mind is different at different times. I often found she is not interested to negotiate, this time I am also determined to be cooled down. Let see what happens..how love can change a man/woman?

Tuesday, February 14, 2012

Hard Time

I am passing a very hard time. What I wanted from my life partner, I am totally obsessed about that. I am not sure whether every relationship is like that or not, but in my case, I am facing much difficulties to be nice and perfect for her and she also looks like not perfect for me. What I seems she is not thinking deeply and feeling deeply. Is all girls like that?
Confused....

Hard Time

I am passing a very hard time. What I wanted from my life partner, I am totally obsessed about that. I am not sure whether every relationship is like that or not, but in my case, I am facing much difficulties to be nice and perfect for her and she also looks like not perfect for me. What I seems she is not thinking deeply and feeling deeply. Is all girls like that?
Confused....