Viewing 15 posts - 2,401 through 2,415 (of 5,103 total)
I do agree with Jeff that for perromance sake you should use the newID but if you need ramdoness quality rand() is the way to go.
You and that article said:...
* Noel
March 13, 2006 at 8:52 am
Jeff,
I was just answering the question posted by Carl. He was looking into using "another" tally table.
In rergards to speed. I can tell you that it is going to be faster...
* Noel
March 13, 2006 at 8:09 am
when was the last time that you ran dbcc checkdb on that DB? were there any errors?
* Noel
March 10, 2006 at 5:36 pm
Make it a view and then modify view output as:
select v.Category, v.Balances, v.Balances/t.Total as [% of Total]
from
vwBalances v
cross join
(select sum(Balances) as Total from vwBalances) t
Cheers,
* Noel
March 10, 2006 at 5:34 pm
For some things, you don't need the tally table ![]()
SELECT SentenceID,
datalength(Left(' '+y.Sentence+' ', N)) - datalength(replace(Left(' '+y.Sentence+' ', N), ' ', ''))InSentenceNo,
SUBSTRING('...
* Noel
March 10, 2006 at 2:10 pm
have a look at the scope_identity() function
Cheers,
* Noel
March 10, 2006 at 12:48 pm
Just for completeness you can tune the MemToLeave area with the -g startup parameter
Cheers,
* Noel
March 10, 2006 at 12:45 pm
March 10, 2006 at 11:39 am
Well if you really want to try here you go:
if object_id('tempdb..#ipaddress') is not null
drop table #ipaddress
create table #ipaddress ( address varchar(80) null )
declare @cmd varchar(300)
select @cmd = 'ping -n 1...
* Noel
March 9, 2006 at 10:35 am
Just to make something clear:
if the type is always the sam SQL Server 2000 can handle 2100
And to be honest, if you need more than that there are probably bigger...
* Noel
March 1, 2006 at 12:44 pm
You need to repair consistency errors.
Try the NO DATA LOSS OPTIONS FIRST of the dbcc checkdb.
example:
dbcc checkdb ('DatabaseName', REPAIR_FAST)
if still reports errors then:
dbcc checkdb ('DatabaseName', REPAIR_REBUILD)
and hopefully you will...
* Noel
February 27, 2006 at 3:10 pm
OR
Select pothole_ky
, rate
, addr
, roadway
, intersection
, location
, comment
, state
, member
, emailAddr
, entry_time
From
pothole
Where
rate ...
* Noel
February 22, 2006 at 12:00 pm
http://support.microsoft.com/default.aspx?scid=kb;en-us;299410
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/distributed_query.asp
http://msdn.microsoft.com/library/en-us/adsi/adsi/distributed_query.asp?frame=true
Cheers,
* Noel
February 17, 2006 at 2:41 pm
Joe,
If you include the "DATE" in the grouping you always going to have the separation because a day can only belong to one and only one year ![]()
* Noel
January 10, 2006 at 1:31 pm
Viewing 15 posts - 2,401 through 2,415 (of 5,103 total)