ms sql server jdbc driver in netbeans returning empty schemas

Guys,

I'm currently running Netbeans 5 and I'm trying to connect to a ms sql server with the jdbc driver V. 1.0.809.102

2 things are not working right.

1. when I put the user name and the passworrd in the connection screen the ide is not able to connect to the sql server. However, when I put the user name and password in the database url, like so:"jdbc:sqlserver://MYMSSQLSERVER;databaseName=DESIRED_DATABASE;user=THE_USER; password=THE_PASSWORD", I am able to connect to the database and run queries agains it. Obviously the ide is building the incorrect connection string.

2. Once I am connected to the database the server does not return any schemas, views, tables and / or procedures.

Have you guys got any ideas or workarounds? I am trying to make cmp entity beans from the table in the database but I am not able because of the missing schemas.

Any help is truly appreciated.

Thanks

Billy

[954 byte] By [bilorge] at [2007-11-26 7:07:26]
# 1
Hi,When you create a new connection to MS Sql Driver, go to screen "Advanced" and click on "Get schemas" and choice "dbo".Bye.
gregCousin at 2007-7-6 15:55:41 > top of Java-index,Development Tools,Java Tools...
# 2

gregCousin , thanks for the pointer! You are correct about the dbo schema. I had a feeling it was the permissions the account had on the tables. I was able to create table on the database after connecting to it and I was able to see them. So as you can imagine it was very misleading.

In a nutshell, not to bore you with the whole story, the ownership of the tables I needed for the application were changed to my account and I was able to see them. Thanks again for taking the time to post a reply!

bilorge at 2007-7-6 15:55:41 > top of Java-index,Development Tools,Java Tools...