Viewing 15 posts - 10,171 through 10,185 (of 18,923 total)
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
It's by design and for good reasons... search the articles on this forum for best practices + fully qualified object names + cached plans. You'll surely find the missing link in...
January 31, 2007 at 6:22 pm
Most of the time.
But you can have more than 1 plan per procedure / object / query. That's why as a long shot I proposed the recompile. A more drastic...
January 31, 2007 at 4:52 pm
Changing the sp recompiled it, or more to the point changed the current execution plan. So that threw out any possible bad plan out the window and more importantly out...
January 31, 2007 at 4:18 pm
Viewing 15 posts - 10,171 through 10,185 (of 18,923 total)