Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
Questionsn.exe, public key question Pin
Ryan Minor11-May-10 4:28
Ryan Minor11-May-10 4:28 
AnswerRe: sn.exe, public key question Pin
Peace ON11-May-10 4:49
Peace ON11-May-10 4:49 
QuestionUnknown connection option in connection string: provider. Pin
Tunisien8611-May-10 2:58
Tunisien8611-May-10 2:58 
AnswerRe: Unknown connection option in connection string: provider. Pin
dan!sh 11-May-10 3:26
professional dan!sh 11-May-10 3:26 
GeneralRe: Unknown connection option in connection string: provider. Pin
Tunisien8611-May-10 3:35
Tunisien8611-May-10 3:35 
GeneralRe: Unknown connection option in connection string: provider. Pin
dan!sh 11-May-10 3:45
professional dan!sh 11-May-10 3:45 
GeneralRe: Unknown connection option in connection string: provider. Pin
Tunisien8611-May-10 4:16
Tunisien8611-May-10 4:16 
AnswerRe: Unknown connection option in connection string: provider. Pin
Tunisien8611-May-10 5:45
Tunisien8611-May-10 5:45 
Hi,
Thanks I depass the problem of the connexion to the server due to the DB File attachmen Laugh | :laugh:
Still now the problem in the filling of my combobox.In fact,no exception appears so connection to server works well.In other hand,nothing is added to my combobox.
I try to replace my sqldatareader by sqldataset but still the same thing:
string sConnection = "Data Source=127.0.0.1,1433;Persist Security Info=True;Initial Catalog=GMAO;User ID=sa;Password=sa";
            string sSQL = "SELECT com FROM energie; ";
            SqlConnection conn = new SqlConnection(sConnection);
            SqlCommand comm = new SqlCommand(sSQL, conn);
            DataSet ds = new DataSet();
            SqlCeDataAdapter da = new SqlCeDataAdapter();
            SqlDataReader dr = null;
            try
            {
                
                comm.Connection.Open();
                da.Fill(ds, "SQL Temp Table");
                foreach(DataRow d in ds.Tables[0].Rows)
                comboBox1.Items.Add(d.ToString());
            }
            catch (SqlException ex)
            {
                //MessageBox.Show("connexion impossible");
                MessageBox.Show(ex.Message);
                return;
            }

            dr.Close();
            comm.Connection.Close();
        }

How do I depass that???
Thank u
AnswerRe: Unknown connection option in connection string: provider. Pin
William Winner11-May-10 6:05
William Winner11-May-10 6:05 
GeneralRe: Unknown connection option in connection string: provider. Pin
Tunisien8611-May-10 6:11
Tunisien8611-May-10 6:11 
QuestionDLL import problem Pin
SelvaKr11-May-10 0:33
SelvaKr11-May-10 0:33 
AnswerRe: DLL import problem Pin
Luc Pattyn11-May-10 2:11
sitebuilderLuc Pattyn11-May-10 2:11 
GeneralRe: DLL import problem Pin
SelvaKr13-May-10 23:43
SelvaKr13-May-10 23:43 
QuestionPass an argument to use with a foreach loop Pin
Mc_Topaz10-May-10 23:59
Mc_Topaz10-May-10 23:59 
AnswerRe: Pass an argument to use with a foreach loop Pin
OriginalGriff11-May-10 0:31
mveOriginalGriff11-May-10 0:31 
GeneralRe: Pass an argument to use with a foreach loop Pin
Mc_Topaz11-May-10 0:55
Mc_Topaz11-May-10 0:55 
AnswerRe: Pass an argument to use with a foreach loop Pin
Abhinav S11-May-10 0:47
Abhinav S11-May-10 0:47 
AnswerRe: Pass an argument to use with a foreach loop Pin
sam#11-May-10 0:57
sam#11-May-10 0:57 
AnswerRe: Pass an argument to use with a foreach loop Pin
Luc Pattyn11-May-10 2:20
sitebuilderLuc Pattyn11-May-10 2:20 
Questiongetting ini value Pin
Member 59031010-May-10 22:27
Member 59031010-May-10 22:27 
AnswerRe: getting ini value Pin
OriginalGriff10-May-10 22:49
mveOriginalGriff10-May-10 22:49 
AnswerRe: getting ini value Pin
PIEBALDconsult11-May-10 3:38
mvePIEBALDconsult11-May-10 3:38 
QuestionSending data through SOAP Pin
Priya Prk10-May-10 21:49
Priya Prk10-May-10 21:49 
AnswerRe: Sending data through SOAP Pin
Abhinav S10-May-10 22:33
Abhinav S10-May-10 22:33 
QuestionPrint Visitor Card Pin
Hakmeh Mohannad10-May-10 21:49
Hakmeh Mohannad10-May-10 21:49 

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.