Click here to Skip to main content
15,906,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:04
Michel Godfroid5-May-10 4:04 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 4:22
Tunisien865-May-10 4:22 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:47
Michel Godfroid5-May-10 4:47 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 5:24
Tunisien865-May-10 5:24 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 5:52
Michel Godfroid5-May-10 5:52 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien866-May-10 1:43
Tunisien866-May-10 1:43 
AnswerRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien8611-May-10 6:03
Tunisien8611-May-10 6:03 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Eddy Vluggen5-May-10 4:24
professionalEddy Vluggen5-May-10 4:24 
Tunisien86 wrote:
In fact,my combobox should contain the result of my select statement,but when running,the system is show an sqlexception and nothing is added to my combobox.

It's easier to find a problem if you include the message of the exception. In this case it's probably caused by a common error - your tablenames contain illegal characters. You can "fix" it with brackets;
C#
string sSQL = "SELECT DISTINCT * FROM [D°_urgence]";


Also note that the change in code assumes that your select-statement is run against an SQL Server instance, one that has access to the *.mdf-file that you want to read from. If this data is stored locally, in an *.sdf file, then you'd indeed need the SqlCe-classes.

Tunisien86 wrote:
Or should I take the physical @ as the @ of my computer?

Ideally, you take the computers' name and the instance name and put it in a configurationfile. Something like "Admin-PC/MySql2005Instance". There might be lots of IP-adresses on a computer, but it usually only has a single name that identifies it in the network. It also communicates easier, imagine yelling "Reboot Skynet and Idefix" in contract to "Reboot One-Nine-Two Doht One-Six-Eight Doht One Doht Zero.. - No Four, I meant Four!" Cool | :cool:
I are Troll Suspicious | :suss:

GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 4:49
Tunisien865-May-10 4:49 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien866-May-10 2:17
Tunisien866-May-10 2:17 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Eddy Vluggen6-May-10 2:29
professionalEddy Vluggen6-May-10 2:29 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien866-May-10 3:40
Tunisien866-May-10 3:40 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien866-May-10 4:58
Tunisien866-May-10 4:58 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Eddy Vluggen6-May-10 5:30
professionalEddy Vluggen6-May-10 5:30 
AnswerRe: TCP/IP connexion failed in csharp smart device Pin
Luc Pattyn5-May-10 2:57
sitebuilderLuc Pattyn5-May-10 2:57 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 3:22
Tunisien865-May-10 3:22 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Luc Pattyn5-May-10 3:43
sitebuilderLuc Pattyn5-May-10 3:43 
AnswerRe: TCP/IP connexion failed in csharp smart device Pin
Pete O'Hanlon5-May-10 3:57
mvePete O'Hanlon5-May-10 3:57 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 4:08
Tunisien865-May-10 4:08 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:16
Michel Godfroid5-May-10 4:16 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 5:06
Tunisien865-May-10 5:06 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 5:12
Michel Godfroid5-May-10 5:12 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 5:29
Tunisien865-May-10 5:29 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:08
Michel Godfroid5-May-10 4:08 
AnswerRe: TCP/IP connexion failed in csharp smart device Pin
Pete O'Hanlon5-May-10 4:40
mvePete O'Hanlon5-May-10 4:40 

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.