Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 4th July 2012, 11:17 AM   #16
walker_2003 Thread Starter
Member
 
walker_2003's Avatar
 
Join Date: Jan 2003
Location: Canberra
Posts: 4,342
Default

Quote:
Originally Posted by cvidler View Post
Don't use Access. It's a toy database, for managing your home DVD collection, not for real work*.

As said SQL Express can deal with up to 4GB, and it's free (check the license agreement).

mysql is free free, has some good management GUIs/IDEs available.


*I've seen what happens when it's used for work environments and becomes an essential part of business, it's not pretty, and becomes expensive to rectify (because it requires full redevelopment in something that supports larger data sizes and multi-user access etc.).
Is this the program you refer to? http://www.microsoft.com/en-us/downl...s.aspx?id=1695
__________________
My rig i7-2600k@4.6 | Z68X-UD7| 16 GIG | GTX 690 | 120 Intel 520 | Win 7 64-Bit | D5 & XSPC W/C | 800D | 24" ASUS 120hz
I am the 120fps Nazi
walker_2003 is offline   Reply With Quote

Join OCAU to remove this ad!
Old 4th July 2012, 11:24 AM   #17
cvidler
Member
 
cvidler's Avatar
 
Join Date: Jun 2001
Location: Canberra
Posts: 7,166
Default

Quote:
Originally Posted by walker_2003 View Post
Yep. that's SQL Express edition. (also previously known as MSDE, MS SQL Desktop Edition)
__________________
We might eviscerate your arguments, but we won't hurt you. Honest! - Lucifers Mentor
⠠⠵
[#]
cvidler is online now   Reply With Quote
Old 4th July 2012, 11:30 AM   #18
Luke212
Member
 
Join Date: Feb 2003
Location: NSW
Posts: 6,430
Default

Quote:
Originally Posted by pittster View Post
You can get SQL Express for free and it can handle up to 4Gb maybe give that a shot
express is 10GB now

Quote:
Originally Posted by walker_2003 View Post
no, get 2012 not 2008 lol

bugayev edit: please don't multi post.
__________________
Democracy's greatest trick was convincing man he was informed.

Last edited by bugayev; 4th July 2012 at 2:01 PM.
Luke212 is offline   Reply With Quote
Old 4th July 2012, 12:14 PM   #19
Snowblindnz
Member
 
Join Date: Sep 2010
Posts: 79
Default

I have worked with a 1.5gb csv file before, it can be a real pain.

If you want to open the file to browse, PFE works great. it looks crap, is really old, but works great with large files: http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/

After trying every way I could think of to get the file into a database, I ended up doing the following:
1) Installed xampp (a WAMP stack).
2) Set the max php execution time to 0 in the php.ini config.
3) Wrote a (~20 line) php script that opened the file and read it line by line, dumping it into mysql line by line.

To import the whole thing, it took about 6 hours on a 1.5tb 7200rpm WD drive, and about 1.5 hours on a corsair 64gb SSD. This was on the same dev machine (win7, i7 920, 12gb ram)

Once in the mysql database, it worked fine (browsable via phpmyadmin, and php queries ran ok).
Snowblindnz is offline   Reply With Quote
Old 4th July 2012, 12:19 PM   #20
gcflora
Member
 
gcflora's Avatar
 
Join Date: Jun 2012
Posts: 590
Default

Quote:
Originally Posted by cvidler View Post
Don't use Access. It's a toy database, for managing your home DVD collection, not for real work*.

[...]

*I've seen what happens when it's used for work environments and becomes an essential part of business, it's not pretty, and becomes expensive to rectify (because it requires full redevelopment in something that supports larger data sizes and multi-user access etc.).
I've heard this said many times and it's not necessarily true (IMO). If the person/people who create the MS-Access database are competent Access databases do not necessarily result in complete disasters. It's when people with no DB experience and no programming experience clobber something together when problems begin to arise. MS-Access is good, IMO, for the following:
  • Quick-and-dirty analysis
  • Quick-and-dirty tests/demonstrations
  • Databases that are never going to be large or complex (famous last words, hey? )
  • Single user 'private' databases

MS-Access is also not single user... it can happily cope with multiple user/access (well, in my extensive testing it can at least support a number of connections > 1)

