?
Solved

import com.ms.wfc.data.*

Posted on 2004-08-25
11
Medium Priority
?
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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 1000 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
 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 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