Showing posts with label SQL Server. Show all posts
Showing posts with label SQL Server. Show all posts

Friday, January 02, 2015

SQL Saturday

There are a lot of places that you can learn about Microsoft's database package - MS SQL Server. Not much training, as you've probably learned, is just free for the having. Here's the exception!

The PASS (Professional Association for SQL Server) is an organisation that you can join for free. It has chapters - mostly local to your geography but some virtual. For me, Philadelphia is my local chapter - PSSUG. Philadelphis SQL Server Users Group runs a meeting monthly, two sub-groups quarterly, and a SQL Saturday annually. The next one is due on June 6th, 2015.

2014 was a bumper year for SQL Saturdays for me:
2014.03.01................ #268 ................North Haven, CT
2014.03.22................ #277 ................Richmond, VA
2014.06.07................ #294 ................Philadelphia, PA
2014.06.21................ #303 ................Rochester, NY
2014.06.28................ #293 ................Portland, ME
2014.07.26................ #302 ................Albany, NY
2014.10.04................ #315 ................Pittsburgh, PA
2014.10.18................ #314 ................Providence, RI
2014.11.01................ #337 ................Portland, OR
2014.12.06................ #347 ................Washington DC
Ten events in all, including 2 pre-con days, as well as going to a full week of Brent Ozar's BDA and Query Troubleshooting courses !

I can't see me doing anything like that many in 2015, but I'll be trying for some!

2015.03.21 ................. #381                 Richmond, VA.............Abandoned for me because of a snow storm!
2015.04.25 ................. #366                 Ottawa, ON...................Coincided with Marillion Weekend 2015 in Montreal
2015.05.16 ................. #383                 Rochester, NY..............This one definitely looks "on"
2015.05.30 ................. #380                 New York City, NY.......Exciting! - last year there wasn't one in NYC!
2015.06.06 ................. #390                 Philadelphia, PA..........My "home" event
2015.07.25 ................. #386                 Albany, NY...................Looks good
2015.10.03 ................. #440                 Pittsburgh, PA..............Looks good

Edinburgh and Dublin on the 13th and 20th of June are looking amazingly attractive - to some extent it depends on what time off I have available, and to some extent it depends on what yarn stores there are in the area !

In addition to the SQL Saturdays, I've also gone to Alan Hirt's Mission-Critical SQL Server training class in Philadelphia on March 30th - April 2nd. That was definitely worth the money and time!

Finally, just to spice up the mix, I'm spending my Saturdays for the next few months taking a Linux Administration course at Avtech in South Plainfield. Looks like it's going to be fun!


Get in contact - meet me there!

TTFN

Monday, April 22, 2013

All Sorts of Tech!

Yes, it's quite a while since I was here! In that time I've move house and moved jobs - now working for an internet company in Center City, Philadelphia. Many of the problems are familiar, although the resolutions can be different, because of the different environment. Being a contractor offers so much freedom !

Tech 1 - SQL Server
Anyhow, the first snippets of tech are from Microsoft's SQL Server.
There are a number of things that you should build into your code that I still see missed in many people's work. One is checking that the data you get from outside is actually worth having. I saw an offering of a CSV file the other day that started off looking like this:
""""""|""""""""|""""Bob""""|"""74993""""|""""BA""""|" .... .
The content providers had received instructions to delimit all text fields with """ and use "|" as a separator. Of course, they had not realised that the outside quotes were being used as delimiters by the person making the definition, so used the whole lot. In fact, simply separating the fields with pipes would have been enough:
||Bob|74993|BA
and far more understandable!

Next, when you perform some operations keeping a log is a good idea. For example, writing to a log whenever a report is run, or from each of the procedures that are used in reporting, can be amazingly useful in finding out just where delays and errors are occurring. Just keep a log table with a key identity, a datetime field, and a couple of string fields for info. Write a procedure to execute when you want to write to it, and have that code include the logged in user too! That brings me to my next point:

Getting your identity. Use this for logging who did something. Also use this for deciding whether a user is allowed to do something (although you should really be using roles and groups!).
select suser_sname()

Finally, here's one you should already know. If you're going to get the value of the identity column that you just forced to generate that value by inserting into a table, use
select scope_identity()
and not
@@identity

Tech 2 - Ubuntu
I recently decided (finally!) to upgrade my Ubuntu from version 11.10 (Oct 2011) to 12.04 (April 2012). Nothing daring, you understand! Of course, I haven't been running the standard desktop interface - Unity - on my system, so when I moved on it didn't get upgraded (why should it!). Instead of which I got a semi-functional GNOME desktop (most of GNOME, but with some bits missing!). Well, nobody's perfect, so I decided to try something completely different and go back to the minimal desktop - XFCE - that I'd tried out and liked on a very underpowered Asus book-sized machine that I currently have bolted to the back of a monitor!
So I looked up the procedure, found a good description here, opened up a terminal window and entered
sudo apt-get install xfce4
and watched as about a million instructions whizzed by! Eventually it all came to an end, but nothing seemed diffferent, so I re-booted, got the logon screen, clicked on a small button and selected XFCE, and then logged on as normal.
Wow! What a difference! Aside from the fact that all the broken bits now worked, and all my programs were still there, and none of my data had vanished, it now looks totally different

If you zoom in you'll see the top bar has about a dozen icons for programs I run a lot, followed by seven that are actually running in this workspace right now.
Next come four pairs of minimised screens, showing the four workspaces, a clock, the Dropbox icon, and the indicator that I'm connected by wire to the web.




The workspace selector shows four workspaces - each with two screens for me because I have two screens! - and a greeked-down representation of what's going on. The furthest-left is what's in the larger screen-grab - nothing much except VirtualBox running. The second workspace is running a copy of Windows XP/64, and the furthest right shows a virtual machine running Windows 7, itself with two screens.
So XFCE fixed my problems and is a very functional GUI for Ubuntu. Of course, it helps to have gobs of memory in your machine, but that was my Christmas present - upgrading from 12 GB to 32 GB of RAM, and it really didn't break  the bank!

Tech 3 - Android and SQL Server
Sorry, no! You can't run SQL Server on Android (I'm not sure Android runs VirtualBox yet!), but if you have an android tablet and subscribe to SQL Server Pro magazine, you should definitely think of getting Texterity's application for reading your magazine - on- or off-line. I read it on the train in to work, and don't need a link, so who cares about tunnels! Check out the app here.

Non-Tech
Just a quick cat-pic.
TTFN






Friday, October 26, 2012

Changing Time!

For those wondering if their jobs will run twice (or not at all) because of the daylight time changes in the next few months, here are a couple of links to help

Daylight Time and SQL Server Jobs

and for those using SQL Server 2005 and 2000,

Preparing for Time Changes

TTFN


Found Food

I have published quite a few recipes here on my blog over the last few years, and I hope that all my readers have tried at least some of the...