Showing posts with label Database Administration. Show all posts
Showing posts with label Database Administration. Show all posts

Monday, April 2, 2012

What's New With SQL Server 2012 Training?

I wanted to share with everyone what to expect in the classroom from SQL Server 2012 courses.  As many of you know, for a long time SQL Server classes have been arranged in three core courses, while the content has changed over the years to support the various versions, the structure of these three courses has remained the same.  This structure being: query writing, "traditional" db administration, and database development.  With 2012, these three core facets remain in place in three new 2012 courses.  The query writing course which used to be a jammed packed three day course is now a jammed packed 5 day course (thankfully).  The administration and development courses remain unchanged in length and strong in focusing on the core fundamentals of both administration and development, like backup, restore, indexing, tuning, automating, auditing, and error handling.

These courses are now in beta and we at Centriq are evaluating and providing feedback to Microsoft to ensure the courses offer students what they need.  We plan on offering them to the public as soon as possible and right now that looks like second quarter.

I feel very good about the 2012 SQL training present offerings and I hope to see you in class!

Please use the following URL to get detailed course information on these core course and additional courses as Microsoft makes them available.

Tuesday, February 7, 2012

Cloud Intelligenece Conference: Keynote Speaker Announced!


Centriq Training is pleased to announce Paul Mattes, Microsoft U.S. Director of the Windows Azure Platform and Technical Computing, as the 2012 Cloud Intelligence Conference Keynote Speaker!

This one day conference will be held on April 12, 2012 at the Overland Park Convention Center. 

Mr. Mattes' Microsoft teams are responsible for working with customers and partners to identify and deliver solutions based on Microsoft’s cloud computing assets and High Performance Computing software. He has over 25 years experience in a diverse set of disciplines including software architecture and engineering, data center operations, enterprise sales management and strategic business consulting. Learn more about him here.

This event is ideal for IT professionals, business decision makers and executives from all types of technology backgrounds. Some topics will include Public Cloud, Private Cloud, Hybrid Strategies, Cloud Security, Virtualization, Migration and Information Architecture. Seating is limited. To learn more or register for this event, please visit www.centriq.com/CloudIntelligence.

For questions or more information on the event contact your Account Executive at 913-322-7000.

- Jessica Oliver, Director of Operations LinkIn with Jessica

Bookmark and Share

Friday, July 29, 2011

Goldielocks and the 3 Database Restore Plans

For those of you who have had me in class before, you have heard me talk about the benefits of applying the SIMPLE recovery model. And you have heard me urge its use if you can get away with it. You have also heard Microsoft write about the benefits of complex multi steps DR plans for huge enterprises. Recently I ran into a situation where an approach right in the middle was called for, and I’d like to share that with you.

Back up and restore scenarios are all about 2 things. “Mean time to recovery” and “Acceptable data loss”. Weaved into the art of leveraging these components are idiosyncrasies to your own environment. Recently I ran into this environment...

ENVIRONMENT:
12 gig Mission critical database
Restore operations MUST be quick and simple
24 hour data loss is acceptable
Disk space for retention of backups is limited (about 60GB available)
Daily transactions touch about 2-10% of the total size of the database (through inserts or updates, deletes almost never occur)

A traditional backup up schedule of a complete every night will not be sufficient, it will provide simple restores and handle the 24 hour data loss requirement, we simply will not have enough space for sufficient retention of backups.
On the other side of the spectrum , we could change to FULL recovery model and run a complete weekly, run transaction logs backups every 15 minutes, then run differentials every night. This option is unacceptable because the restore process is not simple enough, yet it does handle the disk space issue.

Consider this setup. Stay with the SIMPLE recovery model. Set up weekly complete backups and set up daily differential backups. This keeps restores relatively easy, it will always be a two step process – restore the complete then restore the most recent differential (no transaction logs). It also conserves disk space as we only have one 12 GB backup (the complete) per week, and the nightly backup is a differential of no more than several hundred MB (though this will grow throughout the week).

If you have a relatively large database that is mission critical but has few inserts into it daily, and quick/easy restorations is of utmost importance, consider the approach I just went over.

- Ed Dressler, SQL Server Expert; CTT+, MCDBA, and MCITP LinkIn with Ed

Bookmark and Share

Friday, April 1, 2011

How To: Query Spreadsheet Data in a SQL Table [VIDEO]


Centriq's SQL Expert, Ed Dressler demonstrates a quick solution to a very common SQL problem. 




- Ed Dressler, SQL Server Expert; CTT+, MCDBA, and MCITP LinkIn with Ed

Bookmark and Share

Tuesday, November 9, 2010

SharePoint Tip!


