Subscribe: SQLTeam.com Articles
http://feeds.feedburner.com/Sqlteam
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
article  events  express  procedures  scheduling  server agent  server express  server  sql server  sql  stored procedures  stored 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: SQLTeam.com Articles

SQLTeam.com Articles



SQL Server related articles and news from SQLTeam.com



Copyright: (c) 2009, SQLTeam Publishing, LLC. All Rights Reserved.
 



Fast CSV Import in PowerShell to SQL Server

Tue, 18 Mar 2014 00:00:00 GMT

I recently had to write some simple scripts for a proof of concept. These scripts use PowerShell to import and export CSV files from SQL Server. The scripts were simple to write and maintain but were slow. It turns out there are a few ways to improve CSV import and export performance in PowerShell.(image)



Using Dynamic SQL in Stored Procedures

Mon, 07 Mar 2011 00:00:00 GMT

Dynamic SQL allows stored procedures to “write” or dynamically generate their SQL statements. The most common use case for dynamic SQL is stored procedures with optional parameters in the WHERE clause. These are typically called from reports or screens that have multiple, optional search criteria. This article describes how to write these types of stored procedures so they execute well and resist SQL injection attacks.(image)



Handling SQL Server Errors

Mon, 05 Apr 2010 00:00:00 GMT

This article covers the basics of TRY CATCH error handling in T-SQL introduced in SQL Server 2005. It includes the usage of common functions to return information about the error and using the TRY CATCH block in stored procedures and transactions.(image)



Using REPLACE in an UPDATE statement

Wed, 31 Mar 2010 00:00:00 GMT

This article covers using the REPLACE function to selectively replace text inside a string in SQL Server. The REPLACE function is easy to use and very handy with an UPDATE statment.(image)



Efficiently Reuse Gaps in an Identity Column

Tue, 09 Feb 2010 00:00:00 GMT

This article will demonstrate an efficient way to reuse gaps in an identity column. Please note that this is something you normally shouldn't be bothered about in a well-designed database or application. However, there are circumstances where you are forced to do this.(image)



Testing with Profiler Custom Events and Database Snapshots

Mon, 22 Jun 2009 00:00:00 GMT

We've all had them. One of those stored procedures that is huge and contains complex business logic which may or may not be executed. These procedures make it an absolute nightmare when it comes to debugging problems because they're so complex and have so many logic offshoots that it's very easy to get lost when you're trying to determine the path that the procedure code took when it ran. Fortunately Profiler lets you define custom events that you can raise in your code and capture in a trace so you get a better window into the sub events occurring in your code. I found it very useful to use custom events and a database snapshot to debug some code recently and we'll explore both in this article. I find raising these events and running Profiler to be very useful for testing my stored procedures on my own as well as when my code is going through official testing and user acceptance. It's a simple approach and a great way to catch any performance problems or logic errors.(image)



Advanced SQL Server 2008 Extended Events with Examples

Mon, 25 May 2009 00:00:00 GMT

In the previous article we learned about SQL Server 2008 Extended Events terminology, components and took a look at a simple example. In this article we'll take a deeper look with some more complex examples.(image)



Introduction to SQL Server 2008 Extended Events

Tue, 19 May 2009 00:00:00 GMT

SQL Server 2008 Extended Events are the new low level, high performance eventing system in SQL Server. They use less system resources and provide better tracking of SQL Server performance than previous methods like Perfmon and SQL Trace/Profiler events.(image)



Monitoring SQL Server Agent with Powershell

Tue, 24 Mar 2009 00:00:00 GMT

This article introduces the reader to Powershell. The application that it demonstrates is one that monitors SQL Server Agent to make sure it is running.(image)



SQL Server Version

Thu, 29 Jan 2009 00:00:00 GMT

I'm continually trying to track down what service packs are installed on various SQL Servers I support. I can never find the right support page on Microsoft's site. So here's an article with all the SQL Server version information I can track down. If you know of any older versions or can help me fill out any missing data, please post in the comments and I'll update the article.(image)



Scheduling Jobs in SQL Server Express - Part 2

Mon, 01 Dec 2008 00:00:00 GMT

In my previous article Scheduling Jobs in SQL Server Express we saw how to make simple job scheduling in SQL Server 2005 Express work. We limited the scheduling to one time or daily repeats. Sometimes this isn't enough. In this article we'll take a look at how to make a scheduling solution based on Service Broker worthy of the SQL Server Agent itself.

(image)



Scheduling Jobs in SQL Server Express

Wed, 27 Aug 2008 00:00:00 GMT

As we all know SQL Server 2005 Express is a very powerful free edition of SQL Server 2005. However it does not contain SQL Server Agent service. Because of this scheduling jobs is not possible. So if we want to do this we have to install a free or commercial 3rd party product. This usually isn't allowed due to the security policies of many hosting companies and thus presents a problem. Maybe we want to schedule daily backups, database reindexing, statistics updating, etc. This is why I wanted to have a solution based only on SQL Server 2005 Express and not dependent on the hosting company. And of course there is one based on our old friend the Service Broker.

(image)