pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: aspnet postgresql connection setting
Date: Wed, 15 Mar 2017 23:06:02 -0700
Message-ID: <5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.com> (raw)
In-Reply-To: <830123423A8BD849BC45E3ABD684B396498E7692@FTEX6.FT.FTG.COM>
References: <830123423A8BD849BC45E3ABD684B396498E7692@FTEX6.FT.FTG.COM>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 3/15/2017 10:18 PM, anderson.hsu@fengtay.com wrote:
> Our website is produced by using aspnet + mssql, and then we would 
> like to move database from mssql to postgresql. But about the database 
> connection setting in web.config, we are not sure how to modify the 
> setting as listed as below:
> <add key="CconString" 
> value="Server='7a0642076\SQLEXPRESS';uid='sa';pwd='water';database='DB14017'"/>
>          <add key="VBconString" 
> value="Server=7a0642076\SQLEXPRESS;uid=sa;pwd=water;database=DB14017"/>
> .....

that is all Microsoft SQL Server specific, somewhere else you must be 
connecting to the mssql ado driver.
you need to install and use NPGSQL, which implements a .NET data 
provider for Postgresql.     I don't program in that world, but here's 
home page for it...

http://www.npgsql.org/doc/index.html




-- 
john r pierce, recycling bits in santa cruz

view thread (2+ messages)

Message-ID: <5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.com>
Permalink:  ../5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.com/
Also on:    postgresql.org/message-id/5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.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: pierce@hogranch.com
  Subject: Re: aspnet postgresql connection setting
  In-Reply-To: <5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.com>
  References: <830123423A8BD849BC45E3ABD684B396498E7692@FTEX6.FT.FTG.COM> <5a96a64a-c355-3f64-5071-14f6f7418c31@hogranch.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