Any sample SQL databases out there?

Status
Not open for further replies.

Catfish

Ars Tribunus Angusticlavius
9,954
The default installation of SQL server should provide you with the Northwinds database to play with, it's the base (I believe) for a sample eCommerce app, not terribly complex, but a start.

I'm not using SQL server directly, however. I installed MSDE, which came with VS.NET, which (I believe) is a cut down version. Hmmm....I'll take a trawl through the mess that is VS.NET's install directory, see if I can find anything.


[EDIT: Ah. Found a .SQL file which looks like it's designed to create the database from scratch. Running it gave me all sorts of exciting errors, and didn't appear to do anything, but on reloading VS, my database is now populated with a list of employee's and sales...
Why are there a number of empty dbs created by default? There's Master, Model, MSDB, and tempDB. Do they serve any purpose?

Hmmm. I still have a lot to learn on databases. I'm trying to figure out if they're as simple as I imagine them to be, just with a few quirks that I need to learn, or whether I'm going to suddenly learn that they're actually horrible & a total nightmare.
 

reboot

Ars Legatus Legionis
10,818
There's no set answer for that. It really depends on what (R)DBMS to what (R)DBMS, and if migrate tools exist for it.

Are you thinking of any in particular or is it a general question ?

Also, do you mean just DDL or DDL & Data ??

If no specific tool exists then generating standard SQL scripts and exporting data to flat files would work since all DBs have flat file loading tools, so that's always going to work but it's the last thing you want to do.
Not because it doesn't work well but because it's the longest..


For example, going from Excel -> Access -> SQL Server is effortless.

I'm sure there's also some easy replication tool or export/import feature if you want to do SQL Server -> SQL Server but I'm not too familiar with it..

Edit : hahaha. somebofy forgot to change a setting for the time change..

"posted April 08, 2002 09:59 AM"
"[This message was edited by reboot on April 08, 2002 at 11:12.]"

;)

[This message was edited by reboot on April 08, 2002 at 11:14.]
 

enkafan

Wise, Aged Ars Veteran
111
master database: all the metadata for sqlserver is here.
msdb: used by sql agent for keeping track of stuff
tempdb: a, uh, temp db
model: a, uh, model for new databases (when you create a new database it basically copies model)

you probably also have pubs which is the old school learning database.

as for saving the database, the way they recommend doing it is the attach/reattach commands. but that will only work for going from sql server to sql server.

now if you want to copy from sql server to oracle, you could generate the ddl commands to recreate the database and find something to generate all the insert data for your data I guess and use something similiar to the bulk copy program in sql server.


dbms are awesome, but they aren't trivial to learn properly. I recommend Profession SQL Server 2000 Programming and Inside SQL Server 2000.

You should also be able to find a 120 day eval of SQL Server 2000 Enterprise Edition floating around on microsoft site that you can download. But really VS.Net provides much of the functionality you need in the IDE anymore and you can interact with MSDE
 

enkafan

Wise, Aged Ars Veteran
111
Originally posted by Stifled Genius:
I'm pretty sure that MSDE is exactly the same as the full blown server, except for that you can't run it on a multiprocessor machine or have more than 5 concurrent users.

But you also don't get things like profiler, query analyzer and enterprise manager too. You are right about the DBMS too, limited to 5 concurrent users.
 

enkafan

Wise, Aged Ars Veteran
111
MSDE (or desktop engine as the call it now) does not come with those tools. Its just that simple.

From the SQL Server resource kit:
The SQL Server 2000 Desktop Engine does not include graphical management tools; the application distributing the engine is usually coded to perform any needed database administration. You can manage instances of the Desktop Engine from the SQL Server 2000 graphical tools if installed with another edition of SQL Server. Other items not included in the Desktop Engine include analysis capabilities (such as OLAP, data mining, and data warehousing features) and SQL Server Books Online. Desktop Engine also limits database size to 2 GB and employs the same concurrent workload throttle described earlier for Personal Edition.
 
Status
Not open for further replies.