Viewing 15 posts - 946 through 960 (of 1,554 total)
Yes? What about them?
Leap years is the reason to divide by 365.25 instead of 365...
As a sidenote, I can't take credit for the algorithm, I read it in some article...
August 31, 2005 at 2:34 am
Here's what I use when determining ages
-- 2003-03-11 / Kenneth Wilhelmsson
-- Determining current age notes.
-- To be able to determine current...
August 30, 2005 at 8:48 am
It is, though you have to move the third sum 'outside' by wrapping the amount1 and amount2 calculations in a derived table.
I think this is what you want..
August 30, 2005 at 8:08 am
The quick and dirty way - (if it's a very large table, watch so you don't interfere with others during the operation)
SELECT *
INTO db2.dbo.myNewTable
FROM db1.dbo.myTable
..will make a copy along with all...
August 30, 2005 at 7:14 am
No, that's not necessarily better. Though it's possible to do it like that, I wouldn't do so myself.
I suggest that you get hold of BOL (Books On Line) for SQL...
August 30, 2005 at 7:09 am
We need DDL scripts for the tables involved (at least the important parts), and scripts that inserts testdata that when we use the query you have, will produce the 'wrong'...
August 29, 2005 at 7:59 am
By design, when in 'dynamic memory mode', SQL Server will grab memory when it needs it up to a limit leaving 'enough for the o/s' (sry don't have the exact...
August 29, 2005 at 6:42 am
Once upon a time, long long ago, I managed to get SQL Mail to work.. sort of.. It was clunky at best, and a real pain to find all the...
August 29, 2005 at 6:31 am
If the method of generating new id's for the users is to just take the max(id) +1 from the prod table, then you have no choice but to close down...
August 26, 2005 at 8:21 am
The same fact still applies, wheter it be a script or using EM..
You cannot change (ie alter) a column that is type text to varchar. Frank's script does not change...
August 26, 2005 at 8:04 am
It's probably me, but it's one thing I don't get... (I can't figure out what 'draw' means)
In any case, the example will say you have a 1% sale... I don't...
August 26, 2005 at 7:52 am
Great
Perhaps you need to adjust the numbers so your max values will fit.
select substring(str(@m, 10, 4),1,8)
The 10 is max...
August 10, 2005 at 8:11 am
Here's the only way I can think of...
Convert the value to a string using STR with all decimals intact, then just snip off the last two digits with substring...
August 10, 2005 at 8:01 am
Here's an article worth reading Implementing Error Handling with Stored Procedures
Don't be scared by the amount of text, it's crucial that every Transact-SQL coder understands transaction handling fully.
Also,...
August 10, 2005 at 7:49 am
Hehe, well in your example you requested the value 'www.foo.com', so that's what you need to ask for.
You could provide the URL through a variable instead, I assume that you...
August 10, 2005 at 7:33 am
Viewing 15 posts - 946 through 960 (of 1,554 total)