But yeah, with the Express edition of things available these days MS-Access is probably pointless.

I'd also use PostgreSQL over MySQL any day!
gcflora is offline   Reply With Quote
Old 4th July 2012, 12:23 PM   #21
Luke212
Member
 
Join Date: Feb 2003
Location: NSW
Posts: 6,430
Default

i have one company with 150 users accessing MS Access hehehe

its not ideal!
__________________
Democracy's greatest trick was convincing man he was informed.
Luke212 is offline   Reply With Quote
Old 4th July 2012, 12:40 PM   #22
gcflora
Member
 
gcflora's Avatar
 
Join Date: Jun 2012
Posts: 590
Default

Quote:
Originally Posted by Luke212 View Post
i have one company with 150 users accessing MS Access hehehe

its not ideal!


yes, ok...
gcflora is offline   Reply With Quote
Old 4th July 2012, 1:02 PM   #23
Luke212
Member
 
Join Date: Feb 2003
Location: NSW
Posts: 6,430
Default

Quote:
Originally Posted by gcflora View Post


yes, ok...
I work with even bigger companies and they are worse. There is a lot of money to be made updating companies processes.
__________________
Democracy's greatest trick was convincing man he was informed.
Luke212 is offline   Reply With Quote
Old 4th July 2012, 11:27 PM   #24
jezza323
Member
 
jezza323's Avatar
 
Join Date: Apr 2005
Location: Brisbane
Posts: 1,314
Default

Quote:
Originally Posted by Snowblindnz View Post
I have worked with a 1.5gb csv file before, it can be a real pain.

If you want to open the file to browse, PFE works great. it looks crap, is really old, but works great with large files: http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/

After trying every way I could think of to get the file into a database, I ended up doing the following:
1) Installed xampp (a WAMP stack).
2) Set the max php execution time to 0 in the php.ini config.
3) Wrote a (~20 line) php script that opened the file and read it line by line, dumping it into mysql line by line.

To import the whole thing, it took about 6 hours on a 1.5tb 7200rpm WD drive, and about 1.5 hours on a corsair 64gb SSD. This was on the same dev machine (win7, i7 920, 12gb ram)

Once in the mysql database, it worked fine (browsable via phpmyadmin, and php queries ran ok).
you do realise there is a mysql command to import a csv yeah? lot easier than writing a script to do it for you
__________________
Notebook ASUS K55A|i7|16gb RAM|256gb SSD|Win 8 Storage HP N40L|6.5TB Media WDTV Live+|Samsung 40" LED SmartTV Phone Nokia Lumia 820 Cars 98 Toyota Starlet|80 Mazda 323-12abp Bikes 2009 Avanti Vivace|2010 SE Lager|2001 Norco Charger Mtb

flickr | blog | photo gear | redbubble
jezza323 is offline   Reply With Quote
Old 5th July 2012, 7:48 AM   #25
Tekin
Member
 
Tekin's Avatar
 
Join Date: Nov 2002
Location: Elsewhere.
Posts: 3,636
Default

Quote:
Originally Posted by Luke212 View Post
I work with even bigger companies and they are worse. There is a lot of money to be made updating companies processes.
Heh - my favourite for the moment is a company I'm working with that is dumping pi data (a plant information and control system) into an access database for reporting.

16,000 reporting measures a sec.

The custom query they have to strip, transfer and dump the data is unbelievable (and written in vb!). It is actually unbelievable in every sense of the word (it's even documented! Why would you document that!)

This is despite pi having one of the most elegant reporting systems I've worked with. Currently our proposed strategy is get everyone drunk and accidently spill beer on the access server then rebuild it all in reporting in about 2 days.

Anyways, back to the case at point.

We've done manual file manipulation in notepad++ on files around 2gb to do emergency once off edits. Not very elegant but it works. Some of the ideas in this thread are certainly interesting though. (jezza323: what is the command to load csv files directly? I'm really not a mysql guy...)
Tekin is online now   Reply With Quote
Old 6th July 2012, 3:37 AM   #26
jezza323
Member
 
jezza323's Avatar
 
Join Date: Apr 2005
Location: Brisbane
Posts: 1,314
Default

Check this out

http://dev.mysql.com/doc/refman/5.1/en/load-data.html

