NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

bind MS sql data to Visual JSF Table

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
bourn3



Joined: 21 Mar 2009
Posts: 2
Location: new delhi

PostPosted: Sat Mar 21, 2009 12:13 pm    Post subject: bind MS sql data to Visual JSF Table Reply with quote

Confused
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.





PostPosted: Tue Mar 24, 2009 10:56 am    Post subject: bind MS sql data to Visual JSF Table Reply with quote

bourn3 schrieb:
Quote:
Confused

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

PostPosted: Wed Apr 08, 2009 8:08 am    Post subject: how to drag and drop using MS SQL database Reply with quote

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

PostPosted: Thu Mar 04, 2010 10:11 pm    Post subject: Reply with 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?
Back to top
jhalupka



Joined: 05 Feb 2010
Posts: 52

PostPosted: Mon Mar 08, 2010 8:28 pm    Post subject: Re: bind MS sql data to Visual JSF Table Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo