Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: very fast image conversion from jpg to bmp in c# Pin
Luc Pattyn26-Jan-10 4:05
sitebuilderLuc Pattyn26-Jan-10 4:05 
GeneralRe: very fast image conversion from jpg to bmp in c# Pin
Mohammad Mahdipour26-Jan-10 18:31
Mohammad Mahdipour26-Jan-10 18:31 
GeneralRe: very fast image conversion from jpg to bmp in c# Pin
Luc Pattyn27-Jan-10 12:47
sitebuilderLuc Pattyn27-Jan-10 12:47 
AnswerRe: very fast image conversion from jpg to bmp in c# [modified] Pin
The Zetta26-Jan-10 6:07
The Zetta26-Jan-10 6:07 
GeneralRe: very fast image conversion from jpg to bmp in c# Pin
Ennis Ray Lynch, Jr.26-Jan-10 10:48
Ennis Ray Lynch, Jr.26-Jan-10 10:48 
GeneralRe: very fast image conversion from jpg to bmp in c# Pin
The Zetta27-Jan-10 5:30
The Zetta27-Jan-10 5:30 
AnswerRe: very fast image conversion from jpg to bmp in c# Pin
Mohammad Mahdipour26-Jan-10 18:37
Mohammad Mahdipour26-Jan-10 18:37 
QuestionBasic SQL connection through classes Pin
Steve-Co26-Jan-10 0:09
Steve-Co26-Jan-10 0:09 
I'm stepping into a whole new programming world which I'm not used to at the moment and seemingly stuck at the first hurdle.

I have a class called SQLDBConnect.cs This class is given parameters to connect to a database e.g username password, server etc. These are pulled into an SQLConnection and opened. That appears to work fine.

Within another class I am trying to write an INSERT into that database and I'm stuck at the command

SqlCommand myCommand = new SqlCommand();
         myCommand.Connection =;


How do I tell the command to use the connection which is opened in the SQLDBConnect class?

As I mentioned I am new to all this and may be taking the wrong approach, I'd appreciate any opinions.

Many Thanks for all help
AnswerRe: Basic SQL connection through classes Pin
#realJSOP26-Jan-10 0:12
mve#realJSOP26-Jan-10 0:12 
GeneralRe: Basic SQL connection through classes Pin
Steve-Co26-Jan-10 0:24
Steve-Co26-Jan-10 0:24 
GeneralRe: Basic SQL connection through classes Pin
J4amieC26-Jan-10 0:41
J4amieC26-Jan-10 0:41 
AnswerRe: Basic SQL connection through classes Pin
i.j.russell26-Jan-10 0:57
i.j.russell26-Jan-10 0:57 
GeneralRe: Basic SQL connection through classes Pin
Not Active26-Jan-10 1:51
mentorNot Active26-Jan-10 1:51 
GeneralRe: Basic SQL connection through classes Pin
PIEBALDconsult26-Jan-10 4:11
mvePIEBALDconsult26-Jan-10 4:11 
GeneralRe: Basic SQL connection through classes Pin
#realJSOP26-Jan-10 6:45
mve#realJSOP26-Jan-10 6:45 
GeneralRe: Basic SQL connection through classes Pin
PIEBALDconsult26-Jan-10 6:52
mvePIEBALDconsult26-Jan-10 6:52 
AnswerRe: Basic SQL connection through classes Pin
kevinnicol26-Jan-10 2:39
kevinnicol26-Jan-10 2:39 
AnswerRe: Basic SQL connection through classes Pin
SilimSayo27-Jan-10 3:11
SilimSayo27-Jan-10 3:11 
QuestionA theoretical problem when coding a BUSY TCP/UDP server [modified] Pin
SimpleData25-Jan-10 23:03
SimpleData25-Jan-10 23:03 
AnswerRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
harold aptroot25-Jan-10 23:27
harold aptroot25-Jan-10 23:27 
GeneralRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
SimpleData26-Jan-10 6:55
SimpleData26-Jan-10 6:55 
GeneralRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
harold aptroot26-Jan-10 7:12
harold aptroot26-Jan-10 7:12 
GeneralRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
SimpleData26-Jan-10 8:06
SimpleData26-Jan-10 8:06 
GeneralRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
harold aptroot26-Jan-10 8:38
harold aptroot26-Jan-10 8:38 
GeneralRe: A theoratical problem when coding a BUSY TCP/UDP server Pin
SimpleData26-Jan-10 9:23
SimpleData26-Jan-10 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.