Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionMessage Removed Pin
9-May-10 4:13
Sr...Frank9-May-10 4:13 
AnswerRe: Close All Child Window on Menu Click! Pin
Not Active9-May-10 4:48
mentorNot Active9-May-10 4:48 
AnswerRe: Close All Child Window on Menu Click! Pin
Heinzzy9-May-10 5:47
Heinzzy9-May-10 5:47 
GeneralRe: Close All Child Window on Menu Click! Pin
Sr...Frank9-May-10 6:36
Sr...Frank9-May-10 6:36 
GeneralRe: Close All Child Window on Menu Click! Pin
Luc Pattyn9-May-10 6:41
sitebuilderLuc Pattyn9-May-10 6:41 
GeneralRe: Close All Child Window on Menu Click! Pin
Not Active9-May-10 9:48
mentorNot Active9-May-10 9:48 
Question"Search row" in DataGridView Pin
eyalbi0079-May-10 2:52
eyalbi0079-May-10 2:52 
QuestionRemote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 2:05
Tunisien869-May-10 2:05 
Hi,
I try to develop a csharp smart device application.I want to try the RDA method to connect to the database .mdf located in my collegue'sPC
My code is like that:
using System;
using System.Linq;
using System.Data.SqlServerCe;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ModeDifféré
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void Form6_Load(object sender, EventArgs e)
        {

            string sConnection = "Data Source=Bacem-PC;User ID=sa;Password=sa;Initial Catalog=GMAO;Persist Security Info=false;";
            string sSQL = "SELECT Nbt FROM 4BT; ";
            SqlConnection conn = new SqlConnection(sConnection);
            SqlCommand comm = new SqlCommand(sSQL, conn);
            SqlDataReader dr = null;
            try
            {
                
                comm.Connection.Open();
                dr = comm.ExecuteReader();
                while (dr.Read())
                    comboBox1.Items.Add(dr[0]);
            }
            catch (SqlException ex)
            {
                MessageBox.Show("connexion impossible");
                MessageBox.Show(ex.Message);
                return;
            }

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



where bacem-PC is my freind'sPC server .He enables remote connexion to his sql server.
When running,this error appears:"specified sql server not found or acces denied"
As a note,this is the same arror that appears when I try locally in my PC
I am really fed up of this annoying error??
URGENT HELP I NEED or i will be a mad person Blush | :O
Thanks
AnswerRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Stanciu Vlad9-May-10 9:30
Stanciu Vlad9-May-10 9:30 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 10:16
Tunisien869-May-10 10:16 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Stanciu Vlad9-May-10 10:28
Stanciu Vlad9-May-10 10:28 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien869-May-10 23:55
Tunisien869-May-10 23:55 
GeneralRe: Remote Data Acces RDA not allowed in csharp smart device,???? Pin
Tunisien8611-May-10 5:57
Tunisien8611-May-10 5:57 
QuestionDataGridView and On Screen Keyboard Pin
Member 36814439-May-10 1:31
Member 36814439-May-10 1:31 
GeneralRe: DataGridView and On Screen Keyboard Pin
Arindam Tewary9-May-10 20:33
professionalArindam Tewary9-May-10 20:33 
QuestionHow to use a file .udl as a connectionstring in csharp smart device??? Pin
Tunisien869-May-10 0:13
Tunisien869-May-10 0:13 
AnswerRe: How to use a file .udl as a connectionstring in csharp smart device??? Pin
Tunisien869-May-10 1:47
Tunisien869-May-10 1:47 
Question"Raw Ethernet Packet Sending" by "miahrugger" Pin
mragers8-May-10 23:09
mragers8-May-10 23:09 
AnswerRe: "Raw Ethernet Packet Sending" by "miahrugger" Pin
OriginalGriff8-May-10 23:14
mveOriginalGriff8-May-10 23:14 
Questionwindows picture and fax viewer Pin
jojoba20118-May-10 21:22
jojoba20118-May-10 21:22 
AnswerRe: windows picture and fax viewer Pin
Dimitri Witkowski8-May-10 21:41
Dimitri Witkowski8-May-10 21:41 
RantSOLVED Pin
jojoba20118-May-10 23:35
jojoba20118-May-10 23:35 
Questionremember user name password in login form? [modified] Pin
charles henington8-May-10 19:28
charles henington8-May-10 19:28 
AnswerRe: remember user name password in login form? Pin
Stanciu Vlad8-May-10 20:58
Stanciu Vlad8-May-10 20:58 
QuestionSQL server name not found:Admin-PC\MSSQLSERVER,1433 Pin
Tunisien868-May-10 4:58
Tunisien868-May-10 4:58 

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.