![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm coming from an MS-database world, using Access with VB, and SQL Server with C#. I'd like to try an opensource database instead of SQL Server one, but couldn't find answers to some basic questions: - can PostgreSQL database be stored in a single file, such as Access' mdb ones ? |
|
- if the answer is negative, in computers which use a program using PostgreSQL, how is stored the database and is it easily moveable ? |
|
- is there a DbProvider in ADO.Net 2 which works fine with PostgreSQL ? Or a separate one ? I'd like to use the database with C# and benefit of DB fonctionality of it. |
#3
| |||
| |||
|
|
Vivien Parlat <pocky6 (AT) gmail (DOT) com> wrote: I'm coming from an MS-database world, using Access with VB, and SQL Server with C#. I'd like to try an opensource database instead of SQL Server one, but couldn't find answers to some basic questions: - can PostgreSQL database be stored in a single file, such as Access' mdb ones ? It is obvious that you come from an MS-database world. |
|
No, you cannot have a PostgreSQL database in a single file. |
|
- if the answer is negative, in computers which use a program using PostgreSQL, how is stored the database and is it easily moveable ? A database is NOT something you carry around in a large file together with appication code. A PostgreSQL database is something running on a database server machine, it is a process to which you can connect with so-called clients to communicate with it. On the machine that runs the application (which can, but need not be the same as the machine runing the database) you install a client and with it access (the verb, not the Microsoft product) the database from your application. |
#4
| ||||
| ||||
|
|
In article <1161013966.104089 (AT) proxy (DOT) dienste.wien.at>, Laurenz Albe wrote: Vivien Parlat <pocky6 (AT) gmail (DOT) com> wrote: [``is postgresql like access?''] It is obvious that you come from an MS-database world. Be nice. |
|
No, you cannot have a PostgreSQL database in a single file. Oh yeah? What if I do a pg_dump of a database, directing its output into a file. |
|
Can't *run* it like that, but OP is interested in backups and switching hosting providers, right? |
|
Had my setup been all in one partition, I would have had the application, the database engine, the middleware, the client, the logs, and the kernel, all in one file (/dev/hda1), running. |
#5
| ||||
| ||||
|
|
In article <1161013966.104089 (AT) proxy (DOT) dienste.wien.at>, Laurenz Albe wrote: Vivien Parlat <pocky6 (AT) gmail (DOT) com> wrote: I'm coming from an MS-database world, using Access with VB, and SQL Server with C#. I'd like to try an opensource database instead of SQL Server one, but couldn't find answers to some basic questions: - can PostgreSQL database be stored in a single file, such as Access' mdb ones ? It is obvious that you come from an MS-database world. Be nice. |
|
No, you cannot have a PostgreSQL database in a single file. Oh yeah? What if I do a pg_dump of a database, [...] |
|
I once wrote a little database app during a plane ride. [...] all in one file (/dev/hda1), running. |
|
Don't say "can't." Say "I don't know how yet." |
#6
| |||
| |||
|
|
I didn't intend to be abusive, my apologies if it sounds that way. I don't think that 'coming from an MS-database world' is bad or ridiculous per se. In fact, it's the right direction to move. |
|
I'll continue to be nice, and won't accuse you of nitpicking :^) The original poster was certainly talking about an operational database that you can connect to. |
|
I guess that you have as little exposure to Microsoft Access as I have, so you probably are not aware that with this piece of software you can create one big file that contains a 'database' and application code, and by double clicking on the file you can start the application and access the data contained in the database. If this file is fairly large and several people access it via network concurrently, it's a good way to bring a strong network to its knees. |
#7
| |||||
| |||||
|
|
Cameron L. Spitzer <spambait (AT) merde (DOT) greens.org> wrote: In article <1161013966.104089 (AT) proxy (DOT) dienste.wien.at>, Laurenz Albe wrote: Vivien Parlat <pocky6 (AT) gmail (DOT) com> wrote: I'm coming from an MS-database world, using Access with VB, and SQL Server with C#. I'd like to try an opensource database instead of SQL Server one, but couldn't find answers to some basic questions: - can PostgreSQL database be stored in a single file, such as Access' mdb ones ? It is obvious that you come from an MS-database world. |
|
Be nice. I didn't intend to be abusive, my apologies if it sounds that way. I don't think that 'coming from an MS-database world' is bad or ridiculous per se. In fact, it's the right direction to move. |
I yet saw that database-in-one-file seems to be more|
No, you cannot have a PostgreSQL database in a single file. Oh yeah? What if I do a pg_dump of a database, [...] I'll continue to be nice, and won't accuse you of nitpicking :^) The original poster was certainly talking about an operational database that you can connect to. |
|
I guess that you have as little exposure to Microsoft Access as I have, so you probably are not aware that with this piece of software you can create one big file that contains a 'database' and application code, and by double clicking on the file you can start the application and access the data contained in the database. If this file is fairly large and several people access it via network concurrently, it's a good way to bring a strong network to its knees. |
|
Ok, sorry, but now you're really nitpicking. Most things on a UNIX type operating system can be called a file with some justice, but unless you're out to confuse somebody who is coming from a Microsoft environment, it's not wise to stress this terminology. |
#8
| |||
| |||
|
|
I didn't intend to be abusive, my apologies if it sounds that way. I don't think that 'coming from an MS-database world' is bad or ridiculous per se. In fact, it's the right direction to move. Especially if you've been using Access... I'd touch it only if threatened with a rifle... (yes, I've once tried to build an application on top of it, aaaarghhhh...) |
|
BTW, there is something called SQLite, which is a single file, if that's what really is needed. Haven't ever tested but might work as a replacement for Access. |
|
Calling Access a database is an insult to all decent databases. It's an overgrown cardfile with some relational add-ons and horribly non-standard SQL-interface... |
#9
| |||
| |||
|
|
I know the "in unix everything is a file" (thanks to university), I use Access because my job needs me to do it. What I'm doing (as a personal project) is a small app, I don't consider asking (potential) user to install an Oracle server at home. Visual C# offering smart and useful database integration, I'm looking for a database which would offer an Ado.Net 2 compliant interface, as well as easy storage. |
#10
| |||
| |||
|
|
In fact I use Oracle too, so the idea of an client/server database isn't new to me. [...] I know the "in unix everything is a file" (thanks to university), I use Access because my job needs me to do it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |