please guide me to connect java project to sql.Code snippets are welcome.

You can find here plenty of examples

PS: Please be more specific on what database you looking for

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.