SharePoint Tip: SharePoint Manager 2010 is an object browser that is a one-stop tool that can be used to browse and view every property on the local farm or local site. It also enables you to change the properties in a single interface. This tool can be downloaded from Codeplex here: http://spm.codeplex.com/


- Steve Nichols, SharePoint Expert; MCT, MCTS, MCSE LinkIn with Steve

Bookmark and Share

Tuesday, October 26, 2010

Class Spotlight: MS-10175A Microsoft SharePoint 2010, Application Development

This class should be considered for certification and will help to prepare students for the 70-573 Exam.  This class is for experienced SharePoint 2007 developers who want to see the new features of SharePoint 2010.  

It showcases the ease of developing SharePoint applications with the built-in tools of Visual Studio 2010.  It introduces some of the new features of SharePoint Designer 2010 in the SharePoint web application development.  The developer candidate should be well versed in Visual Studio and the C# application language as this class does not teach these skills, it simply shows the student how to apply these skills to SharePoint development.

For more info on the course and to see upcoming dates on our calendar, click here. 

Once a student successfully completes this course, they can then take the MS-10232 course, which gets them into developing SharePoint Applications.

- Steve Nichols, SharePoint Expert; MCT, MCTS, MCSE LinkIn with Steve

Bookmark and Share

Thursday, October 7, 2010

Class Spotlight: MS-10174 Configuring and Managing Microsoft SharePoint 2010


MS-10174 should be considered for certification and will help you prepare for the 70-667 Exam. Ideal for IT installers and current Sharepoint Administrators of Sharepoint 2007, this class is also for individuals who are upgrading from Sharepoint 2007 to Sharepoint 2010. You should have Sharepoint 2007 experience before taking this course, so I would recommend taking some end-user courses first if you don't the background knowledge. 

Check out the course outline or look at upcoming dates by clicking here. 

Also, if you're ever interested in learning more SharePoint outside the classroom, this is an excellent site for Sharepoint End Users who want to advance their knowledge: http://www.sharepointshepherd.com/default.aspx

- Steve Nichols, SharePoint Expert; MCT, MCTS, MCSE LinkIn with Steve

Bookmark and Share

Friday, September 17, 2010

Remote Training: The solution you may be missing out on


When it comes to today’s IT training customers have several options from companies nationwide. Instructor led training, mentored learning training, self-based learning and remote training all have their place in training.  Some students prefer to learn at their own pace and others like instructor led so they can ask questions and receive feedback.  Here at Centriq we offer 3 main training solutions to our customers as part of our Centriq Choice Program including Local Instructor Led Training, Remote Instructor Led Training and High Definition Instructor Led Training.

Local instructor led training has always been the favorite training type for most students.  Local ILT gives the opportunity for the student to have interaction with the instructor and receive feedback on questions and comments.  As an instructor of 15 years, my own opinion is biased.  I believe Local ILT provides the best opportunity for students to learn.  However in today’s environment, Local ILT is not always available because of time constraints of work and the cost of travel.  Also for some students there is the time away from the office.  In most of my classes today, corporate students are connected to work by either a laptop or cell phone still working even while attending classes.  It might not be the best learning opportunity but it is better than no training at all.  So is there a way for students to still get the training they need, be able to still be in touch with work and save money on travel and other expenses?  Remote ILT may be the answer for you and your company. 

With the increase in bandwidth, speed of internet links and new tools and methodologies, Remote ILT has come a long way.  Here at Centriq Training we are currently providing 2 ways to provide students with access to remote training—Remote ILT and HD ILT. 

Remote ILT is where a student can access a live class remotely from their work or home.  The class will have both students in the class as well as students remoting over the internet.  Just like a student in the class, each student will have access to the following: 1) their own host pc with their own virtual pc or VMware machines and 2) access to the instructor as well as other students via two way audio, one way video and internet chat.  The remote student can ask questions in class of the instructor or class so they feel a connection as if they are right in the class.  As an instructor I have been through extensive training to ensure remote students are encouraged to participate in class and feel at home. 

Along with my training, we also have tools that ensure that the remote student has a great experience.  First, Centriq sends out prior to the first day of class a check list of items for the student to complete to ensure proper and efficient connectivity to the classroom.  The student will also receive a headset with a microphone to ensure the two-way audio for the class.  Once the student has completed the checklist, they will be ready to attend the first day of class.  Also to ensure a good experience, we provide the best tech support should the student have any connectivity issues before and during class.  Centriq utilizes tools such as Microsoft Office Live Meeting for audio, video and chat, Citrix’s Go To My PC for the host connection and NetSupport for classroom management.  Consider, for example, a remote student having an issue with a lab. All they have to do is tell the instructor what they are having a problem with, then the instructor can use NetSupport to see the students host (which by the way is in the classroom, not in a rack somewhere out of sight) and help them.  Also if they are experiencing problems with the host, the instructor can go over to the host pc and fix the problem or have our support team fix the issue.  As you can see, using these tools along with a qualified remote instructor, the remote student will feel like they are right there in the classroom.

