Viewing 15 posts - 796 through 810 (of 2,171 total)
OP wrote there was no primary key.
Is there a clustered index present?
CREATE TABLE#Sample
(
Col1 VARCHAR(5),
Col2 INT,
Col3 CHAR(1)
)
INSERT#Sample
SELECT'ABC', 24, 'M' UNION ALL
SELECT'ABC', 24, 'M' UNION ALL
SELECT'DEF', 24, 'M' UNION ALL
SELECT'DEF', 24, 'F'...
August 6, 2008 at 7:21 am
Here is a lot to read for you.
Start at the bottom
http://blogs.msdn.com/craigfr/archive/tags/Joins/default.aspx
July 29, 2008 at 12:02 pm
You used double quote character for string data.
In SQL Server, that is one way to select a column name and of course you don't have a column named
[ and b.cust_fin_entity...
July 24, 2008 at 6:21 am
Which Edititon of SQL Server are you trying to install?
You also need at least service pack 3 to start SQL Server 2000 on XP.
So there may not be a real...
July 24, 2008 at 6:07 am
TOP 1 ???
According to what? You need a sort order to define TOP.
July 24, 2008 at 4:55 am
Also asked and answered here
July 24, 2008 at 4:53 am
You can also put the code in a tablevalued function, which accepts parameters.
July 23, 2008 at 12:03 pm
Something like this?
DECLARE @Sample INT
SET @Sample = 692238
SELECT STUFF(CONVERT(CHAR(8), DATEADD(SECOND, @Sample % 86400, '00:00:00'), 108), 1, 2, CAST(@Sample / 3600 AS VARCHAR(12)))
July 22, 2008 at 11:24 am
Google is your friend
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=67831
http://www.sqlservercentral.com/scripts/Miscellaneous/31751/%5B/url%5D
July 22, 2008 at 2:50 am
GETDATE() or GETUTCDATE()
July 22, 2008 at 2:49 am
You can make it somewhat shorter by using style 108 instead of 113.
select convert(char(8), getdate(), 112) + '_' +
replace(convert(char(8), getdate(), 108), ':', '-')
or
select replace(replace(replace(convert(char(19), getdate(), 120),...
July 22, 2008 at 2:48 am
Viewing 15 posts - 796 through 810 (of 2,171 total)