all groups > sql server programming > november 2006 > threads for saturday november 18
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
Missing records in database...
Posted by hurricane_number_one NO[at]SPAM yahoo.com at 11/18/2006 6:15:27 PM
One table in my database keeps dropping or never storing some records.
When I look at the auto-incrementing IDs there is a missing ID here and
there. There is nothing in my software that can delete a record from
this table so it must have never been stored to begin with, but it is
using up an I... more >>
Column default value = machinename
Posted by danthi at 11/18/2006 4:39:31 PM
I net to set the default value of a column to the name of the computer.
I know I can use @@servername but that also includes the instance name
which I don't want.
Is there a way to strip the instance name from the @@servername inside
the default column attribute?
... more >>
QUERY HELP NEEDED: datetime field losing format when I use select
Posted by jlewis at 11/18/2006 9:27:02 AM
I have a datetime1 field that shows the date and time.
As a means to adjust for daylight savings time, I put the datetime1 field in
a select case, as follows:
CASE WHEN DATETIME1 < '04/01/2007 12:00:00 AM' THEN DATEADD(HH, - 6,
DATETIME1) ELSE DATEADD(HH, - 5, DATETIME1) END
Problem: ... more >>
Splitting words out and searching for them
Posted by Tim Zych at 11/18/2006 8:59:02 AM
Can someone recommend an approach on how, given a VARCHAR string of words
separated by spaces, how a stored proc could search a column in a table for
all instances of the words?
For example given "unique array formula", the stored proc should parse out
and search for all instances of rows foun... more >>
How to select Top most row (rows) which the sum() is equal to N ?
Posted by krislioe NO[at]SPAM gmail.com at 11/18/2006 3:29:17 AM
Hi Sql gurus,
My stock availability is stored based on Product + ExpiredDate as key,
on ascending order, so I have data like this :
Product ExpiredDate Qty_Available
--------------------------------------------------------------
P001 01-dec-2006 10
P001 0... more >>
Query problem
Posted by Arjen at 11/18/2006 12:02:55 AM
Hi,
I have a table like this:
ID Name
1 Data
2 Test
2 Data
2 Pc
3 Data
Now I want to select all the ID's = 2 with an count on the other records.
Here is an example.
Name Total (ID = 2)
Test 1 (there is only one test)
Data 3 (there are three with data)
PC 1 (there is only one pc)
... more >>
|