Our second remote solution, HD-ILT, utilizes a two audio-video solution.  We have a 60 inch High Definition TV with camera in the classroom at Centriq.  This currently is available for high-end Cisco classes only.  The student will come to Centriq and actively participate in a Cisco certified class remotely with a Cisco Certified Instructor and authorized curriculum.  The instructor from the remote classroom will see and hear all the students in the Centriq class and vice-versa.  The big benefit is that the student will be working on live Cisco equipment and not simulators or virtual machines.  Need a Cisco class that Centriq is not teaching locally? Check our schedule for remote Cisco VOIP, Security and Wireless classes.  We will still be teaching Cisco classes such as CCNA and CCNP locally, but for those who need more advanced Cisco training make sure you check out our HD-ILT solution.

I think the best benefit from Centriq’s remote training solutions is the cost and time.  No more does a company have to spend money on travel expenses to Kansas City for a week to take a course, now the student can be at work or home to and still get the training they need. 

I encourage you to check out our course schedule at http://www.centriq.com/CentriqSchedule.aspx and I hope to see you in a local or remote class.


- Tom Pruett, Cisco & Security Expert; MCT, CTT+, CISSP, CWNA, CEH, CHFI, CCSI, CCNA, MCSE LinkIn with Tom


Bookmark and Share

Friday, September 3, 2010

Tired of slow SQL queries?

Getting tired of those poorly performing queries or stored procedures? Getting even more tired of the phone calls that result from those poorly performing queries or stored procedures? Obviously, disconnecting your phone and huddling in the corner crying is not the answer (take it from me). Maybe what you need to do is look at the structure of your database and consider a little modification. First, a few questions.

Is at least one of your tables the size of (insert favorite Hollywood actor’s name)’s ego? And does that titanically (not a movie reference) humongous table have at least one column that could be used to divide the data into smaller chunks, like a date column in a Sales table with many months or years of data with hundreds of thousands, maybe even millions of rows? Can you add (would your budget allow) more physical disks to your SQL Server solution? And the biggest question, can you afford, or do you already have, the Enterprise edition of SQL server?

Well, if you were able to answer yes to all of those questions, it is possible that you might be able to tweak that lumbering hulk into exhibiting a few more miles per hour by making a few simple, if not inexpensive, changes.

The short version (level 000) is that you create new physical drives, define ranges of data and assign those ranges of data to different disks (or RAID 5 arrays). This is called table partitioning. Read on only if you really want to know how it is done (level 100)!

First, you must decide where to divide your data. For example, if you have about 10 million rows of Sales data for the last 5 years, you need to choose how to break that data down into smaller pieces. This decision is really based on how many physical disks you can add to your system. If you like keeping your data on RAID 5’s and you can get your hands on 5 more RAID 5 arrays,  you can divide you data into 5 parts (which just happens to nicely match 5 years of data).

So you create 5 new RAID 5 arrays. And in your database properties you create 5 new filegroups with at least one file each, one filegroup per RAID 5 array. Then, we are going to use these 5 different filegroups residing on 5 different arrays to create our partitioning strategy.

Now, we use a Transact SQL statement like this one

CREATE PARTITION FUNCTION [myDateRangePF1] (datetime)
AS RANGE RIGHT FOR VALUES ('20030101', '20040101', '20050101',
                           '20060101', '20070101');

to define the range of values for each portion of our table that will be stored separately from the rest. In this case, all sales for the year 2003, date 20030101 thru 20031231 (RANGE RIGHT starts with date 20030101 and ends before the next date, 20040101) will be assigned to the first partition in our function. Then 2004 is assigned to the next and so on. The last partition, 20070101, being the last listed, includes all subsequent dates, unless the function is later modified, which it can be.

Next, each range is assigned to a filegroup with a statement that looks like this

CREATE PARTITION SCHEME myRangePS1
AS PARTITION myRangePF1  --the name of the function we just created
TO (test1fg, test2fg, test3fg, test4fg, test5fg, test6fg); --these are our filegroups

