Viewing 15 posts - 16 through 30 (of 42 total)
Jeff Moden (6/25/2008)
June 25, 2008 at 7:01 am
Jeff Moden (6/25/2008)
June 25, 2008 at 5:58 am
Jeff Moden (6/25/2008)
I have the Developers Edition for 2005 which is supposedly the same as the Enterprise Edition... the Alt F1 trick doesn't work for me.
SQL2000 Query analyser - works
Microsoft...
June 25, 2008 at 5:21 am
billross (6/22/2008)
Is it a Primary Key?
What is the Data Type?
What is the default value?
I would also like to...
June 25, 2008 at 1:10 am
Kiran.. if you don't want to re-design your database, this query should work (I hope):
SELECT C.CustomerID,
C.Name,
P1.Phone as 'Mobile',
P2.Phone as 'LandLine',
P3.Phone as 'Fax or Other'
FROMCustomer C
LEFT OUTER JOIN ...
June 25, 2008 at 1:00 am
I find table variables are great for filtering out data usnig IN or joins. Queries which need to run against a base selection.. say filter to "n products".. I make...
June 25, 2008 at 12:41 am
What do you have the owner set as in your schedueld task?
e.g. A few of our jobs go a bit skew if we don't use a SA acct..
June 25, 2008 at 12:37 am
malar_jay (6/24/2008)
ALTER PROCEDURE [dbo].[tray_history]
(
@history as varchar(15),
June 25, 2008 at 12:30 am
J (6/23/2008)
'SELECT * from history_view WHERE ' Phone_Number like ''%' + (@history) + '%'''
This can only work if the select statement retrieves...
June 25, 2008 at 12:27 am
Goodguy, I know my code fails on one of those tests but I kept the date manipulation as per original logic. I don't know why but seems he is intentionally...
May 30, 2008 at 3:48 am
Hi, we do this all the time.. so I think you can steal my logic.. it's simple enough to not need a tally table?
SELECT COUNT(RESNO)
FROM RESERVATIONROOMS
WHERE RESROOM = ROOMNO...
May 28, 2008 at 2:22 am
When creating tables on the fly using INTO you have to specify column names. You'd think it'd be intelligent enough to know that max(RecordID) should be a col called RecordID...
May 20, 2008 at 5:57 am
george sibbald (5/19/2008)
b) I cannot get the select into to work - returrns error on execution (not parse) of - 'No column was specified for column 1 of 'd'.' (or...
May 20, 2008 at 12:14 am
Just my thoughts...
-- Get lowest ID's (whether dups exist or not)
SELECTMIN(RecordID) as 'RecordID'
INTO#KeptIDs
FROMAssociationLinks
GROUP BY
WorkspaceEntityId,SourceEntityId,TargetEntityId,Name,RecordStatus
-- Snapshot all cols for these ID's
SELECT*
INTO#KeptData
FROMAssociationLinks
WHERERecordID IN (SELECT RecordID FROM #KeptIDs)
-- Clear table
TRUNCATE TABLEAssociationLinks
-- Re-populate...
May 19, 2008 at 6:10 am
Viewing 15 posts - 16 through 30 (of 42 total)