Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Maximum number of lines within a class Pin
Luc Pattyn11-May-10 7:58
sitebuilderLuc Pattyn11-May-10 7:58 
GeneralRe: Maximum number of lines within a class Pin
PIEBALDconsult11-May-10 15:21
mvePIEBALDconsult11-May-10 15:21 
GeneralRe: Maximum number of lines within a class Pin
Luc Pattyn11-May-10 15:39
sitebuilderLuc Pattyn11-May-10 15:39 
AnswerRe: Maximum number of lines within a class Pin
Abhinav S11-May-10 7:52
Abhinav S11-May-10 7:52 
AnswerRe: Maximum number of lines within a class Pin
Bernhard Hiller12-May-10 3:56
Bernhard Hiller12-May-10 3:56 
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 
Hi guys,
I develop a csharp smart device application
In order to establish a TCP/IP connection to my .mdf database,I use the above connection string:
string sConnection = "Provider=SQLOLEDB;Data Source=127.0.0.1,7438;Persist Security Info=True;Network Library=dbmssocn;Initial Catalog=GMAO;User ID=sa;Password=sa";

where the Data source is the @of my server that I found due the netstat -an command:
C:\Users\Admin>netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:7              0.0.0.0:0              LISTENING
  TCP    0.0.0.0:9              0.0.0.0:0              LISTENING
  TCP    0.0.0.0:13             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:17             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:19             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:515            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:990            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1433           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2103           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2105           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2107           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2383           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49159          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49160          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:54667          0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1434         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1801         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:5679         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:7438         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:49172        127.0.0.1:49173        ESTABLISHE
  TCP    127.0.0.1:49173        127.0.0.1:49172        ESTABLISHE
  TCP    127.0.0.1:49185        127.0.0.1:49186        ESTABLISHE
  TCP    127.0.0.1:49186        127.0.0.1:49185        ESTABLISHE
  TCP    192.168.1.5:139        0.0.0.0:0              LISTENING
  TCP    192.168.1.5:50303      69.63.190.10:80        TIME_WAIT
  TCP    192.168.1.5:50309      92.122.217.40:80       TIME_WAIT
  TCP    192.168.1.5:50317      65.54.166.122:80       ESTABLISHE
  TCP    192.168.1.5:50321      64.4.30.89:80          ESTABLISHE
  TCP    192.168.1.5:50322      65.54.166.122:80       ESTABLISHE
  TCP    192.168.1.5:50324      65.54.166.122:80       ESTABLISHE
  TCP    192.168.1.5:50327      69.63.176.193:80       ESTABLISHE
  TCP    [::]:7                 [::]:0                 LISTENING
  TCP    [::]:9                 [::]:0                 LISTENING
  TCP    [::]:13                [::]:0                 LISTENING
  TCP    [::]:17                [::]:0                 LISTENING
  TCP    [::]:19                [::]:0                 LISTENING
  TCP    [::]:80                [::]:0                 LISTENING
  TCP    [::]:135               [::]:0                 LISTENING
  TCP    [::]:445               [::]:0                 LISTENING
  TCP    [::]:515               [::]:0                 LISTENING
  TCP    [::]:990               [::]:0                 LISTENING
  TCP    [::]:1433              [::]:0                 LISTENING
  TCP    [::]:2103              [::]:0                 LISTENING
  TCP    [::]:2105              [::]:0                 LISTENING
  TCP    [::]:2107              [::]:0                 LISTENING
  TCP    [::]:2383              [::]:0                 LISTENING
  TCP    [::]:49152             [::]:0                 LISTENING
  TCP    [::]:49153             [::]:0                 LISTENING
  TCP    [::]:49154             [::]:0                 LISTENING
  TCP    [::]:49155             [::]:0                 LISTENING
  TCP    [::]:49156             [::]:0                 LISTENING
  TCP    [::]:49159             [::]:0                 LISTENING
  TCP    [::]:49160             [::]:0                 LISTENING
  TCP    [::]:54667             [::]:0                 LISTENING
  TCP    [::1]:1434             [::]:0                 LISTENING
  TCP    [::1]:1801             [::]:0                 LISTENING
  TCP    [::1]:5679             [::]:0                 LISTENING

In fact,the sql server listens to port 1433 but i don't found this in the command.
Also when running my program,this error annoys me:
Unknown connection option in connection string: provider.

what is the problem???
I found the connectionstring format in this link http://support.microsoft.com/kb/287932/[^] in order to depass the error Frown | :( :"Specified sql server not found or access denied"
Thank u for u clarification
Cry | :((
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 
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 

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.