Browse by Tags

Related Posts

  • What's in a name...

    After my last post, it got me thinking about the power and peril of product naming. A good product name can describe, define, and identify your product, it can energize customers to buy, attach an ideal, culture, or image to a widget (think iPod), and it can even make your product memorable or seem unique...
    Posted to Lance's Whiteboard (Weblog) by CodeSniper on 11-07-2006, 12:00 AM
    Filed under: SQL Server, Marketing, Microsoft
  • What's in a name...

    After my last post, it got me thinking about the power and peril of product naming. A good product name can describe, define, and identify your product, it can energize customers to buy, attach an ideal, culture, or image to a widget (think iPod), and it can even make your product memorable or seem unique...
    Posted to Lance's Whiteboard (Weblog) by CodeSniper on 11-07-2006, 12:00 AM
    Filed under: SQL Server, Marketing, Microsoft
  • dbo.PartitionLeft, dbo.PartitionRight and dbo.Partition

    IF EXISTS( SELECT * FROM dbo . sysobjects WHERE id = OBJECT_ID ( N'[dbo].[PartitionLeft]' ) AND xtype in ( N'FN' , N'IF' , N'TF' ) ) BEGIN DROP FUNCTION [dbo] . [PartitionLeft] END GO CREATE FUNCTION [dbo] . [PartitionLeft] ( @value bigint , @min bigint , @max bigint , @range bigint ) RETURNS bigint...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-08-2006, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • CREATE FUNCTION dbo.IsValidCPF

    IF EXISTS( SELECT * FROM dbo . sysobjects WHERE id = object_id ( N'[dbo].[IsValidCPF]' ) AND xtype in ( N'FN' , N'IF' , N'TF' ) ) BEGIN DROP FUNCTION [dbo] . [IsValidCPF] END GO CREATE FUNCTION dbo . IsValidCPF ( @CPF varchar ( 11 ) ) RETURNS bit AS BEGIN DECLARE @Digito int DECLARE @Index int DECLARE...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 05-09-2006, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • How to mimic Microsoft Access's FIRST and LAST clauses on SQL Server 2k, 7.0 and 6.5

    Suppose I have the following query run against Pubs database SELECT employee . emp_id , employee . fname , employee . minit , employee . lname , employee . job_id , jobs . job_desc , employee . job_lvl , employee . pub_id , employee . hire_date FROM employee INNER JOIN jobs ON employee . job_id = jobs...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 09-28-2005, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • ISNULL + NULLIF instead of CASE WHEN

    Today I had to write a SQL statement quite similar to the sample below: SELECT ProductID, ProductName, CASE WHEN ProductDescription IS NULL OR ProductDescription = '' THEN '<no description>' ELSE ProductDescription END AS ProductDescription FROM Products ORDER BY ProductName Then...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-08-2005, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • Something I learnt about SQL table type this week

    Q: When I try to compile the procedure below I get the error Must declare the variable '@TableType'. Can you guess why the following stored procedure does not compile? CREATE PROCEDURE #SystemTablesAndColumns AS DECLARE @TableType TABLE (id int, name sysname) INSERT INTO @TableType ( id, name...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 12-10-2004, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • Boring SQL server message errors

    Last week, I created some scripts to move data from an old database to a new one. Some tables consisted of many fields and the old ones were not typed, that is, all fields where char, varchar, etc. INSERT INTO targetTable ( targetField1, targetField2, targetField3, ... targetFieldN ) SELECT targetField1...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 07-07-2004, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • DA, aka Data Administrators + ERWin = MESS

    Last week, I found out DA team, using ERWin to synchronize models and databases, had messed up with some foreign keys on a database I architected for an application I am developing and the FKs were missing. Then the question "How to find out which FKs are missing on a database made of about 200...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 07-06-2004, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • How to list nullable bit columns with no default bound with sp_bindefault

    I generally create bit columns as NOT NULL DEFAULT dbo.BIT_NO, which in turn is a SQL server default which translates to 0. Today, I found out somebody on my team had created lots of bit fields on several tables as NULL with no default set. So I created the SQL statement below, to list these fields and...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 07-02-2004, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
Page 1 of 3 (24 items) 1 2 3 Next >