
Hi, I am trying to use sql server with java jdbc odbc but I am getting this exception
java.sql.SQLException: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '@P1'.
but if i connect the same program to mysql it works fine.....help will be very much appriciated......

how to connect java with sql server please give me code.