Viewing 15 posts - 10,171 through 10,185 (of 18,926 total)
Yup, can't say I like table names with spaces (inherited one system with plenty of those).
Thanx for clearing this out for us.
February 1, 2007 at 7:09 pm
Ya thanx Sergiy, great little nugget of information on transactions in there.
February 1, 2007 at 7:08 pm
SELECT Name FROM dbo.SysObjects WHERE OBJECTPROPERTY(id, 'ExecIsStartup') = 1
February 1, 2007 at 2:55 pm
That works for me...
CREATE TABLE #Demo (a DECIMAL(7, 4))
INSERT INTO #Demo (a) VALUES (11)
SELECT a FROM #Demo
--11.0000
ALTER TABLE #Demo
ALTER COLUMN a DECIMAL(11, 6)
SELECT a FROM #Demo
--11.000000
DROP TABLE #Demo
Maybe you have...
February 1, 2007 at 2:22 pm
You can't do that. You need a date column. Timestamp, contrary to his name, has no association with date nor time.
February 1, 2007 at 11:41 am
The round seems to win constantly on my slow PC :
USE SSC
GO
DUMP TRAN SSC WITH NO_LOG
GO
CheckPoint
DECLARE @Start AS Datetime
DECLARE @BitBucket AS int
DECLARE @Counter integer
SET @Counter...
February 1, 2007 at 11:38 am
No clue which one is fastest. Make a test, run it and post the results then we'll talk about it
.
February 1, 2007 at 10:03 am
February 1, 2007 at 10:02 am
DECLARE @Mon AS Money
SET @Mon = 1.23
SELECT 1 WHERE @Mon = CONVERT(INT, @Mon)
SET @Mon = 2
SELECT 1 WHERE @Mon = CONVERT(INT, @Mon)
February 1, 2007 at 9:35 am
I'll let you work out the inner join but the pivot looks like this :
Select
col1,
col2,
case when fish = 'Jack' THEN CatchNumber ELSE NULL END,
case when fish...
January 31, 2007 at 8:29 pm
Thanx for the idea.. I'd never have thaught of that one (the price to pay for working with only 10 employees on the DB
.
January 31, 2007 at 8:15 pm
So the last 6 orders completely regardless of the date?
January 31, 2007 at 8:14 pm
Here's the link... easier to find if you have the right keywords to search for
.
http://www.sqlservercentral.com/columnists/bkelley/procedurecache.asp
The whole article is awesome but if you're...
January 31, 2007 at 7:46 pm
Speaking of better late than never. Congrats on the 3000th post.
January 31, 2007 at 7:41 pm
Viewing 15 posts - 10,171 through 10,185 (of 18,926 total)