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

C#

 
QuestionFiltering a typed datatable problem Pin
blakey40430-May-08 0:17
blakey40430-May-08 0:17 
AnswerRe: Filtering a typed datatable problem Pin
Rob Smiley30-May-08 5:25
Rob Smiley30-May-08 5:25 
GeneralRe: Filtering a typed datatable problem Pin
blakey40430-May-08 7:51
blakey40430-May-08 7:51 
GeneralRe: Filtering a typed datatable problem Pin
blakey40430-May-08 7:57
blakey40430-May-08 7:57 
GeneralRe: Filtering a typed datatable problem Pin
Rob Smiley30-May-08 8:56
Rob Smiley30-May-08 8:56 
AnswerRe: Filtering a typed datatable problem Pin
blakey40430-May-08 12:59
blakey40430-May-08 12:59 
QuestionReading word formatting in C# Pin
kindzal29-May-08 23:00
kindzal29-May-08 23:00 
QuestionHelp in Database Connection Pin
Saiyed Alam29-May-08 21:54
Saiyed Alam29-May-08 21:54 
try
{
// Server SvrNm = new Server();
// SvrNm.ShowDialog();
string line;
StreamReader sr = new StreamReader("Server.ini");
line = sr.ReadLine();
sr.Close();

string connString = "packet size=4096;data source='" + line.Trim() + "';user id='sa';password='';persist security info=False;initial catalog=uhtmch;";
//string connString = "Data Source='"+ line.Trim ()+"';Initial Catalog=uHTMCM;Integrated Security=SSPI;Pooling=False";
//string connString = "server='"+ line.Trim ()+"';database=uHTMCM;uid=sa;pwd=;Integrated Security=true";

conn = new SqlConnection(connString);
conn.Open();
}


Above is the code I wrote to connect to a SQL server database which is on the network(in another pc). The "Server.ini" file has the name of the pc in which the SQL Server ddatabase is running. But every time I run the code It says timeout, The server is not responding. How can I solve this problem?
AnswerRe: Help in Database Connection Pin
Harvey Saayman29-May-08 22:24
Harvey Saayman29-May-08 22:24 
GeneralRe: Help in Database Connection Pin
Saiyed Alam30-May-08 1:34
Saiyed Alam30-May-08 1:34 
GeneralRe: Help in Database Connection Pin
Harvey Saayman30-May-08 1:40
Harvey Saayman30-May-08 1:40 
GeneralRe: Help in Database Connection Pin
Saiyed Alam30-May-08 1:54
Saiyed Alam30-May-08 1:54 
GeneralRe: Help in Database Connection Pin
Harvey Saayman30-May-08 1:58
Harvey Saayman30-May-08 1:58 
GeneralRe: Help in Database Connection Pin
Saiyed Alam30-May-08 16:22
Saiyed Alam30-May-08 16:22 
AnswerRe: Help in Database Connection Pin
Ashfield30-May-08 1:35
Ashfield30-May-08 1:35 
GeneralRe: Help in Database Connection Pin
Saiyed Alam30-May-08 16:30
Saiyed Alam30-May-08 16:30 
Questionerror stop a Windows service Pin
George_George29-May-08 21:45
George_George29-May-08 21:45 
AnswerRe: error stop a Windows service Pin
Zoltan Balazs29-May-08 21:51
Zoltan Balazs29-May-08 21:51 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 21:58
George_George29-May-08 21:58 
GeneralRe: error stop a Windows service Pin
leppie29-May-08 22:05
leppie29-May-08 22:05 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 23:22
George_George29-May-08 23:22 
GeneralRe: error stop a Windows service Pin
leppie29-May-08 23:55
leppie29-May-08 23:55 
GeneralRe: error stop a Windows service Pin
George_George30-May-08 0:03
George_George30-May-08 0:03 
GeneralRe: error stop a Windows service Pin
Zoltan Balazs29-May-08 22:08
Zoltan Balazs29-May-08 22:08 
GeneralRe: error stop a Windows service Pin
George_George29-May-08 23:21
George_George29-May-08 23:21 

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.