Solved

import com.ms.wfc.data.*

Posted on 2004-08-25
11
521 Views
Last Modified: 2008-01-09
Hello all,

I'm new to java, so please excuse my lack of knowledge if I use wrong terms, etc.

I am writing a java executable file that needs to connect to a SQL Server database that will be compiled / run on a windows machine.  I believe I want to use the package com.ms.wfc.data.* to do this, but my development environment (NetBeans IDE 3.6) does not find this package ("package com.ms.wfc.data.* does not exist" error occurs on the line: import com.ms.wfc.data.*;).  

What must I do to get this working?

Thank you very much in advance for your help.

Regards,
peh803
0
Comment
Question by:peh803
  • 7
  • 4
11 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 11897059
No - that's a Microsoft package, so NetBeans won't have it. You don't need platform-specific packages to connect to SQL Server. See

http://javaalmanac.com/egs/java.sql/ConnectSqlServer.html
0
 
LVL 19

Author Comment

by:peh803
ID: 11897085
Thank you for the quick response.  

The link you sent me uses jdbc (I'm sure you know that).  

Are you suggesting that I use jdbc to connect rather than the one I reference above because it is not possible to use com.ms.wfc.data?

Thanks,
peh803
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11897098
Yes. Use JDBC. The other stuff is platform-specific, which rather defeats one of the objects of Java ;-)
0
 
LVL 19

Author Comment

by:peh803
ID: 11897120
ah ha.  

Okay, so now I need to actually download the jdbc driver for sql server...

The resource you provided suggests 3 -- do you recommend any?

  NetDirect:  http://www.j-netdirect.com
  DataDirect: http://www.datadirect-technologies.com
  FreeTDS:    http://www.freetds.org

Thank you,
peh803
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 11897137
Personally, i haven't used any of those, but i'm sure some later comers to this question may have
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 19

Author Comment

by:peh803
ID: 11897177
Yuck, these cost money.  

Am I going to run into this with any jdbc driver for SQL Server, do you think?
0
 
LVL 19

Author Comment

by:peh803
ID: 11897222
Hey, actually, freetds looks like it might be "free".  (duh)

Thanks for your help with this issue.  I may have future posts, and I hope you will participate.

Regards,
peh803
0
 
LVL 19

Author Comment

by:peh803
ID: 11897238
darn, from the first sentence on their website: "FreeTDS is a set of libraries for Unix and Linux ... "

I guess I can't use this free solution for my windows environment...

Oh well, thanks for your help anyways.

peh803
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11897242
:-)

Yep
0
 
LVL 19

Author Comment

by:peh803
ID: 11897272
Hey, I found a free jdbc driver for windows environments on microsoft.com (who would have ever guessed?).

Again, thanks for your help.

peh803
0
 
LVL 19

Author Comment

by:peh803
ID: 11897282
CRAP, this one's unix only, too.  I'll shut up now.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Eclipse Neon and jdk 1.8.0 11 134
bitbucket vs gitbucket 3 57
Java / Linux and Regular Expressions 11 69
split string containing \r\n in Java 46 38
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now