September 2009 - Posts

Programming for Absolute Beginners
28 September 09 01:19 | Simon Phillips | 2 comment(s)

One of the questions I get asked lot is { our kid | son | daughter | parent | granny | dog | add own tag } (* delete appropriately) is wanting to start programming what’s the best place to start this thing called .Net?

I while back I posted about the Ramp Up which are free community-based learning course, but for people with a little background, but wouldn’t it be good if there was a site which started you off from scratch?

In my usual Monday morning blog read, I came across a post from Scott Hanselman about the MSDN Beginner Developer Center. The what I hear you cry! It was new to me, so it might be something that has missed you by as well.

image

This is an outline of the course contents for the Web Track

Introduction to Visual Web Developer

> Introduction to Visual Web Developer 2008 Express Edition

> Visual Web Developer 2008 Express Feature Tour

Introduction to Web Development

> Introduction to the Web as a Platform

> Introduction to CSS

> Introduction to JavaScript

Introduction to Programming Languages

> Introduction to the Visual Basic Programming Language

> Introduction to the C# Programming Language

Bits & Bytes

> Bits & Bytes: Lesson 1 Problem Solving in Life and Technology

> Bits & Bytes: Lesson 2 Things, Things, and More Things

> Bits & Bytes: Lesson 3 The Data Game

> Bits & Bytes: Lesson 4 Computer IQ

> Bits & Bytes: Lesson 5 Life before Mice

Introduction to ASP.NET

> Introduction to ASP.NET

> Visual Basic: Beginning Website Development Module 1

> Visual C#: Beginning Website Development Module 1

Absolute Beginner Series in Visual Basic

> Absolute Beginner's Series Lesson 1: Getting Started

> Absolute Beginner's Series Lesson 2: Creating a User Interface

> Absolute Beginner's Series Lesson 3: Events and Postback

> Absolute Beginner's Series Lesson 4: Web application state

Absolute Beginner Series in Visual C#

> Absolute Beginner's Series Lesson 1: Getting Started

> Absolute Beginner's Series Lesson 2: Creating a User Interface

> Absolute Beginner's Series Lesson 3: Events and Postback

> Absolute Beginner's Series Lesson 4: Web application state

ASP.NET

> Visual Basic: Beginning Website Development Module 2

> Visual C#: Beginning Website Development Module 2

Absolute Beginner Series in Visual Basic

> Absolute Beginner's Series Lesson 5: Debugging and Tracing

> Absolute Beginner's Series Lesson 6: Style sheets and Master Pages

> Absolute Beginner's Series Lesson 7: Databinding

> Absolute Beginner's Series Lesson 8: GridView and FormView controls

> Absolute Beginner's Series Lesson 9: Membership and Login controls

> Absolute Beginner's Series Lesson 10: Configuring, Building and Deploying

> Absolute Beginner's Series Lessons 11 – 14: Building a Quiz engine

Absolute Beginner Series in Visual C#

> Absolute Beginner's Series Lesson 5: Debugging and Tracing

> Absolute Beginner's Series Lesson 6: Style sheets and Master Pages

> Absolute Beginner's Series Lesson 7: Databinding

> Absolute Beginner's Series Lesson 8: GridView and FormView controls

> Absolute Beginner's Series Lesson 9: Membership and Login controls

> Absolute Beginner's Series Lesson 10: Configuring, Building and Deploying

> Absolute Beginner's Series Lessons 11 – 14: Building a Quiz engine

If you want more information then pop along to the site, or have a read of Scott’s blog which gives more details.

Scott Hanselman's Computer Zen - Programming for Absolute Beginners

SQL Server Synonyms in queries using Linked Servers
18 September 09 11:45 | Simon Phillips | with no comments

OK Synonyms are not new in SQL, they were introduced back with SQL Server 2005, but to date I’ve never got round to using them until now.

A synonym is really just a shortcut reference to a object (Table, View, Stored Procedure or Function) that resides in a database on another server that you have defined as a Linked Server (Note: You can also create them for object in databases on the same server and in the same database).

Where I have used Linked Server quite a bit before my queries become quite long and complicated with the long reference to the tables

SELECT * FROM linked_server.database.schema.table|view

This can be a problem when trying to deploy projects where the Linked Server name might change, as the production environment differs from my development environment, and I will have to re-touch all my code on the production environment (eek).

With using a synonym for each object I call on the Linked Server I can code my queries using the synonym rather than the long reference.

SELECT * FROM [synonym name]

Definition from SQL Server BO:

A synonym is an alternative name for a schema-scoped object. Client applications can use a single-part name to reference a base object by using a synonym instead of using a two-part, three-part, or four-part name to reference the base object.

This means,  that when I deploy my code to a different environment, I will have to drop and recreate the Linked Server and any Synonyms but I do not have to touch any other code (jobs-a-good’n).

Note: There is no Alter feature for changing Synonyms (or Linked Servers) but TBH that’s not a biggie!

Note: IN SQL Server 2008 you will loose your IntelliSense, but I think you don’t get it with Linked Servers anyway.

To create a Synonym for a remote object on a linked server you can use the SSMS but it is as easy to script it.

CREATE SYNONYM synonym_schema.synonym_name FOR linked_server.database.schema.table|view

Look for “synonyms [SQL Server]” in SQL Server Books Online for more information.

Filed under:

This Blog

Applications / Addons

Irish Community

Microsoft Ireland Blogs

My Articles

Syndication