Jump to content
Xtreme .Net Talk

protoculture

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by protoculture

  1. thanks. got it.
  2. system.web.mail system.net.mail I cannot find these in my classes? why are they not appearing?
  3. thanks for that quick reply. So what about on my original class part? Do I have to create a datatable in that as well and then fill it with the returned object?
  4. I have created a class to handle all my database I/O. I have set up a method to pass in sql statements in that class and I'm hoping to get that method to return a recordset object. How can I return a recordset object to my calling class? ( am I even approaching this correctly? , thanks for your consideration )
  5. Hey that worked! Thanks... But how come this didn't work?... I thought all the sql classes were included with System.Data.* ? import System.Data.*
  6. Thanks for everyones responses... Machaira: I get the following...when implementing your code Cannot find class 'System.Data.SqlClient' BTW- I'm using j#, that wouldn't have anything to do with it,would it?
  7. Could someone let me know if this is going in the right direction? as you can see I've imported the System.Data class and everything underneath it, but when I build I get the following error: "Cannot find class SqlConnection" package JBE; import System.Data.*; /** * Used to control all database input / output */ public class dbcontrol { public dbcontrol() { /// TODO: Add Constructor Logic here } public void openDatabaseConnection() { String myConnectString = "Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=mySQLServer;Connect Timeout=30"; SqlConnection myConnection = new SqlConnection(myConnectString); myConnection.Open(); } public void closeDatabaseConnection() { } public boolean insertIntoDB() { return false; } public boolean updateDB() { return false; } public boolean selectDB() { return false; } }
  8. I'm going to attempt to answer my own question. In a desktop application ( or any application for that matter ) should I be creating a class that does all my database input/output?
×
×
  • Create New...