AdventureWorks Sample DB - sql-server-2008

Could someone please help me with this. I would like to install the AWDB sample database to use with SharePoint 2010 on my Win7 dev system.
So SQL 2008 Express.
I have tried to download various things from codeplex, basically because I don't know the difference between the types. I have tried to look this up online in some blog posts but none of what I find/follow seem to work.
I think this is where I need to download what I need here, but I am not sure what I need exactly. At this point I am just trying to get the db in SQL right now, and I am maybe novice with sql at that point, but really just want to start experimenting with BCS in SP2010 anyway.
Any takers helping a rookie? Always appreciated! Thanks guys!

AdventureWorks2008R2-Full Database Backup.zip would be fine.
Then in SQL Express use:
restore database [database_name] from disk = 'backup path'
with move 'AdventureWorks2008R2_Data' to '<database_data_file_path>\<filename>.mdf',
move 'AdventureWorks2008R2_Log' to '<database_log_file_path>\<filename>.ldf'

Related

DBeaver - missing procedures in MySQL database

I have connected to my work database via DBeaver. Recently colleague told me about a procedure that lets me check newly added entities through our front-end.
And I can't find it in the list of procedures, nor using this query:
SHOW PROCEDURE STATUS WHERE Name LIKE '%name%'
I have the same connection settings as my colleague's, same user, etc, but he uses DbForge and I use DBeaver, cause at some point of time DbForge began having too much restrictions for free version (I wasn't simply able to execute queries), and the older version my colleague gave me didn't install in Windows 11.
So, I'm thinking may be there's some settings in the DBeaver that hide certain stored procedures, or I need to adjust connection settings.
Does anyone has clue on this?
Or may be someone could suggest some alternative to DbForge, which allows to execute queries in the free version and to set colors to connections (I find that thing convenient), and possibly doesn't have this problem, may be because of being more MySQl-oriented.
Thanks in advance!
I've tried to open connection settings and check out the additional parameters there, but can't seem to notice anything relevant.
Ok, seems like there was misunderstanding between me and my colleague, and he actually meant some another DB Server, but with same User/Password combination. Thanks for the comments, that also helped in finding the cause. I really did install MySQL Workbench, saw the same picture in there, and started wondering what else it could be and reading our communication again.
My mistake) The question is no longer actual.

Forward engineer is doing nothing in the MySQL Workbench

I have little experience with MySQL Workbench and need some helps to figure out an issue. I loaded a new EER diagram from a .MWB file in the GUI and was trying to convert it into the SQL with Forward engineer. Initially, I was connected to the localhost and when, I press the Forward engineer..., nothing happens. The figure is as following, I'm working in the Mac OS Sierra operating system.
What I am missing here ? Some advice will help from the more expert users.
I use MySQL Workbench 6.3version for the work,
I've had this same issue with the latest release of MySQL Workbench (macOS). It's definitely some bug as previously, I didn't have any issues forward engineering.
Here's a workaround:
Normally, you'd go to:
Database > Forward Engineer...
To work around this bug, instead go to:
Database > Synchronize Model...
This will look for any open ERDs which do not currently exist with the rest of your schemas, and will allow you to forward engineer the schema that way.
Warning: This could get hairy if you had a lot of ERDs opened and didn't want to synch all of them, so make sure you've got the right ones checked!
I know this is a late answer, but this solution allowed me to forward engineer an ERD which previously was not firing (just as you described, nothing from MySQL Workbench).
I found your post when trying to find a solution, and while troubleshooting, heard via a personal anecdote about this work around. It may already be posted elsewhere on stack (tried to find link but couldn't find it), but hope this helps :)
Try:
File > Export > Forward Engineer SQL CREATE script

Having trouble importing a database

I'm learning SQL for the first time but I'm running into some problems. I purchased a book called "Learning SQL" (O'Reilly).
First off, the book asked me to download mySQL v6.0. I couldn't find it and the URL in the book redirected me to a download page for mySQL Community Server 5.7. I assume this is the latest version of the same package. I downloaded the installer and installed without any problems. Is this the correct software needed?
Then I tried following the instructions for the command line input, but it didn't work out. I downloaded an example sql database, but I'm having trouble importing it. Is there a guide available to do this?
Sorry if my questions are really newbish. Any help is appreciated. Thanks in advance.
If you want learn clean SQL - without any specials of Oracle Database, PL/SQL and something like that, then you can comfortably make it with any database what you find. :-)
Basic SQL is not dependent on any database software or their version.
Edit: If you have 2005 edition - it´s really independent on any SQL server.

How to use the generated script from SQL 2005 to MYSQL?

We are converting our database to MYSQL from MSSQL 2005.
Someone told me this is possible by generating a script in MSSQL using Database Publishing Wizard. I already created a script. Then by dragging it to the Query Writer in MYSQL. I am currently using SQLyog for creation of database.
How can I use that script to create a MYSQL file?
I also tried to use demo versions of converting tools but to no avail.
Please help me. =)
There is no simple or quick way to do a task like this. THe two database have differnt syntax and differnt datatypes, etc. I certainly would not trust a converting tool as you may want to make changes to fix bad design choices in SQL server to better choices in MYSQL.
Take your script and then run each section and find where it fails and then look up the correct syntax for mySQL and fix it.
Here is alink to a book you need to have for this conversion project as it wil show the syntax differnences:
http://www.amazon.com/SQL-Nutshell-OReilly-Kevin-Kline/dp/0596518846/ref=sr_1_2?s=books&ie=UTF8&qid=1330382519&sr=1-2

MySQL 5.5.17 configure.sh Location?

So I recently downloaded MySQL 5.5.17, and I'm trying to build it from source on my computer. The problem is, I can't seem to find the configure.sh script. I'm fairly certain I downloaded the source code version (mysql-5.5.17.tar) from the MySQL website, which can be found by selecting the "Source Code" drop down on the MySQL dowload page here.
Does anyone know if they changed the location of the script? I feel like I'm missing something obvious, but I just can't seem to find it. Any help would be appreciated. Thanks.
In order to build MySQL 5.5, you need to use CMake.
See http://lenzg.net/archives/329-MySQL-5.5-CMake-replaces-autoconfautomake-on-all-platforms,-support-for-autotools-has-now-been-removed.html