|
|
Paul Mayhew posted this in Misc, Windows 7, tips on January 14th, 2010
A long time XP user, I was very nervous about getting a new system with windows 7. Would anything work? Would it be slower? All kinds of things ran through my head. I read all the reviews and for the most part, it seemed like a sucessful release, but then?……..
Continue reading → Windows 7 — First Impressions
Ivan Beg posted this in db2, tips on December 17th, 2009
Have you ever had a situation where you needed to select rows from a table for a specific month? This example demonstrates how to retrieve all of the records belonging to the previous month by setting the first and last days in the WHERE clause of a SELECT statement. But with some tweaking, you can make this query retrieve data from any month you wish.
Continue reading → Getting records based on the first and last days of a month
Paul Mayhew posted this in db2, hadr on December 16th, 2009
This is the last post about HADR, I think I covered most of the basics of HADR finishing off with how it switches primary and standby. What I have gone over is the basics of HADR. There are many other topics within HADR. One important thing to remember is to NEVER do unlogged operations (careful with the load command). Not only will it ‘break’ HADR standby, but it will not tell you — you’ll not find out until you switch over to the standby to find it unusable. I believe that in version 9.7, we are being allowed access to the standby. This will allow you to validate the usability of the standby as well as other things like reporting.
Continue reading → DB2 HADR for dummies - Part 3
Paul Mayhew posted this in db2, hadr, tips on November 26th, 2009
Okay, so here we go …. setting up an hadr environment…. HADR in it’s lowest form is very straight forward to set up. Here are the steps to start HADR
Continue reading → DB2 HADR for dummies - Part 2
Paul Mayhew posted this in db2, hadr, tips on November 5th, 2009
HADR is a very easy and effective way to maintain a DR and/or standby for any given database. You can implement it very quickly and simply and it works well. In essence it is basically log shipping, but done in real time and elegantly. It is not replication, so the standby database is not really accessible when in stand by mode. As well, since it is basically log shipping, any operation that is not logged will not make it to the standby database. Load operations can be a problem as are things like tables with ‘not logged initially’. You will have to review your own situations as they arise.
Continue reading → DB2 HADR for dummies - Part 1
Paul Mayhew posted this in Misc, db2, tips on September 14th, 2009
Excel is a wonderful tool that can be used to write sql using substitution from cells to cusomize and update or insert. One problem has always been dates… they never come out right
Continue reading → using excel to write sql
Paul Mayhew posted this in Misc, tips on September 14th, 2009
To find text in a directory of files, use the following Windows command (it’s faster than Windows Search):
- This will search all files in the current directory for the text you are looking for: findstr /c:”I want to find this text” *.*
- If you want to also search sub-directories use the /s option: findstr /s /c:”I want to find this text” *.*
Paul Mayhew posted this in Misc, links on May 12th, 2009
Hi folks,
I was cruising around the www and found a couple of interesting sites that I thought I would pass on … Continue reading → A few interesting sql tutorial sites I have found
Paul Mayhew posted this in Misc, db2, tips on May 5th, 2009
Have you ever had a requirement to number the results of a sql query? There are some occassions wheer you want to identify the nth record of a result and it can sometimes be a tricky thing to do. One of the reasons you might want to number the results is to create a mechanizm to produce pageable results. For example, if you had an application that wants to have ‘pages’ where page one has the first 30 rows returned and page two has the second 30 rows and so on….. it could become onerous to have the application do all of this work. It might be easier for the sql to just return the rows (or pages) you want as indicated by the app. To do this you need to know what rows qualify and to do that you need to number them….
Here is the trick….. Continue reading → How to number your sql results
Paul Mayhew posted this in db2, tips on May 1st, 2009
Some time ago, we upgraded our DB2 from version 7 to 8.2. One of the first things we noticed was that connection times from our client were very long - in the area of about 15 to 20 seconds just to connect to an active database. Continue reading → Slow DB2 connect problem from client
|
|