Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General PostgreSQL Topics / June 2006

Tip: Looking for answers? Try searching our database.

CREATEUSER question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nevikski - 01 Jun 2006 13:03 GMT
HI

Is it possible to call CREATEUSER in VB.Net code so that a user password is
added and there is no prompts

Thanks in advance
nivekski - 02 Jun 2006 00:32 GMT
Adding further
The command line prompts for a login password, is there anyway of including
that on the command line?
CREATEUSER -D -A -e -l -S -R -h localhost -U postgre testname

Thanks

Signature

Nevikski
www.kevsbox.com

> HI
>
> Is it possible to call CREATEUSER in VB.Net code so that a user password
> is added and there is no prompts
>
> Thanks in advance
Bent Stigsen - 02 Jun 2006 16:15 GMT
> Adding further
> The command line prompts for a login password, is there anyway of including
> that on the command line?
> CREATEUSER -D -A -e -l -S -R -h localhost -U postgre testname

I haven't worked with postgres under .Net, so perhaps a stupid
question, but is there any reason why you can't connect to the server
directly and send a create user command?

If that is not possible, then I assume you can redirect and read/write
to std-input/output of the process.

/Bent
Jens Henrik Leonhard Jensen - 07 Jun 2006 00:58 GMT
Se http://www.postgresql.org/docs/techdocs.8 for how to connect to
postgresql from .net.
After you have a connection, you can send the sql to create a new user.

/Jens Henrik

>> Adding further
>> The command line prompts for a login password, is there anyway of
[quoted text clipped - 9 lines]
>
> /Bent
Nevikski - 16 Jun 2006 08:27 GMT
Thanks, now sorted

> Se http://www.postgresql.org/docs/techdocs.8 for how to connect to
> postgresql from .net.
[quoted text clipped - 15 lines]
>>
>> /Bent
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.