NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
bourn3
Joined: 21 Mar 2009 Posts: 2 Location: new delhi
|
Posted: Sat Mar 21, 2009 12:13 pm Post subject: bind MS sql data to Visual JSF Table |
|
|
mostly for databases like MySQL and JavaDB netbeans has option to drag drop and bind data but it is not present for MS Sql database, i am confused
how to bind data of MS Sql to Visual JSF Table.
I am making project with Visual JSF and backend as MS SQL
can any one help ! please do, i know JDBC but i am not able to bind it to the table in Visual JSF Web Page |
|
| Back to top |
|
 |
Andreas Ernst Posted via mailing list.
|
Posted: Tue Mar 24, 2009 10:56 am Post subject: bind MS sql data to Visual JSF Table |
|
|
bourn3 schrieb:
| Quote: |
mostly for databases like MySQL and JavaDB netbeans has option to drag drop and bind data but it is not present for MS Sql database, i am confused
how to bind data of MS Sql to Visual JSF Table.
I am making project with Visual JSF and backend as MS SQL
can any one help ! please do i know JDBC but i am not able to bind it to the
table in Visual JSF Web Page
|
ok, did you ever tried to connect to MS SQL with JDBC, i. e. with
DbVisualizer?
Note, you need to open the port of the MS SQL Server, iirc this is not
standard.
Please provide more information about your setup.
--
Andreas Ernst - IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
address-removed www.ae-online.de
www.tachyon-online.de |
|
| Back to top |
|
 |
nicumarius
Joined: 05 Feb 2009 Posts: 11
|
Posted: Wed Apr 08, 2009 8:08 am Post subject: how to drag and drop using MS SQL database |
|
|
is very simple ....I'm in a similar situation.I'm using MS SQL database with netbeans and I can drag and drop without problems.
you should download a jdbc driver . I've chooosed net.sourceforge.jtds.jdbc.Driver .It's free and u can download it from internet ...just google it.
in Netbeans -> Services-> Drivers-> Add new driver....
After ading the jTDS driver just right click -> connect using and set the host, user, port, db etc... and that's all. You should be able to connect and work with SQL tables from netbeans interface .Be aware of security settings for the user that u choosed to login to db .
Good luck! |
|
| Back to top |
|
 |
hobnob24
Joined: 04 Mar 2010 Posts: 1
|
Posted: Thu Mar 04, 2010 10:11 pm Post subject: |
|
|
| the mapping of the mysql table is done by simply dragging it on to the table.But plz somebody suggest me if i want to add only partial columns of the table to it then how to do it?What i mean is suppose that login table has three fields in it name ,password and id ....in a table i want that only the name and password should come and not the id how to do it? |
|
| Back to top |
|
 |
jhalupka
Joined: 05 Feb 2010 Posts: 52
|
Posted: Mon Mar 08, 2010 8:28 pm Post subject: Re: bind MS sql data to Visual JSF Table |
|
|
You should be able to edit the table's layout and remove the columns you
don't want.
I build web apps using VWP. Right-click on the table and select Table
Layout.
I'm not sure how it works with Java Desktop Apps.
hobnob24 wrote:
| Quote: |
the mapping of the mysql table is done by simply dragging it on to the
table.But plz somebody suggest me if i want to add only partial columns of
the table to it then how to do it?What i mean is suppose that login table
has three fields in it name ,password and id ....in a table i want that
only the name and password should come and not the id how to do it?
|
--
View this message in context: http://old.nabble.com/bind-MS-sql-data-to-Visual-JSF-Table-tp27791020p27825846.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|