Click here to Skip to main content
15,895,557 members
Home / Discussions / Database
   

Database

 
GeneralRe: Update a datatable to database Pin
Joe14-Feb-08 18:48
Joe14-Feb-08 18:48 
GeneralPassing Parameters to Strored Procedure Pin
dnsl13-Feb-08 23:36
dnsl13-Feb-08 23:36 
GeneralRe: Passing Parameters to Strored Procedure [modified] Pin
Vimalsoft(Pty) Ltd14-Feb-08 20:13
professionalVimalsoft(Pty) Ltd14-Feb-08 20:13 
GeneralRe: Passing Parameters to Strored Procedure Pin
Ashfield15-Feb-08 9:48
Ashfield15-Feb-08 9:48 
Generalerror in local works fine in server Pin
new2pgrmg13-Feb-08 23:21
new2pgrmg13-Feb-08 23:21 
GeneralRe: error in local works fine in server Pin
Joe14-Feb-08 0:03
Joe14-Feb-08 0:03 
GeneralRe: error in local works fine in server Pin
new2pgrmg14-Feb-08 1:13
new2pgrmg14-Feb-08 1:13 
GeneralSaving Image Pin
mwanyu13-Feb-08 21:11
mwanyu13-Feb-08 21:11 
Hello,

I am trying to retrieve an image from SQL but the line didPreviouslyConnect = true; is giving an error.HELP!!ME!!
I have the code writen


private void RetrieveImage()
{
try
{

SqlConnection PicCon = new SqlConnection();
SqlDataAdapter da = new SqlDataAdapter("SELECT photo FROM Upload where Account_No = '" + Txt_balance.Text + "," + Txt_Bankcharge.Text + "," + Txt_Refundamount.Text + "," + Txt_TellerID.Text + "," + Txt_Tellername.Text + "'", PicCon);
SqlCommandBuilder cbd = new SqlCommandBuilder(da);
dsPictures = new DataSet();
da.Fill(dsPictures);
didPreviouslyConnect = true;
byte[] arrPicture = (byte[])dsPictures.Tables[0].Rows[0]["photo"];
MemoryStream ms = new MemoryStream(arrPicture);
pictureBox2_Accountholder.Image = Image.FromStream(ms);
pictureBox2_Accountholder.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox2_Accountholder.BorderStyle = BorderStyle.Fixed3D;
ms.Close();

}
catch (Exception e1)
{
MessageBox.Show(e1.Message.ToString());
}

KIDO KIDI MINI REZA
HERE FIX DI MATURITY
SAMBA RAMBA DIBLO
STYLE ANTIDIZASTA
BLISH MANTIRIOLOJ

GeneralRe: Saving Image Pin
Giorgi Dalakishvili13-Feb-08 22:43
mentorGiorgi Dalakishvili13-Feb-08 22:43 
Generalreplace '1/1/1900' to NULL in MS SQL Pin
John Sundar13-Feb-08 20:39
John Sundar13-Feb-08 20:39 
GeneralRe: replace '1/1/1900' to NULL in MS SQL Pin
Colin Angus Mackay13-Feb-08 21:11
Colin Angus Mackay13-Feb-08 21:11 
GeneralIncluding MSSQL in a C# application for a client. Pin
AlainMesias13-Feb-08 15:51
AlainMesias13-Feb-08 15:51 
Generalcopy datarow Pin
Smithers-Jones13-Feb-08 10:01
Smithers-Jones13-Feb-08 10:01 
GeneralRe: copy datarow Pin
pmarfleet13-Feb-08 11:08
pmarfleet13-Feb-08 11:08 
GeneralRe: copy datarow Pin
Smithers-Jones13-Feb-08 11:45
Smithers-Jones13-Feb-08 11:45 
GeneralStored procedure returning dataset Pin
#realJSOP13-Feb-08 8:26
mve#realJSOP13-Feb-08 8:26 
GeneralRe: Stored procedure returning dataset Pin
pmarfleet13-Feb-08 11:07
pmarfleet13-Feb-08 11:07 
GeneralDeleting top 3 from a select [modified] Pin
Dio2213-Feb-08 7:42
Dio2213-Feb-08 7:42 
GeneralRe: Deleting top 3 from a select Pin
Dio2213-Feb-08 8:37
Dio2213-Feb-08 8:37 
QuestionBest way to store addresses ?? Pin
C. L. Phillip13-Feb-08 5:10
C. L. Phillip13-Feb-08 5:10 
GeneralRe: Best way to store addresses ?? Pin
Joe13-Feb-08 6:07
Joe13-Feb-08 6:07 
GeneralQuestion regarding ADO (not .NET) -> Getting stored procedures signatures. Pin
Green Fuze13-Feb-08 5:09
Green Fuze13-Feb-08 5:09 
GeneralStored procedure Pin
new2pgrmg13-Feb-08 4:23
new2pgrmg13-Feb-08 4:23 
GeneralRe: Stored procedure Pin
andyharman13-Feb-08 4:30
professionalandyharman13-Feb-08 4:30 
JokeRe: Stored procedure Pin
Paddy Boyd13-Feb-08 5:04
Paddy Boyd13-Feb-08 5:04 

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.