I am looking for good resources on Stored Procedures. Particularly for Microsoft SQL server 2005, but any overall good resources for SQL will do. These can be books, websites, etc.
Thanks
I like www.simple-talk.com/sql/. Check out their SQL Server Crib-Sheet Compendium.
Look for TSQL resources, because SPs are coded in TSQL.
A good advanced guide to T-Sql is "The Guru's Guide to Transact-SQL" by Ken Henderson. It's becoming kind of a classic.
I think this might be a good book. Just had a look on sample pages so don't have a deeper idea.
You may download the Ebook as well.
SQL Server 2000 Stored Procedures Handbook (Expert's Voice)
Related
I have a question in regards to the SQLXML for SQL Server.
My assignment is to convert an XSD file so that it magically "becomes" tables in the SQL Server database. I've looked around everywhere, on all the links I could possibly find, but nothing clicks. Everything is like a half-step of what I need to achieve.
I am not too familiar with Visual Studio, haven't done much else than running database queries and all the stuff one likes to do in a SQL Server database. Except for XML.
I figured that SQLXML from Microsoft's MSDN would be a good tool to have (and I believe it's already installed).
Any tips or solutions?
Thanks.
There's no magic involved, and as it's homework/study I won't detail how to do it myself, but if you direct your research towards SQL's Bulk Load functionality it would seem to be what you need.
Read this article for a brief "how to" guide.
Or this article for a detailed description of how to use it.
You can convert XSD to SQL using this approach https://github.com/ujhgj/xsd2sql
But I'm not sure of SQL dialect. That thing worked for Mysql.
Does anyone know where I can get SQL server documentation pertaining to writing stored procedures (SQL Server 2008 R2)?
I Tried browsing SQL Server 2000 Books Online but find it very hard to use with links scattered all over the place.
I am particularly interested with built in functions (T-SQL), that includes examples, maybe in a pdf form also ?
Here is a list of built-in functions on MSDN. Get used to using MSDN; it's a great reference but you have to learn its quirks.
Here is a good article about stored procedures, i guess it will give you some useful info.
So I have some experience with Microsoft Access, building database apps for people, vba, etc for different folks at work....different divisions. And I have actually learned a lot in that realm...however,
now the need for SQL Server has arrived, and I have never really ventured into that realm...so let the questions begin:
how vastly different is what i am about to get myself into?
i know that experience is the best teacher, but i actually learned a lot through books when it came to access, vba, sql, etc....so can anyone suggest materials/resources for learning like this??
seems as though I am going to have to learn to be the dba....so i gotta get crackin on the learning so i appreciate any and all help A LOT!! thanks!
Microsoft e-learning provides a few free courses and a free ebook targeting SQL Server 2008 here (not sure why you are targeting SQL Server 2005).
Of interest: SQL Server 2005 Learning Resources
Database design skills to some extent transcend the RDBMS; a big difference when moving from Access is the use of stored procedures and the T-SQL constructs available to you.
The Microsoft Press books are excellent.
SQL Server 2005 Books Online contains almost everything you need to know, but the structure is quite daunting at first.
One thing that is really worth learning is how to use is SQL Server Profiler, not just for profiling performance problems, but also for seeing what is happening behind the scenes.
What is a good way to learn to develop SQL Server(2005) stored procedures? I am primarily a java developer but need to take on SQL Server stored procedure development. I have some basic SQL in my background but nothing major. Any good specific tutorials maybe using the adventure works schema? Or just good reference sites that contain alot of useful syntax.
I would say either the abundance of good resources or a very useful couple tutorials will be the winner.
Personally there are two ways that I have found to get up to speed quickly.
Have real world problems that you need to solve.
Get a good T-SQL Book. There are numbers of them out there, most of the Microsoft Press ones are good, along with many others.
it depends what you're trying to do really. A good knowledge of SQL is the main requirement. Above that learn about parameters.
I find most people don't put too much logic in SPs these days. Rather they're just a collection of standard SQL statements using parameters.
Just searching for SQL syntax on the internet has pretty much asnwered any question I've had. If nothing else you can always buy a reference book. I have Transact Sql programming by O'Reilly.
Plus, stored procedures are really just
CREATE PROCEDURE [PROC_NAME]
AS
BEGIN
--ENTER YOUR SQL CODE HERE
END
I always start with MSDN for Microsoft products.In most of the case they are good.
And there is nothing much specific to learn from Java side for MSSQL SPs as they are seperate entities existing in DB except invoking it from front end.
I would start here.
I'm looking for some decent examples/samples using SSIS to do some ETL from one SQL Server database to another not necessarily within the same instance.
The idea is to migrate rows of data with their heirarchies (relationships) from one OLTP database to another.
There are some advantages SSIS offers us which makes it a good choice as the migration/ETL platform (amongst other things it needs to be fully configurable and able to be executed on an automated schedule).
Does anyone know of any decent samples/examples besides the MS community samples (on Codeplex)?
Edit: I've also had a look at http://www.sqlis.com/ though I haven't found exactly what I'm looking for..
There are Microsoft Tutiorials on how to use each Task Component and concept available here:
http://msdn.microsoft.com/en-us/library/ms141767.aspx
You will likely need to review several tutorials in order to aquire the knowledge to create a solution for your specific scenario.
Another excellent source of SSIS tips is Jamie Thomson's Blog. The man is a bit of wizard with SSIS:
http://blogs.conchango.com/jamiethomson/
Once you have had a look over the material, if you require specific assistance then feel free to drop a line.
Here are some good articles/tutorials from Microsoft on ETL:
http://technet.microsoft.com/en-us/library/ms169917.aspx
http://msdn.microsoft.com/en-us/library/cc671624.aspx
Check out the Sql Server Central and Sql Server World Users' Group (SSWUG) sites. If you can't find the examples/tutorials/experts you need in those two places, give up coding and take up cooking, because those sites are treasure troves!