How to connect a SQL server to Java program.
I ve installed SQL(last update). 
I need to code, that ll create & establish a connection with SQL DB
& manage the DB(using SELECT, INSERT, CREATE).


I did everything but, i am not able to create connection..(i ve also installed the MySQL/J connector, i jus extracted the .zip pack in a folder & added the folder path in Variables)

Can any1 tell me wat is mean by URL in the below line.... 

Connection connection = DriverManager.getConnection(url, username, password);

I ve tried this "String url = "jdbc:odbc:sqlserver://localhost:3306/myfirstdb"; "
for "Connection con = DriverManager.getConnection(url, "root", "1234");"

But its not working... I cant able to understand the term 'URL'...
Can any1 explain, the meaning of 'url' and wat should be done to connect to a SQL server frm JAVA.

Thanks
How to connect a SQL server to Java program.
===

I ve installed SQL(last update). 
I need to code, that ll create & establish a connection with SQL DB
& manage the DB(using SELECT, INSERT, CREATE).


I did everything but, i am not able to create connection..(i ve also installed the MySQL/J connector, i jus extracted the .zip pack in a folder & added the folder path in Variables)

Can any1 tell me wat is mean by URL in the below line.... 

Connection connection = DriverManager.getConnection(url, username, password);

I ve tried this "String url = "jdbc:odbc:sqlserver://localhost:3306/myfirstdb"; "
for "Connection con = DriverManager.getConnection(url, "root", "1234");"

But its not working... I cant able to understand the term 'URL'...
Can any1 explain, the meaning of 'url' and wat should be done to connect to a SQL server frm JAVA.

Thanks