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 > march 2005 > threads for sunday march 27

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

Stored procedure inside of subquery
Posted by tshad at 3/27/2005 11:50:17 PM
Can you use a subquery in a subquery? I can't seem to get mine to work. I have a subquery (GetPositionIDByZip) that just returns a list of PositionIDs. I pass the zipcode I am interested in and a mile range. GetPostionIDByZip '92610',5 I want to get all the positions with these zip cod...more >>


Updating a column value.
Posted by Reese21 at 3/27/2005 11:03:01 PM
Quick question. I have the column with the value NA0042379 (nine characters). I would like to delete the 'A' from this value so it will become N0042379 (eight characters). I have tried using the SUBSTRING function, but am only able to use it in a select statement. I would like to actuall...more >>

Array in a Select Statement
Posted by Jack at 3/27/2005 9:42:39 PM
Hello, I have a table: ID INT - KEY Title NVARCHAR CAT NVARCHAR With this in it ID Title CAT 1 Test1 1,2,3 2 Test2 2,3 3 ...more >>

Assigning DATEADD results to variable
Posted by Sheldon Penner at 3/27/2005 7:45:04 PM
I am working on a stored procedure that requires saving the results of several DATEADD calculations to variables. The problem I am having is illustrated by the following code: -------------------------------------------------- declare @LastOfRecMo datetime declare @FirstOfNextMo datetime ...more >>

formatting the autonumber
Posted by JohnE at 3/27/2005 7:19:03 PM
I am a NEWBIE at this as I am stepping up from A2k. In A2k the autonumber used as the primary key allows formatting in which text can be used. Does MS SQL Server 2000 allow it as well? If so how does one go about it? Several A2k databases are also being considered for upsizing and they hav...more >>

Problems with casting in query
Posted by Henry at 3/27/2005 6:34:52 PM
Hi I have this query SELECT hour, rootnode, parentnode, childnode, besvaret, optaget, opgivet, ubesvaret, total FROM ( SELECT rootnode, parentnode, childnode, COUNT(*) AS total, COUNT (CASE WHEN durationofconversation > 0 THEN 1 END) AS besvaret, ...more >>

Newbie's Last Question
Posted by LacOniC at 3/27/2005 4:10:09 PM
Current code is below: |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| INSERT INTO FORUM_ALLOWED_MEMBERS ( Member_ID, Forum_ID ) SELECT FORUM_MEMBERS.Member_ID, FORUM_FORUM.Forum_ID FROM FORUM_MEMBERS INNER JOIN F...more >>

Problem aggregating distinct datetime
Posted by Steven at 3/27/2005 3:09:03 PM
I have a table (for demonstation purposes) that has 2 columns: date and amount. I want to sum up the amount for each date without the time (so just for each day). I am having a problem where the converted dates are all identical, yet it shows each row individually. The following SQL demon...more >>



Use of NULL
Posted by Paul Pedersen at 3/27/2005 1:40:29 PM
I have read different advice concerning nulls and missing data. Most books I've read recommend creating all columns as NOT NULL unless there's a specific reason to allow nulls, and they say that that should be quite rare. Consider a table containing personal information. Suppose that the "mid...more >>

Newbie Question
Posted by LacOniC at 3/27/2005 12:10:59 PM
Can i use >= and LIKE together in a SELECT...WHERE. SELECT * FROM X WHERE Y >= LIKE '1234%' ...more >>

DB Question
Posted by John at 3/27/2005 11:10:53 AM
Hey Everyone, I am taking over a system that uses triggers exclusively for all auditing entries. Here is a sample of the table structure: Accounts ========================= AccountId [Identity] [PK] AccountName ......... AccountHistory ============================ AccountHistId [I...more >>

Cache Problem - URGENT HELP !!!
Posted by Ahmed Jewahar at 3/27/2005 7:07:06 AM
Dear All, I have web application (ASP.NET) where I use SQL Server Std Server engine as backened. The issue that I have noticed whenever I ran "perfmon" the Total Pages and Cache Pages alway showss 100 which is topmost. My WEB application execute many SP that return data to client. In m...more >>

problem on alter table
Posted by joeau at 3/27/2005 1:55:02 AM
I would like to disable triggers of all tables. How can I do that? I can get the names of table and trigger from sysobjects. But how can I programmatically to replace the table name and trigger name from the ALTER TABLE command? ALTER TABLE table1 DISABLE TRIGGER trigger1 Thanks....more >>


DevelopmentNow Blog