SQL Server Built in SP's - Cliff Notes - sql-server-2008

I hope We've all used SP_HELP. I used SP_HELPTEXT today for the first time. Mostlyl I learn these from co-workers who already know them or some random stackoverflow finding.
Is there some sort of exhaustive list on SQL Servers built in SP's and their function? I may be writing more code than I have to.
Thanks for the help.
Matt

Related

Beginner using MYSQL Workbench

Good day everyone and thank you in advance.
I'm studying database design and we started with SQL basics, specifically relational operators. Next, we will be doing proper-ish, basic python + SQL.
In order to learn the work, I figured the best would be to use a SQL program to help me visualize the relational operators' effects on a database. First I used SQL Fiddle, which seemed okay, but the next morning all my work was gone, and it seems they are having technical problems. So I switched to MYSQL Workbench, easily created all the tables, but now I can't seem to run a simple script. More specifically, I do not know how to. The only examples available on the web are outdated, and or I lack the knowledge to properly search for the answers.
I know it's a dumb, low-level question, but I would really appreciate it if I can just figure this out and run basic scripts on the database.
Screenshot: https://i.stack.imgur.com/Sh3Qf.png

Sample datasets for practice - Oracle pl/sql

I am a new user of SQL, I use Oracle pl/sql as a Programming software. I have done an introductory course to SQL that included some datasets. However I'd like to continue practicing, some real life problems that include requests of querying very simple statements to difficult ones that include indexes, etc.
Does anyone have any links/sites where I can further pursue SQL training for free? I've done a Stakexchange and Google search with not much luck.
As you probably know, Oracle ussually comes with some sample schemas like HR, SH... listed here
Also, you can install HammerOra benchmarking tool. It's commonly used to test TPC-C and TPC-H on different RDBMS. It will install some schemas on your DB with variable size.
You can also install some virtual appliances.
There are more there, but I think the coolest is StackOverflow DB, too bad is MSSQL.

mySQL tutorial for writing SQL statements and DB scripts

Thanks in advance.
Is there a tutorial (preferablly free) out there that'll walk me through how to write mySQL statements?
I'm not interested in learning about installing and configuring mySQL since this is something handled by experts and I wouldn't have permissions to do this anyway.
Specifically, what I'm looking for is a tutorial that utilizes a database (Sakila perhaps?) that actually teaches how to write mySQL commands, AND that has questions for me to answer (via written SQL statements) with the accompanying correct results so I can verify my work. I was hoping for at least a beginning and intermediate mySQL tutorial. But without the correct answers / results, I can't possibly know if the SQL statements I'm writing are correct results or not.
I haven't really seen many tutorials that focus strictly on learning SQL statements and writing scripts, and I've seen none that have a thorough Q&A (with results) section.
If I have to pay for a tutorial, that's fine. I just want to find one that focuses on learning to write SQL statements and scripts and that stays away from configuring and administering type learning.
Any help you can provide is greatly appreciated.
KJ
I started out with an oreilly online course.
I know its not a tutorial, but if you are prepared to pay, its the better choice
For what you get its not that expensive and you'll come out of it with a very strong base.
If you are looking for strictly database:
Database Administration Certificate
Or a mix with a programming language (gives better insight to usage)
PHP/SQL Programming Certificate
Also I found a really nice site with a lot of common and useful sql queries that you can use to learn some neat tricks
Common MySQL Queries
I hope this helps you and good luck

How do you test a SQL statements across multiple Database types?

Does anyone know of a quick and easy test to see if a query is properly formatted for both MySQL & MSSQL. Perhaps other database types as well, such as SQL Server? I only have access to MySQL at this time.
Info: I'm working on an Open Source project called JJWDesign Google Maps for SugarCRM. Some of the queries use the SugarCRM classes; others I have to write custom. For example, some are special distance calculations against the geocode information stored in the tables.
http://www.sugarforge.org/projects/jjwgooglemaps/
More importantly, while there is an accepted syntax, each flavour of database has it's own specific functions, features and things you can do.
The best you can do is to make do with the most basic of features. Oracle has different functions for datetime compared to mysql compared to db2. While I would love to assist in a 'free as in beer' project, you really will need to check each function to see if it is the same across all major vendors. General functions most often are, so abs() will be fairly consistent, but others simply won't.
You're talking about a SQL parser so by definition it either isn't going to be quick and easy or it will do only the simplest checking.
Each RDBMS has its own flavour of SQL too so you'd really be limited to testing whether it was ANSI SQL.

Is it worth a try LINQ to SQL as a beginner to an ORM?

Thus far used sql server stored procedures for all my web applications... Now thought of moving to an ORM... I would like to ask SO users about LINQ to SQL
Is Linq to sql worth a try as a beginner to an ORM?
or should i look for some others... Any suggestion...
EDIT:
I have a sql server 2005 database with all tables....
How to use this db with Linq to sql?
Coming from using ADO.NET table adapters, LINQ was a revelation. A breath of fresh air. The veil was lifted. A new day dawned. And so on and such forth.
Start with Scott Gu's series here and check all his other blogs on the subject.
I envy you your impending joy.
Skip it. Second grade little ORM missing all the interesting features (and don't get me even started with EntityFramework - crap in v1, barely usable in v2).
I suggest getting ahold of NHibernate.
Even though I, unfortunately, don't do much Windows/.NET development anymore, I still think that C#/.NET is the best programming environment around and that Linq is a great ORM. If you're on the .NET/C# platform, use it. There's good documentation, a large community of users to help you, and very solid implementations.
While Microsoft SQL Server doesn't get a lot of buzz, it is a very worthy database to be the platform underlying linq.
If you're just starting, then I recommend you ignore LINQ to SQL. Microsoft will be placing all of their development efforts behind Entity Framework, which is more powerful and general than LINQ to SQL.
Coming from a similar situation I found linq-to-sql worked really well. We previously used a repository pattern and managed to follow it pretty closely with linq to sql in about half the time. Linq-to-Sql will also allow you to write and use regular store procedures.
For a beginner I found the linq-to-sql sections of the Nerd Dinner tutorial a good starting point.
Personally, I think that L2S is a great choice for a ORM beginner because it's really easy to use, but still gives you plenty of power. IMO, if you are doing new SQL Server work, L2S is the best and easiest ORM available. It's not perfect, but neither is anything else out there.
Also, PLINQO adds a lot of the missing features to L2S that bring it more in line with EF, while maintaining the simplicity and speed of L2S.