Now, all of the data for 2003 will be stored in the first filegroup on the first RAID 5 array, the data for 2004 will be stored on the second new array, and so on. This will give you more actual disks supporting queries for a single table, reducing (theoretically) disk I/O and increasing (keep your fingers crossed) query response times. Yeah, I know I mentioned 6 filegroups in my scheme but I need to leave at least one mystery hanging out there for you to explore on your own or read on http://msdn.microsoft.com (or learn about in my class!!)

If you really need more info, and you want me to give it to you (because who wants to take advantage of all that great free info on the internet?), connect to me on the LinkedIn link below and send me your questions. Or comment on this blog. Or come to my week long class MS 6232 starting November 15!

“Seeya at tha pahty, Richtah…”

- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter

Bookmark and Share

Wednesday, September 1, 2010

Ask Your Instructor: SQL Server FAQ's Part II


Got SQL Server questions? I love them! Even when I don’t have the answer right then!

I recently delivered a class on “Maintaining a Microsoft SQL Server 2008 Database” and I promised my students that I would capture their ad-hoc questions (and even some answers) in a document and, thinking that it was possible that someone else out in the web ether might have had the same question, decided to share them.

So here they are in all their glory. Enjoy!

8) Can you have multiple replication types going INTO one database?

Yes, but you must manage objname collisions manually.

9) Can you replicate from a mirror? 

Sort of… http://msdn.microsoft.com/en-us/library/ms151799.aspx  My understanding of the question is can you replicate from the database that is the CURRENT mirror. So far all of my tests have proven to me that I cannot, (but I am sure someone out there is up to the challenge). Never say it can’t be done unless you can prove it!

10) Does the restore of a database require re-initializing of a publication? 

Yes, if you want to move all copies of the data BACK to the restore point. Otherwise use synchronization to bring the restored database up to date with the subscribers.

11) Will changing the root of my IIS installation break Reporting Services?

No, IIS is handling the connection to the root of the web service so Reporting Services will simply be redirected to the new location.

12) Can you use SQL Server Express Edition as a WITNESS in a Mirror? 

Yes, you can use Express, Workgroup, Standard or Enterprise (SQL Server 2005 and later) as a WITNESS, although the Mirror and Principal can only be created on Standard and Enterprise. http://msdn.microsoft.com/en-us/library/ms175191.aspx

13) What is the heartbeat setting of a Mirror and can I change it?

The default time is 10 seconds but it can be modified using this statement on the Principal: ALTER DATABASE SET PARTNER TIMEOUT 

14) Can I run the SQL Server 2008 Profiler on SQL Server 2000? 

Yes

The questions I get from students keep these courses interesting for me and I would love to hear your questions through this blog or in my class. After all, as a long time veteran Microsoft employee told me a few years ago, “After 10 years of work on Microsoft products with a dozen certifications, you can only attain about 1% knowledge of the Microsoft technologies.”

Ok, I gotta go hit the books. My next class is probably going to ask about the other 99%... again. Stay tuned for Part II of this post!


- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter


Bookmark and Share

Monday, August 30, 2010

Ask Your Instructor: SQL Server FAQ's Part I


Got SQL Server questions? I love them! Even when I don’t have the answer right then!

I recently delivered a class on “Maintaining a Microsoft SQL Server 2008 Database” and I promised my students that I would capture their ad-hoc questions (and even some answers) in a document and, thinking that it was possible that someone else out in the web ether might have had the same question, decided to share them.

So here they are in all their glory. Enjoy!

1) Is there any reason to use Binary Collation?
It is the fastest. More on collations at http://msdn.microsoft.com/en-us/library/ms143515(v=SQL.90).aspx

2) Can you backup and restore an entire instance?
Not in the same way as a database, no, BUT, you can right-click on the instance, choose Facets, and “Export Current State as Policy” and use this exported data with Policy Based Management to apply against another instance or even multiple instances.

3) Is sqlcmd -A (dedicated administrator connection) for the local host only? No, you can connect to a remote server using: sqlcmd –A –S ServerName

4) Where can I get a list of torn pages?
(USE msdb) SELECT * FROM suspect_pages

5) Are Windows credentials cached in a SQL Server session?
Yes, until the connection is ended

6) Where can I get a list of certificates in SQL Server?
SELECT * FROM sys.certificates

7) Is there an issue with resolving conflicting Identity columns in HTTP merge replication?
Identity columns cannot be ADDED to a publication (GUID’s are used for uniqueness) but they can be used if different values are used in the publication and each subscriber http://msdn.microsoft.com/en-us/library/ms152543.aspx


The questions I get from students keep these courses interesting for me and I would love to hear your questions through this blog or in my class. After all, as a long time veteran Microsoft employee told me a few years ago, “After 10 years of work on Microsoft products with a dozen certifications, you can only attain about 1% knowledge of the Microsoft technologies.”

