Click here to Skip to main content
15,892,537 members
Home / Discussions / Database
   

Database

 
QuestionNeed help in query Pin
Saiyed Alam12-May-10 2:48
Saiyed Alam12-May-10 2:48 
AnswerRe: Need help in query Pin
J4amieC12-May-10 3:53
J4amieC12-May-10 3:53 
GeneralRe: Need help in query Pin
David Skelly12-May-10 5:16
David Skelly12-May-10 5:16 
GeneralRe: Need help in query Pin
J4amieC12-May-10 5:21
J4amieC12-May-10 5:21 
GeneralRe: Need help in query Pin
Saiyed Alam12-May-10 18:38
Saiyed Alam12-May-10 18:38 
AnswerRe: Need help in query Pin
Wayne Gaylard12-May-10 4:08
professionalWayne Gaylard12-May-10 4:08 
GeneralRe: Need help in query Pin
J4amieC12-May-10 5:23
J4amieC12-May-10 5:23 
QuestionHow can check the result of the TCP/IP connection???, Pin
Tunisien8611-May-10 23:37
Tunisien8611-May-10 23:37 
Hi,
I wanna ask How can I verify that my TCP/IP connection to the server is working well???
My code is:
string sConnection = "Provider=SQLNCLI.1;Persist Security Info=False;User ID=sa;Initial Catalog=GMAO;Data Source=127.0.0.1,1433;Password=sa;";
            string sSQL = "SELECT com FROM energie; ";
            SqlConnection conn = new SqlConnection(sConnection);
            SqlCommand comm = new SqlCommand(sSQL, conn);
            DataSet ds = new DataSet();

            SqlDataAdapter da = new SqlDataAdapter(sSQL,conn);   
            SqlDataReader dr = null;
            try
            {
                comm.Connection.Open();
                da.Fill(ds, "SQL Temp Table");
                foreach (DataRow d in ds.Tables[0].Rows)
                {
                    MessageBox.Show("xxxx");
                    comboBox1.Items.Add(d.ItemArray[0].ToString());
                }  

            }
            catch (SqlException ex)
            {
                MessageBox.Show("connexion impossible");
                MessageBox.Show(ex.Message);
                return;
            }

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

the error that must appears when connection is failed doesn't existe when running,IS it an indice that my connection goes well??
When googling,I found that the job activity monitor in the sql server management indicates that.is that true??how can I use that in checking my connection result???
Thanks Smile | :)
AnswerRe: How can check the result of the TCP/IP connection???, Pin
Simon_Whale12-May-10 0:14
Simon_Whale12-May-10 0:14 
GeneralRe: How can check the result of the TCP/IP connection???, Pin
Tunisien8612-May-10 1:02
Tunisien8612-May-10 1:02 
GeneralRe: How can check the result of the TCP/IP connection???, Pin
Simon_Whale12-May-10 1:07
Simon_Whale12-May-10 1:07 
AnswerRe: How can check the result of the TCP/IP connection???, Pin
CitrusTech12-May-10 20:12
CitrusTech12-May-10 20:12 
QuestionProblem to store file of size > 64 KB using BLOB in Interbase database Pin
navneet.professional11-May-10 21:14
navneet.professional11-May-10 21:14 
AnswerRe: Problem to store file of size > 64 KB using BLOB in Interbase database Pin
Bernhard Hiller12-May-10 2:35
Bernhard Hiller12-May-10 2:35 
AnswerRe: Problem to store file of size > 64 KB using BLOB in Interbase database Pin
Simon_Whale12-May-10 2:44
Simon_Whale12-May-10 2:44 
GeneralRe: Problem to store file of size > 64 KB using BLOB in Interbase database Pin
navneet.professional12-May-10 18:01
navneet.professional12-May-10 18:01 
AnswerRe: Problem to store file of size > 64 KB using BLOB in Interbase database Pin
Luc Pattyn12-May-10 4:24
sitebuilderLuc Pattyn12-May-10 4:24 
Questiona query !!! please help me fast fast fast Pin
reza assar11-May-10 1:45
reza assar11-May-10 1:45 
AnswerRe: a query !!! please help me fast fast fast Pin
J4amieC11-May-10 2:06
J4amieC11-May-10 2:06 
AnswerRe: a query !!! please help me fast fast fast Pin
The Man from U.N.C.L.E.11-May-10 7:10
The Man from U.N.C.L.E.11-May-10 7:10 
QuestionSearch + Sql server 2005 Pin
abcurl11-May-10 1:25
abcurl11-May-10 1:25 
AnswerRe: Search + Sql server 2005 Pin
Peace ON11-May-10 2:08
Peace ON11-May-10 2:08 
AnswerRe: Search + Sql server 2005 Pin
RyanEK11-May-10 15:47
RyanEK11-May-10 15:47 
GeneralRe: Search + Sql server 2005 Pin
abcurl11-May-10 19:01
abcurl11-May-10 19:01 
GeneralRe: Search + Sql server 2005 Pin
RyanEK11-May-10 19:48
RyanEK11-May-10 19:48 

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.