navigation
 Saturday, January 10, 2009
After installing a new version of VS.NET there are three environment settings I always change from the default settings to make things a little better and save me time using VS.NET 2008.
posted on January 10, 2009  #    by Gary Campbell  Comments [1]
 Tuesday, January 06, 2009

Sometimes you want to clear out a database, but you can't just drop the entire database and create a new one. Recently, a colleague needed to do just that, but couldn't because the database was hosted elsewhere. Here is a simple script that works to drop all objects in any database I've tested it against so far. If your database contains object types that mine don't, you might need to add to this script using the same patterns established here.

declare @n char(1)
set @n = char(10)

declare @stmt nvarchar(max)

-- procedures
select @stmt = isnull( @stmt + @n, '' ) +
    'drop procedure [' + name + ']'
from sys.procedures

-- check constraints
select @stmt = isnull( @stmt + @n, '' ) +
    'alter table [' + object_name( parent_object_id ) + '] drop constraint [' + name + ']'
from sys.check_constraints

-- functions
select @stmt = isnull( @stmt + @n, '' ) +
    'drop function [' + name + ']'
from sys.objects
where type in ( 'FN', 'IF', 'TF' )

-- views
select @stmt = isnull( @stmt + @n, '' ) +
    'drop view [' + name + ']'
from sys.views

-- foreign keys
select @stmt = isnull( @stmt + @n, '' ) +
    'alter table [' + object_name( parent_object_id ) + '] drop constraint [' + name + ']'
from sys.foreign_keys

-- tables
select @stmt = isnull( @stmt + @n, '' ) +
    'drop table [' + name + ']'
from sys.tables

-- user defined types
select @stmt = isnull( @stmt + @n, '' ) +
    'drop type [' + name + ']'
from sys.types
where is_user_defined = 1

exec sp_executesql @stmt
posted on January 6, 2009  #    by Adam Anderson  Comments [3]
A recent project has had me spending a lot of time working with Telerik controls for WinForms, and sometimes learning some lesser-known tricks in the process. Whether by research on Telerik's support site, contact with the fine people at Telerik themselves, or just plain old experimentation, it's been fun to learn these little tidbits that can help turn a control, like the RadTabStrip from just functionally acceptable into something much more.
posted on January 6, 2009  #    by Rachel Hagerman  Comments [1]
 Wednesday, December 17, 2008
Have you ever been in the middle of large source file and you need to add a "DataTable" or something else, but you don't have the appropriate "using" directive at the top of your file? In VS.NET it is very simple to add the "using" directive with a few clicks saving us developers some valuable keystrokes.
posted on December 17, 2008  #    by Gary Campbell  Comments [1]
 Thursday, December 11, 2008

The Texas gang braved freezing temperatures and got together for a little Christmas dinner and celebrated a great year with Falafel. Our chef gave us a Texas-sized helping of sushi, steak, chicken, shrimp, and calamari. Afterwards we all retired for a bit of ice cream.

DSCN2224

posted on December 11, 2008  #    by Bary Nusz  Comments [0]
 Wednesday, December 10, 2008
The Falafel training department has just shipped the official RadControls for ASP.NET AJAX courseware used for training Telerik customers world-wide.
posted on December 10, 2008  #    by John Waters  Comments [1]
 Wednesday, November 26, 2008

On December 2nd 2008 at 6:30 PM, Lino Tadros, President & CEO of Falafel Software, will present two sessions on AJAX and Silverlight 2.0 from 6:30 to 8:30 PM at the Foothills College campus in Los Altos Hills.

Please visit http://www.baynetug.org to learn more about the UsersGroup and the two sessions.  Hope to see you there!

 |  |  | 
posted on November 26, 2008  #    by Lino Tadros  Comments [1]
There are times when you may want to create your own custom build configuration for a project in Visual Studio, such as to define compiler symbols or to set build options for different projects within your solution. Fortunately, Visual studio makes it very simple.
posted on November 26, 2008  #    by Rachel Hagerman  Comments [1]
 Monday, November 17, 2008
Would you like to associate each of your subversion check-ins with a particular issue, bug or change request? TortoiseSVN provides an easy way to link revisions to issues in any bug tracking system.
posted on November 17, 2008  #    by Mike Dugan  Comments [3]
 Monday, November 10, 2008
Learn about a way to obtain SCOPE_IDENTITY() values from inside an INSTEAD OF INSERT trigger for use in subsequent SQL statements, without using an alternate key.
posted on November 10, 2008  #    by Adam Anderson  Comments [2]