Viewing 15 posts - 376 through 390 (of 500 total)
I missed the last few posts as I was out for a long weekend.
It looks like you got it sorted ok though.
Keep referring to this site and we'll make a...
May 27, 2009 at 4:06 am
Over the Spring Bank Holiday (Whatever happned to calling it Whitsun) I'll be out on my bike, getting muddy - probably over at Cannock Chase - but possiby somewhere more...
May 22, 2009 at 4:21 am
Gianluca Sartori (5/22/2009)
May 22, 2009 at 1:50 am
I did some work on a dynamic pivot in a recent thread here http://www.sqlservercentral.com/Forums/Topic713483-338-1.aspx
I think you'd need to incorporate a tally table to get the missing years somehow
DECLARE @MINYR...
May 21, 2009 at 1:57 pm
Again a similar method could be employed. I'm guessing you're only interested in the most recent result.
DECLARE @RESULT varchar(4000);
select @RESULT = TOP(1) Message from dbo.sysjobhistory
where step_name = 'IndexOptimize'
AND...
May 21, 2009 at 1:31 pm
Hi and welcome to the forum.
Yes a cross-database union or join is possible, however you should include some kind of flag in the results so you know which DB it...
May 21, 2009 at 12:55 pm
Good! 😀
I nearly suggested the OUTER JOIN, but instead I ask questions to make you think.
If you realise if yourself, the knowledge sticks better.
😉
May 21, 2009 at 12:43 pm
Well what output is required if a person has no passport record, or no tax record. - Do you include them in the results - i.e. treat it the same...
May 21, 2009 at 9:39 am
In theory Simple recovery model means the transaction log should be truncated regularly - this doesn't always mean the disk space is freed up.
Try shrinking to the minimum...
May 21, 2009 at 9:22 am
Yes the indexes will be updated as you delete the data. The way SQL server stores data in 8K pages may mean that what remains of the index is...
May 21, 2009 at 7:20 am
An empty string check is simply STRING=''
A Null check is STRING is NULL
But to check for either you can use ISNULL(STRING,'')=''
From your description something along these lines may...
May 21, 2009 at 6:34 am
I agree the hardware can hide an awful lot of bad and inefficient code. For a small business - why hire an expensive DBA, you can get a dual processor...
May 21, 2009 at 6:18 am
I don't think its possible using the Job setup wizard, however in your command area you could tweak the code, and use xp_cmdshell to output the file - you'll need...
May 21, 2009 at 5:23 am
For DB sizes, there is a sysfiles table in every database, also sp_spaceused may help
To get free disk space, take a look at xp_cmdshell in Books Online, you may be...
May 21, 2009 at 4:25 am
Viewing 15 posts - 376 through 390 (of 500 total)