J
Jacek Jurkowski
.... I'm trying to retrieve an Image from Image field
of a remote SQLServer Table.
The code is simple:
SqlConnection c = new SqlConnection("Data
Source=XX.XX.XXX.XX;Initial Catalog=STFManager;Persist Security
Info=True;User ID=XXXX;password=XXXX");
c.Open();
SqlCommand sc = new SqlCommand("select photo from images where
id = 'ce35d01b-5201-42b1-819b-300edc0d3daf'", c);
SqlDataReader r = sc.ExecuteReader();
r.Read();
f.e MessageBox.Show(r[0].ToString());
r.Dispose();
c.Close();
return;
Everytime doing that I got a timeout exception regardless of the
size of an image. It could be caused by the network slowness or
lags but the same command executed by SQLServer Query designer runs
almoust imediatelly ...
What's wrong? Some bug may be?
of a remote SQLServer Table.
The code is simple:
SqlConnection c = new SqlConnection("Data
Source=XX.XX.XXX.XX;Initial Catalog=STFManager;Persist Security
Info=True;User ID=XXXX;password=XXXX");
c.Open();
SqlCommand sc = new SqlCommand("select photo from images where
id = 'ce35d01b-5201-42b1-819b-300edc0d3daf'", c);
SqlDataReader r = sc.ExecuteReader();
r.Read();
f.e MessageBox.Show(r[0].ToString());
r.Dispose();
c.Close();
return;
Everytime doing that I got a timeout exception regardless of the
size of an image. It could be caused by the network slowness or
lags but the same command executed by SQLServer Query designer runs
almoust imediatelly ...
What's wrong? Some bug may be?