• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connecting to MS SQLServer database from within netbeans

 
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In NetBeans.
So I have the driver setup in the runtime tab. But unfortunately I cannot connect using it.
In the "New Database connections" dialog box where you fill in the details you want to connect with I have the following:

name: SQlServer 2005
Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
database url :jdbc:sqlserver://localhost:1433/pubs
username: sa
password: .

The error I get shown when I click on OK is:
"unable to add connection,cannot establish a connection to the jdbc:sqlserver://localhost:1433/pubs using com.microsoft.sqlserver.jdbc.SQLServerDriver (the port number 1433/pubs is not valid.)"


Note:I can connect from code using the above specs.
[ December 07, 2007: Message edited by: Chunnard Singh II ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic