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 > july 2007 > threads for sunday july 29

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

Case statment/if in Select
Posted by bb at 7/29/2007 10:17:58 PM
Hi, I need to display some columns if the rowcount is 25. In addition to those columns, I need to display some more columns if the row count is 100. The query is quite a big query using 8-9 tables. The programmer wrote one select statement for rowcount is 25 and another select statement ...more >>


Enumeration of SQL Server Instances
Posted by MSDN at 7/29/2007 8:30:43 PM
I'm running XP SP2 with SQL Server 2005 Standard, SP2 installed. I have a default and a named instance. I use SQLDataSourceEnumerator (the code that's in the MSDN example) in VS2005 Visual Basic running on the same machine SQL is running on. I get the named instance returned in the data t...more >>

SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Posted by thomas.hauser NO[at]SPAM indeserve.co.nz at 7/29/2007 8:29:29 PM
hi, I have a wired problem with my project connection to a sqlserver 2005 database locally. I recently got a new machine and I did move all the crap I had on it over to my new machine. (ja, i did move the database as well) suddenly i get the following message, while trying to connect to t...more >>

Working with dates
Posted by miked at 7/29/2007 2:06:03 PM
I have a list with dates for the last 50 years to current date. I'm trying to select all dates for last 10 years from todays date. Is there a way where I can search without having to enter todays date everytime I want to perform a search This is what I have so far: select NumberID, Dat...more >>

How to keep applications up to date in multi-user db
Posted by AliRezaGoogle at 7/29/2007 1:39:44 PM
Hi I have an application which is written in C#. It fetches data from a table inside my database and shows it to the user. As my database is multi-user, other users add, delete or update this underlying table. So every application on the clients should be aware of them. I want to have latest da...more >>

Ordering without the Order by clause.
Posted by shiju at 7/29/2007 9:15:46 AM
If I have a clustered index on ID. Will the select without an order by clause be ordered? What I really wanted to know is will the optimizer ever go for a table scan instead of clustered index scan and retrieve the pages as the physically organized rather then logical organization of CL leaf. ...more >>

Value of T-SQL OUTPUT parameter not set after Execution of stored proc
Posted by bostonguy NO[at]SPAM gmail.com at 7/29/2007 9:11:26 AM
I have a simple stored proc with one OUTPUT parameter of type INT. The proc just sets the OUTPUT parameter to a numeric value and nothing more. >From SQL Server Management Studio, I execute my proc with a local variable and then after I select the local variable to see if the value is set. ...more >>

Date Filtering
Posted by Wayne Taylor at 7/29/2007 7:46:04 AM
I have a datetime field I wish to return all of the data entered on that date, when I the following: SELECT * FROM MyTable WHERE DateEntered = '27/07/2007' but this doesn't seem to work. Where am I going round....more >>



Design dilemma
Posted by יוני גולדברג at 7/29/2007 5:06:00 AM
Question: I have some logical problem with tables design. I have an entity product , it has few properties. The properties "productCode" and "productVersion" are together unique identifier for some product (can't have two different products with the same "productCode" and "productVersion" co...more >>

HELP: SELECT different column based on variable
Posted by Stone Chen at 7/29/2007 3:56:30 AM
Hello there, I need some help on selecting different column based on the value of a variable. I have a language table with columns "en", "fr", "es", "ru", "jp", "zh", etc. so the 4 lines below DECLARE @male nvarchar(50) SELECT @male = es FROM persons..languages WHERE en = 'male' D...more >>

How to store Ongoing chess games in SQL
Posted by at 7/29/2007 2:37:35 AM
Hi all I'm building a JAVA application that lets users play asynchronous (a.k.a correspondence) chess games with each other. The basic use case is that a user logs in once a day, sees that 3 of her games are waiting for her to move, views the board as it was after the last opponent move, make...more >>


DevelopmentNow Blog