Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZkna-00037X-0C for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Apr 2014 17:36:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZknZ-0004uP-EE for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Apr 2014 17:36:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZdzs-0005Z8-21 for pgsql-bugs@postgresql.org; Mon, 14 Apr 2014 10:20:16 +0000 Received: from mail-la0-x243.google.com ([2a00:1450:4010:c03::243]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZdzp-0005us-RO for pgsql-bugs@postgresql.org; Mon, 14 Apr 2014 10:20:15 +0000 Received: by mail-la0-f67.google.com with SMTP id gl10so1778720lab.6 for ; Mon, 14 Apr 2014 03:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wMOd2QFpZVzaC6XtyQ7Adji9Om2qqCUpWXp9gujJCgw=; b=AfKc0Hgl/21ajLltIQy+Vp+XxJYg9Qtel+PDukEX73nHEgOtYNVuqXfdwmUsMH3sAI zVt2WQZEPt25u8Mc0unIoJWL6wD9jnZnRUntVix1O2cFJEE8h0dThOZ79ml3QXI0zqTK +LC3FTb9r190pQEUQMSDUE5YvZ9VurreXl3ZrdYMZc+K8iLNVmy0nskMYQpfXGvMJcvl GOxQ1ZB+b4LP1i7JdOmqjozVjNDtmHcnlZM1eG2A1vV7TYz17uUvpBX3FMkN7ljOpRG8 N4s1LbE3GaJnUHVaGOiusVykJn7k4WcF3GOvADAZ8B4IHbUDevSKXhebIWNQk6pQfKQC YPjQ== MIME-Version: 1.0 X-Received: by 10.152.36.73 with SMTP id o9mr1865039laj.30.1397470813417; Mon, 14 Apr 2014 03:20:13 -0700 (PDT) Received: by 10.112.155.66 with HTTP; Mon, 14 Apr 2014 03:20:13 -0700 (PDT) Date: Mon, 14 Apr 2014 15:50:13 +0530 Message-ID: Subject: cant insert into a postgre sql table from c# please help to solve this......... |Thanks very much in advance From: kona ajay To: pgsql-bugs@postgresql.org Content-Type: multipart/alternative; boundary=089e0160adf86af56a04f6fe07fa X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --089e0160adf86af56a04f6fe07fa Content-Type: text/plain; charset=ISO-8859-1 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 --089e0160adf86af56a04f6fe07fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
here i am sending my actual code







=A0 str= ing employee =3D "insert into =A0VSP_Employee values ('" + tx= tEmpid.Text + "','" + txtEmpname.Text + "','= " + txtEmailid.Text + "','" + txtphnum.Text + "= ','" + txtDOB.Text + "','" =A0+txtDOJ.Text += "','" + txtNOD.Text + "','" + txtSalar= y.Text + "','" + txtLeavestaken.Text + "','&= quot; + txtLeavesBalance.Text + "','" + txtPlannedleaves.= Text+"')";
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 NpgsqlDataAdapter da =3D new N= pgsqlDataAdapter(employee, conn);
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 cmd =3D new NpgsqlCommand(employee, conn);
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 da =3D new =A0NpgsqlDataAdapter(cmd);
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ds =3D new DataSet();
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 da.Fill(ds, "VSP_Employee&qu= ot;);



=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 P= lease help me in fixing this . Thanking you
--089e0160adf86af56a04f6fe07fa--