Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9045443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:19:17+00:00 2026-06-16T11:19:17+00:00

plz , can anyone help in this code ?? string imagename=test.png; string imagepath=Server.MapPath(\\images); SqlConnection

  • 0

plz , can anyone help in this code ??

string imagename="test.png";
        string imagepath=Server.MapPath("\\images");
        SqlConnection con = new SqlConnection();
        SqlConnectionStringBuilder S = new SqlConnectionStringBuilder("data source=hima-pc\\sql8;initial catalog=test; integrated security= True;pooling=false ");
        con.ConnectionString = S.ConnectionString;
        con.Open();
        string sqlcon = "insert into images(imgname,imgpath)values("+imagename+","+imagepath+")";

        SqlCommand myCom = new SqlCommand(sqlcon,con);
        int numrow = myCom.ExecuteNonQuery();
        con.Close();

plz i need to save the path of image in my database
but without uploadfile
my image is already in the folder in server

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:19:18+00:00Added an answer on June 16, 2026 at 11:19 am

    seems like ‘ are missing

    string sqlcon = "insert into images(imgname,imgpath)values('"+imagename+"','"+imagepath+"')";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone plz help? When I was analysing my source code simply via cppcheck
Can anyone plz help me, how to save my QtableView as a Excel File.
Can anyone please help me through this.... I have two input fields in my
Do you know any elegant way to achieve this in ruby plz ? string
am getting this error when i open my site in internet explorer......... plz help
plz help, I'm stuck. I have a WCF service which returns something like this:
Hello guys can anyone help me with the issue im having with installation of
Hi there everyone im a newbie so can anyone of u help me solve
I am loading the images from a server like this... - (id)init { self
plz check the code below: for(i=0; i-DIL; i++)//see the condition here i-DIL .Is this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.