Solved

import com.ms.wfc.data.*

Posted on 2004-08-25
11
512 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

707 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

17 Experts available now in Live!

Get 1:1 Help Now