Viewing 15 posts - 12,871 through 12,885 (of 18,923 total)
HTH.
Make sure you keep this at one row/select or else you'll have a full blown cartesian plan
.
September 27, 2005 at 11:24 am
Make sure you disallow the updates after this is done... you don't want to wipe out a systable by accident
.
September 27, 2005 at 11:23 am
You might want to use minutes (or even ms if it's a datetime (not smalldatetime) for the order by instead of hours... if you want ot keep the true order...
September 27, 2005 at 11:22 am
How did you figure out my name really??? I don't have anything in my profile
.
September 27, 2005 at 10:01 am
How about this?
Select * from
(SELECT count (distinct dbo.Member.NRDS_ID) AS 'ACTIVE MEMBERS'
FROM dbo.Member INNER JOIN
dbo.Member_Association ON dbo.Member.Member_Number = dbo.Member_Association.Member_Number
WHERE (dbo.Member_Association.Status = 'A') AND (dbo.Member_Association.Member_Type_Code = 'R' OR
dbo.Member_Association.Member_Type_Code = 'RA') AND (dbo.Member_Association.Primary_Indicator...
September 27, 2005 at 9:55 am
Quoting myself >> "You can't do that in sql server unless you rebuild the whole table."
This is exactly what sqlserver does when you hit save.
September 27, 2005 at 9:02 am
DECLARE @Table table (Date smalldatetime not null primary key clustered, BD bit not null)
INSERT INTO @Table (Date, BD) VALUES ('1980-01-01', 1)
INSERT INTO @Table (Date, BD) VALUES ('1980-01-02', 1)
INSERT INTO @Table...
September 27, 2005 at 9:01 am
You can't do that in sql server unless you rebuild the whole table. Anyhow, column order should be chosen at the select... and actually the only time that it matters...
September 27, 2005 at 8:40 am
Now you can make that 97% as this is also wrong in my opinion... but I like the discussion that ensued
.
September 27, 2005 at 8:35 am
The only time I use this is for my flags table > FlagName, FlagValue. This works in my small environement and because this flags are checked by jobs to...
September 27, 2005 at 8:18 am
That can't be the query you are running as there's no syntaxe error in there. Please post the code that ERRORS OUT.
September 27, 2005 at 8:00 am
Looks like you must do this in a few steps >>
1 - Create the new column
2 - Transfer the data from the old to the new column.
3 - Drop te...
September 27, 2005 at 6:42 am
Why can't you use a SP?
Why not select * order by??
September 26, 2005 at 4:33 pm
Viewing 15 posts - 12,871 through 12,885 (of 18,923 total)