Click here to Skip to main content
15,911,531 members
Home / Discussions / Database
   

Database

 
AnswerRe: Need some opinions from experienced desktop application developers Pin
GuyThiebaut7-Oct-11 1:53
professionalGuyThiebaut7-Oct-11 1:53 
GeneralRe: Need some opinions from experienced desktop application developers Pin
Stan Moong7-Oct-11 2:41
Stan Moong7-Oct-11 2:41 
AnswerRe: Need some opinions from experienced desktop application developers Pin
Shameel7-Oct-11 2:41
professionalShameel7-Oct-11 2:41 
AnswerRe: Need some opinions from experienced desktop application developers Pin
Ganu Sharma7-Oct-11 3:29
Ganu Sharma7-Oct-11 3:29 
QuestionEntity framework - Fetching values from the middle table in many to many relationships Pin
mrkeivan4-Oct-11 7:11
mrkeivan4-Oct-11 7:11 
AnswerRe: Entity framework - Fetching values from the middle table in many to many relationships Pin
Chris Meech4-Oct-11 7:24
Chris Meech4-Oct-11 7:24 
AnswerRe: Entity framework - Fetching values from the middle table in many to many relationships Pin
Ganu Sharma5-Oct-11 1:45
Ganu Sharma5-Oct-11 1:45 
QuestionLarge sample database Pin
Pascal Ganaye4-Oct-11 1:26
Pascal Ganaye4-Oct-11 1:26 
For an article I want to write I need a large sample database.
A bit like Northwind but with many records.

I could have based in on Northwind but I'd like to be able to use it (for comparison) on any database and not being in violation of Microsoft licenses.

I therefore wrote a script that create a few tables from scratch and a lot of data into it.
If you're mad enough to try it (you got the source below).
This is pretty much textbook to speak to database beginners but hopefully with enough relationship to make interesting queries.
It will create 5 classic tables (record count in the box):

      +- Client -+    +--Order----+
      |  100,000 |<---|   500,000 |
      +----------+    +-----------+  
           |                  ^
           |                  |
           v                  |
      +- Occupation-+         |
      |         330 |         |
      +-------------+         |
                              |
                              |
                              | 
+- Product -+           +--OrderLine--+
|     1,554 |<----------|   3,137,991 |
+-----------+           +-------------+

I hope you appeciate this fantastic Ascii-Art

I am trying to have a shortish script (a few kilobytes) that can quickly generate enough data to show the impact of indexes.
The script takes 6 minutes to run on my laptop

I worked hard on faking meaningful data.
This is one the first client looks like:
ClientId	1
FirstName:	Jimmy
MiddleName:	Lawrence
LastName:	Mcpherson
Gender:	M
DateOfBirth:	24:28.8
CreditRisk:	2
XCode:	AZ3 1KN
OccupationId:	228
TelephoneNumber:	(123) 822 - 3268
Street1:	468 Old Barnes Street
Street2:	2nd Floor
City:	Sacramento
ZipCode:	83319
Longitude:	38.46202086
Latitude:	120.999543
Notes:	In aute sunt et ea sed ex tempor. Et ex non eu anim ad. Id velit aliqua. Elit id do qui quis. Sed fugiat ex. Sunt ipsum ut eu ad sint. Enim magna animus lorem eu eu culpa. Sint nostrud irure ipsum amet amet. Sed do mollit irure nisi. Elit ut sint est ea culpa. Sit aute enim culpa deserunt ad ea. Eu velit et ex minim ad. Eu do enim non ad ad. Exclamo amet est. Nulla enim ex. Do ad ea ullamco ex. Magna excepteur ipsum ad non sunt eu non. Animus ut elit. Ut et est aute. Do cillum non ad sunt do enim. Ex non ea ea. Et id id sint duis. In in et. Id duis ipsum. Aute velit ut. Amet enim velit elit. Id occaecat ea. Sunt minim exclamo. Do ad et id id ipsum lorem. Qui qui do sunt ad. In exclamo do. Ipsum ad sed. Et ex ea. Et ullamco sunt nisi ex. Sunt eu quis lorem. Amet id sit ipsum. Non aute eu nisi. Ad et quis sed. Eu veniam nisi duis in sint non. Laboris sunt elit aute. Aliqua elit ad do. Culpa et ea. Esse in elit id. Ea ex elit. Est mollit ea nisi esse qui. Ad nisi in labore. Non ad veniam sed.

And this is the first product
ProductId: 1
Name: White fleece fabric
Price: 5.50
Active: 1
Stock: 319.740


If you got a minute or two (or 6) I am available for comments.
Would you format the database differently.
Is there enough data for proper real case scenarios?
http://pastebin.com/md3Sbr55[^]
AnswerRe: Large sample database Pin
Corporal Agarn4-Oct-11 4:34
professionalCorporal Agarn4-Oct-11 4:34 
QuestionSQL Automatic backup Pin
yesu prakash2-Oct-11 23:45
yesu prakash2-Oct-11 23:45 
AnswerRe: SQL Automatic backup Pin
Simon_Whale2-Oct-11 23:51
Simon_Whale2-Oct-11 23:51 
AnswerRe: SQL Automatic backup Pin
Corporal Agarn3-Oct-11 6:02
professionalCorporal Agarn3-Oct-11 6:02 
AnswerRe: SQL Automatic backup Pin
Ganu Sharma5-Oct-11 1:49
Ganu Sharma5-Oct-11 1:49 
AnswerRe: SQL Automatic backup Pin
Rakesh Meel14-Oct-11 21:39
professionalRakesh Meel14-Oct-11 21:39 
AnswerRe: SQL Automatic backup Pin
Anuj Banka16-Oct-11 21:09
Anuj Banka16-Oct-11 21:09 
QuestionPenetration testing of ORACLE DATABASE Pin
HARISHCHOWDHARY1-Oct-11 21:20
HARISHCHOWDHARY1-Oct-11 21:20 
AnswerRe: Penetration testing of ORACLE DATABASE Pin
Richard MacCutchan2-Oct-11 1:52
mveRichard MacCutchan2-Oct-11 1:52 
AnswerRe: Penetration testing of ORACLE DATABASE Pin
HARISHCHOWDHARY2-Oct-11 21:10
HARISHCHOWDHARY2-Oct-11 21:10 
GeneralRe: Penetration testing of ORACLE DATABASE Pin
Richard MacCutchan2-Oct-11 21:26
mveRichard MacCutchan2-Oct-11 21:26 
GeneralRe: Penetration testing of ORACLE DATABASE Pin
HARISHCHOWDHARY3-Oct-11 20:31
HARISHCHOWDHARY3-Oct-11 20:31 
GeneralRe: Penetration testing of ORACLE DATABASE Pin
HARISHCHOWDHARY2-Oct-11 21:14
HARISHCHOWDHARY2-Oct-11 21:14 
GeneralRe: Penetration testing of ORACLE DATABASE Pin
Richard MacCutchan2-Oct-11 21:27
mveRichard MacCutchan2-Oct-11 21:27 
AnswerRe: Penetration testing of ORACLE DATABASE Pin
HARISHCHOWDHARY3-Oct-11 20:28
HARISHCHOWDHARY3-Oct-11 20:28 
GeneralRe: Penetration testing of ORACLE DATABASE Pin
Richard MacCutchan3-Oct-11 21:19
mveRichard MacCutchan3-Oct-11 21:19 
AnswerRe: Penetration testing of ORACLE DATABASE Pin
GuyThiebaut2-Oct-11 22:09
professionalGuyThiebaut2-Oct-11 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.