Viewing 15 posts - 511 through 525 (of 921 total)
quote:
SELECT count(distinct( BINARY_CHECKSUM(*))) FROM TableNameThe above did run faster at 2:20 (Jonathan's method is 3:03) however, it comes up 145 records shorter....
November 13, 2003 at 1:12 pm
After creating them, you can use this on PKs:
CREATE UNIQUE CLUSTERED INDEX pk_Table ON Table(PKCol) WITH DROP_EXISTING, SORT_IN_TEMPDB
--Jonathan
November 13, 2003 at 12:54 pm
quote:
I guess there must be some data not in the datetime format in there so will have to pick through and find...
November 13, 2003 at 10:56 am
DECLARE @d nvarchar(20)
SET @d = '21/12/2003 15:22:15'
SELECT CONVERT(datetime,@d,103)
--Jonathan
November 13, 2003 at 10:43 am
Use a temporary table instead of a table variable.
--Jonathan
November 13, 2003 at 7:44 am
Perhaps something like this:
USE pubs
go
SELECT f.Title_Id, p.Pub_Name, f.Type, f.Advance
FROM Titles f JOIN Titles c ON f.Title_Id <> c.Title_id
AND (f.Type = c.Type OR f.Pub_Id =...
November 13, 2003 at 6:02 am
SELECT SD.Permnum AS SDPermnum, SD.Firstname, SD.Lastname,
SD.Grade, LC.Location2, LC.LocationDesc,
TD.TeacherID, TD.Firstname as TFirstname, TD.Lastname as TLastname
FROM Student_Data_Main SD
INNER JOIN tblLocation LC on SD.Schoolnum=LC.Location2
LEFT OUTER JOIN Teacher_Data_Main TD...
November 12, 2003 at 5:10 pm
With any application, the scalability curve's slope decreases as processors are added: going from two processors to four processors might increase performance by 50% and going from four processors to...
November 12, 2003 at 3:54 pm
quote:
Well for me - I'd like my end users to learn how to use a * rather than a % for starters...
November 12, 2003 at 2:03 pm
quote:
Thanks F...I wonder why the different syntax between LIKE and CONTAINS. I guess LIKE is older and may eventually be replaced...
November 12, 2003 at 1:58 pm
quote:
...btw, sorry to the original poster!I wasn't aware of the PARSENAME function.
Sounds really handy for such situations.
Frank
November 12, 2003 at 1:38 pm
I recommend against doing this. Instead use an association table between the table and its possible parameters. But, if you must, make the ID of the parameter table...
November 12, 2003 at 10:29 am
When converting directly from float to a string, you can only control the number of decimal places used with scientific notation if there are more than six digits. Cast...
November 12, 2003 at 9:49 am
My guess is that you were not always dropping the backup devices between trial runs.
--Jonathan
November 12, 2003 at 9:34 am
SELECT COUNT(*)
FROM
(SELECT DISTINCT *
FROM tablename) x
Ever heard of a primary key?
--Jonathan
November 12, 2003 at 9:28 am
Viewing 15 posts - 511 through 525 (of 921 total)