Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

DSN IN SQLServer7.0 and many more

  Asked By: Koila    Date: Dec 09    Category: Java    Views: 598
  

Still there persists some problem they are the following.

q1--> I wanted to creare DSN(DATA SOURSE NAME) from java program using
"sun.jdbc.odbc.JdbcOdbcDriver"
only. I am using SQL Server7.0 on NT platforms.
Actually i have made a small software for my NIIT center. It is a intranet
mailing system using java.The problem
is that i have to create DSN manually int every System.

q2-->Can we have a compont(eg JButton) inside a cell of JTable.

q3-->how to connect c++ program with SQL Server7.0

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Calais Bernard     Answered On: Dec 09

I am puzzled. You claim to be a faculty what of NIIT
Center. You seem to lack a lot of knowledge or may be
I missed yourself introduction to the club. Are you
R&D student fellow of NIIT Center? How could your
people tackle on the position of IT related outsource
from US?

 
Answer #2    Answered By: Calvin Banks     Answered On: Dec 09

I used to
handle more
than hundreds of error a day in C++ and JAVA alone. Still I feel there is lack
of knowledge
in my subjects for this reason i joined your group not knowing that there are
people who can
send imroper comments rather than answering the queries.
Solving so much errors a day has given one of the strongest logical mind. I can
challenge a
developer like you (who use to make project for US IT sector) in solving logical
problem.
check this out:-this is only for u
Generate 100 numbers randomly[use Math.random()]
between 1 -150. I dont want any number to repeat itself.
I have once made  this program  in 5 lines I hope u will solve this program (as
you are a person who handle big projects
for biggies ) or else please do not pass comments in mails if u have answers
please send thos only

 
Answer #3    Answered By: Ralph Murray     Answered On: Dec 09

Please do not take it so personal for my puzzling and
curiosity. Thanks for clearing my confusion and I am
totally agree with you there is no such thing as
enough of knowledge. I should use a better approach
instead.

 
Answer #4    Answered By: Keith Marshall     Answered On: Dec 09

public class Test{
public static void main( String args[] ){
java.util.HashSet whatever = new java.util.HashSet();
while(whatever.size() < 100) whatever.add(new Integer
((int)java.lang.Math.round(150 * java.lang.Math.random())));
}
}

 
Answer #5    Answered By: Timothy Patterson     Answered On: Dec 09

This program  is in file lines but it is not a good
solution. The performance is bad.

I think a better solution should make use of every
random number generated by Math.Random().

 
Answer #6    Answered By: Jezza Brown     Answered On: Dec 09

sometimes, an obvious inefficieny isn't so obvious when you benchmark
it. I'd be interested in seeing a performance test between this and a
similar solution taking the time to make sure to use every random
number. not to mention the difference in time spent on coding it.

 
Didn't find what you were looking for? Find more on DSN IN SQLServer7.0 and many more Or get search suggestion and latest updates.




Tagged: