pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kona ajay <konaajay@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: cant insert into a postgre sql table from c# please help to solve this......... |Thanks very much in advance
Date: Mon, 14 Apr 2014 15:50:13 +0530
Message-ID: <CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

here i am sending my actual code







  string employee = "insert into  VSP_Employee values ('" + txtEmpid.Text +
"','" + txtEmpname.Text + "','" + txtEmailid.Text + "','" + txtphnum.Text +
"','" + txtDOB.Text + "','"  +txtDOJ.Text + "','" + txtNOD.Text + "','" +
txtSalary.Text + "','" + txtLeavestaken.Text + "','" +
txtLeavesBalance.Text + "','" + txtPlannedleaves.Text+"')";
                    NpgsqlDataAdapter da = new NpgsqlDataAdapter(employee,
conn);
                    cmd = new NpgsqlCommand(employee, conn);
                    da = new  NpgsqlDataAdapter(cmd);
                    ds = new DataSet();
                    da.Fill(ds, "VSP_Employee");



                              Please help me in fixing this . Thanking you

Message-ID: <CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com>
Permalink:  ../CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com/
Also on:    postgresql.org/message-id/CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: konaajay@gmail.com
  Subject: Re: cant insert into a postgre sql table from c# please help to solve this......... |Thanks very much in advance
  In-Reply-To: <CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com>
  References: <CA+4EtZvxp9tVajdpsSHV9eQLTzTdS8xSH_yaKPTH9WSSLRJKDA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox