all groups > sql server programming > september 2003 > threads for saturday september 13
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
Index defragmentation
Posted by joe at 9/13/2003 9:43:07 PM
Are there any other ways to defrag indexes and does DBCC
IndexDefrag do as good of job as DBCC DBReindex or
Dropping and Recreating the index?
Ways to defrag an index:
1) DBCC IndexDefrag
2) DBCC DBReindex
3) Drop/Create Index
Thanks... more >>
Trying to get last ten weeks sum of a table.
Posted by jack at 9/13/2003 9:13:25 PM
Hello,
I want to get the Date of the sunday for the last ten weeks.
Example:
09-07-03
08-31-03
08-24-03
08-17-03
08-10-03
08-03-03
07-27-03
07-20-03
07-13-03
07-06-03
Then I need to get the sum of a table for each week. I am new to sql. I
have tried a few things, but no luck.... more >>
Query Wont Accept WHERE Clause
Posted by Wayne Wengert at 9/13/2003 6:47:30 PM
I am trying to get a list of rows where certain fields are duplicated. The
following query works fine:
SELECT Names.NameID, Names.Addr1, Names.ZIP, Names.FirstName,
Names.LastName,
Names.City, Names.StateProv FROM Names JOIN (SELECT Addr1, ZIP FROM Names
GROUP BY Addr1, ZIP HAVING count(*) > ... more >>
Newbie JOIN questions
Posted by William B. at 9/13/2003 10:41:32 AM
I've been working with Oracle for years, so bear with me....
1) Can you just use standard SQL for inner joins, rather than using SQL
Server's "INNER JOIN" syntax?
example:
select t1.col, t2.col
from table1 t1, table2 t2
where t1.key = t2.key;
Is there any disadvantage to doing the abo... more >>
Trace flags
Posted by Abraham at 9/13/2003 10:05:29 AM
Hi
I issued command DBCC TRACEON (1200,1204,1205,1206)
When I checked DBCC TRACESTATUS(-1) the status is 1 for all these flags.
But surprisingly nothing is loging .Is there anything else to do ?
I used to do this earlier and it worked .The only difference here in SERVER
is this is a named insta... more >>
Temporal History Table
Posted by dave.google NO[at]SPAM aquariusinternet.com at 9/13/2003 9:45:18 AM
I'm running into the challenge of storing temporal history data for
all tables in my system, and am trying to formulate a strategy for
this. My requirements are 1) schema simplicity and flexibility; 2)
programmability. I am not overly concerned with performance since I'm
working with a small-ish... more >>
How To
Posted by Wayne Wengert at 9/13/2003 9:44:29 AM
We have a moderate sized table (25,000 rows) of contacts. We want to
eliminate duplicated entries in this table but we want the office staff to
be able to decide when the entries are really redundant. In some cases,
there could be two different people at the same address (e.g. school dorm)
so we... more >>
Getting a default from another table
Posted by Roger Sipson at 9/13/2003 8:41:31 AM
I have a table with some default values, one of which is a current YearTerm
indicator. I would like to be able to have another table use the default
table current YearTerm as the default value for the student's admit date.
YearTerm is not a small date, it is actually a char(5) of the form '20031... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|