Ok, I gotta go hit the books. My next class is probably going to ask about the other 99%... again. Stay tuned for Part II of this post!


- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter


Bookmark and Share

Monday, August 23, 2010

With an Iron Fist (SQL PBM)

Maybe you were a system admin that got sucked into the exotic land of database administration because there was no one else to do it. Maybe you are a DBA on purpose. It might even be possible that one day you were writing web applications in your remote and intentionally isolated cube at the far end of the “trailer park” and faster than you can say DBCC CHECKDB REPAIR_ALLOW_DATA_LOSS you found yourself in charge of an unwieldy, quickly expanding and barely governed SQL Server environment.

In any case, you may have wondered, if there were some way to control the environment of SQL Server proactively and to have an automated way to enforce all of those naming convention standards and object settings that you TALKED about, documented and trained on. Have I got news for you!

In SQL Server 2008, a new feature called Policy Based Management (PBM) was introduced. The idea is that if you have a setting or convention that you wish to check for and/or ENFORCE (get your control freak on), you just create a policy that defines the object (maybe a database), a facet (the property that can be checked for or enforced, like the recovery model of a database), and a condition (the value of the property, like Full for the recovery model). Systems Administrators (yes the “A” is capitalized!) will recognize this concept as having some similarity with Group Policy in Active Directory Domain Services, although the application and verification of the policy is done quite differently.

The really fun part is that using Central Management Servers in SSMS, you can enlist one or more instances to monitor or enforce, manually or on a schedule, from one instance. You can do ad-hoc policy checks and enforce the policy on objects that are not in compliance and you can include all objects of the type within an instance or you can un-enlist individual objects.

Some examples of the types of policies you might create and assign might be controlling role membership and preventing future modification by doing a ROLLBACK when someone is added (sounds like Restricted Groups in AD), or perhaps you need to make sure that every instance in your organization must use Windows Authentication only. Maybe, instead of asking nicely and resending out that paper policy that governs object name conventions, you just need to make those ornery developers name all of their user stored procedures with a “usp_” prefix (I love you guys, really). Whatever the standardization need, PBM probably has the property you need to get a handle on. And standardizing is the whole point. It is an interesting exercise to document standards. It is a whole lot more satisfying to be able to inflict -- um – enforce them.

Hopefully, I will be speaking on this topic for SQL Saturday in Kansas City, on October 2, 2010 http://www.sqlsaturday.com/53/eventhome.aspx or you can spend some time trying it out in one of our Microsoft 6158 classes in Leawood, KS, (many of which can be attended remotely) http://www.centriq.com/CentriqSchedule.aspx.

Now go forth and standardize!



- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter


Bookmark and Share

Wednesday, August 4, 2010

Joins, Joins, Joins




Hey SQL DBA's and developers, still having trouble trying to visualize joins and how they work? Well, give that part of your brain a rest and look at this article that uses Venn diagrams to make a visual representation of how joins work.

http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html

Many of my students have told me that this has helped them tremendously to get a better grasp on the concept and, admittedly, it has made my job alot easier :)

Now, certainly, there are some exceptions that cannot be expressed in this manner, and the analogy breaks down under careful examination. Please refrain from bombarding my inbox with all of the reaons that this analogy is flawed :) Most analogies are. But for those of you who are trying to get just the slightest notion of what a join does, this article is a great starting place to get your brain moving in the right direction.

And you can always come to my October class on T-SQL to have this clarified. Look forward to seeing you there!


- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter

Bookmark and Share

Tuesday, June 29, 2010

Ask Your Instructor: SQL Server Permissions

Peter,

I was a student in your May 24-26 class and was hoping that you could assist me with a sequel question.

In the SQL Server there is a section to set up users, groups and permissions. If there is a change in the permissions for a group, is there any way to research when this change took place and who updated the permissions?

Thanks for your consideration.

Tricia
----------------------------------------------------------------------------

Tricia,

Yes, there is a feature called SQL Server audit and I have a link to the MSDN webpage that explains it. The basic concept is to create an audit that can have one or more audit specifications assigned to it, enable the audit and the audit specs and track any type of activity that is available through audit specs.

http://msdn.microsoft.com/en-us/library/cc280663.aspx

This should get you started. We cover this briefly in Module 4 of the 6231 class which I am teaching June 28-July 2. We don’t spend a lot of time on it but you get to see it and try it, as well as learning many other aspects of maintaining SQL Server throughout the week.

Hope to see you there. Please feel free to ask any further questions!

- Peter Trast, SQL Expert; MCITP DBA, MCITP EA, MCT
LinkIn with Peter

Bookmark and Share