Am working with the command atm, works fine

eg from bat file im using to do some basic SQL Server -> mySQL migration for a new product im coding at work (lots of variables)

Quote:
%mysqlCmd% --host=%hostIP% --port=%hostPort% --user=%hostUser% --password=%hostPW% --database=%mysqlDBName% --local-infile=1 -e "LOAD DATA LOCAL INFILE \"%workdir%/staging_load.csv\" INTO TABLE staging_load FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n';"
__________________
Notebook ASUS K55A|i7|16gb RAM|256gb SSD|Win 8 Storage HP N40L|6.5TB Media WDTV Live+|Samsung 40" LED SmartTV Phone Nokia Lumia 820 Cars 98 Toyota Starlet|80 Mazda 323-12abp Bikes 2009 Avanti Vivace|2010 SE Lager|2001 Norco Charger Mtb

flickr | blog | photo gear | redbubble

Last edited by jezza323; 6th July 2012 at 3:39 AM.
jezza323 is offline   Reply With Quote
Old 7th July 2012, 4:15 PM   #27
Taceo Corpus
Member
 
Taceo Corpus's Avatar
 
Join Date: Sep 2005
Location: Gold Coast
Posts: 2,759
Default

Yep, mysql is the tool you need here.
__________________
Travel & Photo Blog: http://www.dfcowell.net
Taceo Corpus is offline   Reply With Quote
Old 7th July 2012, 4:27 PM   #28
gcflora
Member
 
gcflora's Avatar
 
Join Date: Jun 2012
Posts: 590
Default

Quote:
Originally Posted by jezza323 View Post
Check this out

http://dev.mysql.com/doc/refman/5.1/en/load-data.html

Am working with the command atm, works fine

eg from bat file im using to do some basic SQL Server -> mySQL migration for a new product im coding at work (lots of variables)
Quote:
%mysqlCmd% --host=%hostIP% --port=%hostPort% --user=%hostUser% --password=%hostPW% --database=%mysqlDBName% --local-infile=1 -e "LOAD DATA LOCAL INFILE \"%workdir%/staging_load.csv\" INTO TABLE staging_load FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n';"
Two (at least) issues I can see with that command. First is the assumption that fields cannot contain the ',' character. Second is the assumption that the fields cannot contain "\r\n". Both are allowed in CSV and therefore the assumptions are incorrect.
gcflora is offline   Reply With Quote
Old 8th July 2012, 11:05 AM   #29
f3n1x
Member
 
f3n1x's Avatar
 
Join Date: Mar 2003
Location: Armadale, Melbourne
Posts: 1,653
Default

Quote:
Originally Posted by gcflora View Post
Two (at least) issues I can see with that command. First is the assumption that fields cannot contain the ',' character. Second is the assumption that the fields cannot contain "\r\n". Both are allowed in CSV and therefore the assumptions are incorrect.
The assumtions are only incorrect if they're assumptions, you're guessing that he knows nothing about the data he's working on.

I know sometimes working IT you get impression everyone else is a complete fool and fit only for converting oxygen to CO2, but it doesn't imho generally apply on OCAU tech forums.
__________________
f3n.org|systems admin, graphics & foss software

Canon Eos 40D. Canon 50mm f1.8. Tamron SP AF28-75mm F/2.8 XR Di LD Aspherical (IF). Sigma EF 500 DG Super ETTL Flash(Broken! :/)
f3n1x is offline   Reply With Quote
Old 8th July 2012, 11:22 AM   #30
gcflora
Member
 
gcflora's Avatar
 
Join Date: Jun 2012
Posts: 590
Default

Quote:
Originally Posted by f3n1x View Post
The assumtions are only incorrect if they're assumptions, you're guessing that he knows nothing about the data he's working on.
Quite correct. But I assumed () that he was posting it for the benefit of the OP and in that case it doesn't matter that jezza knows his own data -- it's the OP's data that matter, and it's a fairly safe bet that jezza doesn't know walker's data. So, the assumptions good very well be incorrect and it's better that the OP (walker) knows about those assumptions... isn't it?

Last edited by gcflora; 8th July 2012 at 11:27 AM. Reason: fixed op's username
gcflora is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 1:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!