Viewing 15 posts - 2,461 through 2,475 (of 3,008 total)
Don't forget the last step:
4) Fire Navision consultants who accidently deleted important business data from our database.
February 15, 2008 at 2:16 pm
DHeath (2/15/2008)
February 15, 2008 at 2:06 pm
I install SQLIO and run a suite of scripts to get an initial performance benchmark for all disks when I setup a new server.
I save the test output so that...
February 15, 2008 at 12:22 pm
I think the issue of how to store money is different than the issue of how to cast it properly for calculations.
If you are doing financial calculations that use built-in...
February 15, 2008 at 10:08 am
create table #RunningJobs
(
... column definitions ...
)
insert into #RunningJobs
exec msdb.dbo.sp_help_job @execution_status = 1
February 14, 2008 at 7:54 pm
Jeff Moden (2/12/2008)
February 12, 2008 at 10:59 pm
I don't think it's a stretch of the imagination to believe that a query that is a cross join (probably unnecessary, since you only need 7 rows) between system views...
February 12, 2008 at 6:06 pm
Matt Miller (2/12/2008)
Should you need a few million (or in my example, 1 million) at...
February 12, 2008 at 4:04 pm
If you load your date table with the function on this link, it has columns for quarters and many other date attributes built in.
Date Table Function F_TABLE_DATE:
February 12, 2008 at 3:59 pm
John Beggs (2/12/2008)
What boundary would you set for flexible coding...
February 12, 2008 at 2:02 pm
John Beggs (2/12/2008)
...As to the solution presented by Michael, far to inflexible and long for my tastes...
Perhaps, but but my solution involves no table access, so it should perform better.
February 12, 2008 at 1:46 pm
Ordering is only guaranteed within a SELECT with an ORDER BY clause.
Ordering during an INSERT may or may not happen the way you hope in any version of SQL Server.
February 12, 2008 at 12:26 pm
Why not do it in one statement, so that is will execute in a single transaction?
insert into MyTable
( something, somethingelse, ...)
select
a.something,
b.somethingelse,
...
from
MyTable a,
MyTable b,
...
where
a.criteria = ...and
b.criteria = ... and so on
February 12, 2008 at 12:17 pm
You also need to init the value of @textNumber
This will generate the number without a loop:
declare @textNumber varchar(7)
set@textNumber =
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)+
right(abs(checksum(newid())%9)+1,1)
select@textNumber
February 12, 2008 at 11:56 am
chris.compton (2/12/2008)
I've been programming for almost two decades, and the terminology I...
February 12, 2008 at 9:56 am
Viewing 15 posts - 2,461 through 2,475 (of 3,008 total)