hello to all. I have used jdk 7 and now i have started to use netbeans8.0.1 i want to know that how to connect ms acces and sql server database using netbeans. Please send me procedure and sample code to connect to these two databases.

you have used jdk 7 and now you are using netbeans 8.0.1.

Netbeans is not a separate version of Java.
What version of Java are you using?
How do you want to connect to the db's? which framework are you planning to use?
JPA, hibernate, jdbc?

with just googling a few minutes you can easily find procedures and 'sample codes', so google it for a moment.