Viewing 15 posts - 2,461 through 2,475 (of 3,011 total)
I would go with a check constraint on a column with unique constraint to make sure there can only be one row.
Add a instead of delete trigger to prevent deleting...
February 18, 2008 at 1:51 pm
Here are a couple of suggestions you could try.
Change the query in your fucntion to this. I think is is also logically better, because it prevents the possibility of...
February 18, 2008 at 1:26 pm
DHeath (2/15/2008)
Not sure if this is asking too much but are those scripts something you have available and willing to share or are they something that i would need...
February 15, 2008 at 11:06 pm
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
Viewing 15 posts - 2,461 through 2,475 (of 3,011 total)