Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
all groups > sql server programming > january 2005 > threads for saturday january 22

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

"GROUP BY" "Start-time to end-time" will cross the 7pm mark
Posted by \ at 1/22/2005 11:56:39 PM
I have an SQL table that contains records like: > User-name Start-time End-time > Bob 22-Jan-2005 9:26am 22-Jan-2005 3:15pm > Gary 22-Jan-2005 7:45am 22-Jan-2005 2:25pm > Joe 23-Jan-2005 3:16am 23-Jan-2005 1:11pm > Fred ...more >>


Pros & Cons of uniqueidentifier as PK.
Posted by Lee Tudor at 1/22/2005 11:53:05 PM
Here are some pros and cons of using uniqueidentifier as a PK, do you think that they justify using or losing it? Pro Inserts are evenly spread into the index (clustered or not) and therefore the index requires less maintenance to remain optimally structured. Pro The client can generate ...more >>

Temp Tables
Posted by Sandy at 1/22/2005 11:49:01 PM
I am developing my first website that involves people adding or updating a directory listing in a database. I'm using VB.Net and Sql Server 2000. Is this type of situation normally handled with some sort of temp table that is looked at by someone before the info is actually added to the da...more >>

Identity column: what happens when it runs out?
Posted by Adam Clauss at 1/22/2005 3:22:22 PM
I have a table containing an identity column (bigint) as its primary key. The table will have very frequent insertions/deletions from it. Many items will be added, but they aren't really expected to be there for long. I can never expect that the table is empty, however. So, eventually, th...more >>

FLOAT datatype weirdness
Posted by MSSQLServerDeveloper at 1/22/2005 11:21:02 AM
Hello - I have the following two sets of very simple SQL --Example #1 DECLARE @BaseNum float SELECT @BaseNum = RAND( (DATEPART(mm, GETDATE()) * 100000 ) + (DATEPART(ss, GETDATE()) * 1000 ) + DATEPART(ms, GETDATE()) ) print @BaseNum go --Example #2 SELECT RAND( (DATEPA...more >>

Detecting the INSERT format for DATE database fields?
Posted by tomjerk NO[at]SPAM hotmail.com at 1/22/2005 9:37:04 AM
Assume I got a database resp. table defintion with a DATE field. How do I find out in which format the field should be filled in an INSERT SQL statement? Sometimes when I enter e.g. INSERT INTO .... VALUES (....., '2005-01-25',.....); or INSERT INTO .... VALUES (....., '2005-01-25-13.14.15....more >>

Row Count using Group By and Having
Posted by Kiran at 1/22/2005 12:49:24 AM
Hi, I have a query that uses Group By and Having to retrieve records. The query is working fine and I want to get the Row Count of that Query. How will I do that. Thanks Kiran ...more >>

Cursors in functions
Posted by Anett at 1/22/2005 12:26:31 AM
Hi When I want to loop through a result in sp I use Cursor and Fetch. But that does not work in functions (atleast not for me). Anyone that knows what to use instead?? /Anett...more >>




DevelopmentNow Blog