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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|