Viewing 15 posts - 1,426 through 1,440 (of 1,838 total)
I think there's a big caveat when using a model of deploying early and often. This approach can too easily lead to a culture where the early adopters of...
February 12, 2013 at 11:01 am
if you want to see the stats the database has collected over time for this stored proc, instead of just testing one time execution, you could use the DMVs:
SELECT
...
January 31, 2013 at 2:10 pm
I think part of the problem with SAN pools is the inherent disconnect between how network guys setup disk arrays and luns on these devices and how database people want...
January 2, 2013 at 10:35 am
Somewhere in my basement is a box that has old hard disks, going back to when they were only 2 gig in size. Only ones that I've ever let...
December 31, 2012 at 10:41 am
There's a script available from Microsoft to assist in generating a file that you can use to recreate the logins and same passwords on a different instance. I've used...
December 14, 2012 at 2:35 pm
Bhuvnesh (12/14/2012)
use this in every database
select 'truncate table ' + name + '; ' from sys.objects where type = 'U'
of course this will fail misserably on every table that...
December 14, 2012 at 7:40 am
I suppose the best way to decribe it is that a foreign key relationship requires a primary key or unique constraint on the referenced column in the referenced table, so...
December 12, 2012 at 3:32 pm
tanvishriya (12/12/2012)
ALTER TABLE [dbo].[ES]
ADD CONSTRAINT [IX_ESID] UNIQUE ( [ESID] )
GO
-- Creating foreign key on [EStId] in table 'ES'
ALTER TABLE [dbo].[ES] WITH...
December 12, 2012 at 1:58 pm
DataAnalyst011 (12/12/2012)
...In my production project, the values don't exist and I use the variables to print them into a row for a business process need...
OK, so if I'm understanding this...
December 12, 2012 at 12:36 pm
Actually Sean's code will give you the counts you're looking for, and in a more efficient manner than trying to get each one separately using the variable. If the...
December 12, 2012 at 11:30 am
The problem is that SQL Agent is the program you'd typically use to do monitoring and alerting. It sounds like what you really need is some kind of watchdog...
December 12, 2012 at 6:42 am
narendra.kongara (12/11/2012)
2>
3> SELECT t1.*
4> FROM department t1
5> ...
December 11, 2012 at 8:57 am
seems simple enough, your dates should be in the WHERE clause, not GROUP BY clause, like this:
SELECT sName, SUM(sinterventions) AS sinterventions, SUM(sareas) AS sareas
FROM mytable
WHERE DateValue...
December 10, 2012 at 10:22 am
no problem, you made it easy for people to help you by posting the script with the CREATE, and INSERT
December 10, 2012 at 8:43 am
if you don't want to group by dept, then the SUM needs to be outside the CASE structure, like this:
DECLARE @FYStartDate AS DATE
SET @FYStartDate = '2012-07-01'
SELECT PPDate, --Dept,
...
December 10, 2012 at 8:35 am
Viewing 15 posts - 1,426 through 1,440 (of 1,838 total)