Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
java sql help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Hasistranger" data-source="post: 14146664" data-attributes="member: 314292"><p><span style="font-size: 12px"><strong>machan man hadapu project ekaka insert code ekak dennam.. habai man meka haduwe netbeans walin puluwan nam machoo me coding eka ubata one widihata manage karaganna balanna</strong>.<strong>.Habai machoo man mekedi JDBC-ODBC bridge ekakin thamai Database ekata connect wenne.....</strong></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span> <span style="font-size: 12px"><span style="color: Blue"><strong>static void MS_SQL_Insert(Long Tracking , String Code , String System_Date){</strong></span></span><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span> <span style="font-size: 12px"><span style="color: SeaGreen"><strong>try{</strong></span></span><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span> <span style="font-size: 12px"><span style="color: Red"><strong>Connection con;</strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");</strong> <strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> con = DriverManager.getConnection("jdbc<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":o" title="Eek! :o" loading="lazy" data-shortname=":o" />dbc:Stranger");</strong> <strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> Statement stmt = con.createStatement();</strong> <strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> ResultSet Insert = stmt.executeQuery("Insert Into Info (Tracking,Code,PDate) Values ('" + Tracking + "','" + Code + "','" + System_Date + "')");</strong> <strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> Insert.close();</strong> <strong></strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> stmt.close();</strong></span></span></p><p><span style="font-size: 12px"><span style="color: Red"><strong> con.close();</strong></span></span><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span> <span style="font-size: 12px"><span style="color: SeaGreen"><strong>}catch(Exception e){</strong></span></span></p><p><span style="font-size: 12px"><span style="color: SeaGreen"><strong> }</strong></span></span><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong><span style="color: Blue">}</span></strong></span></p></blockquote><p></p>
[QUOTE="Hasistranger, post: 14146664, member: 314292"] [SIZE=3][B]machan man hadapu project ekaka insert code ekak dennam.. habai man meka haduwe netbeans walin puluwan nam machoo me coding eka ubata one widihata manage karaganna balanna[/B].[B].Habai machoo man mekedi JDBC-ODBC bridge ekakin thamai Database ekata connect wenne.....[/B] [/SIZE] [SIZE=3][COLOR=Blue][B]static void MS_SQL_Insert(Long Tracking , String Code , String System_Date){[/B][/COLOR][/SIZE][SIZE=3] [/SIZE] [SIZE=3][COLOR=SeaGreen][B]try{[/B][/COLOR][/SIZE][SIZE=3] [/SIZE] [SIZE=3][COLOR=Red][B]Connection con; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");[/B] [B] con = DriverManager.getConnection("jdbc:odbc:Stranger");[/B] [B] Statement stmt = con.createStatement();[/B] [B] ResultSet Insert = stmt.executeQuery("Insert Into Info (Tracking,Code,PDate) Values ('" + Tracking + "','" + Code + "','" + System_Date + "')");[/B] [B] Insert.close();[/B] [B] stmt.close(); con.close();[/B][/COLOR][/SIZE][SIZE=3] [/SIZE] [SIZE=3][COLOR=SeaGreen][B]}catch(Exception e){ }[/B][/COLOR][/SIZE][SIZE=3] [B][COLOR=Blue]}[/COLOR][/B][/SIZE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom