Viewing 15 posts - 166 through 180 (of 280 total)
Edit: Duplicate post removed, I blame my phone 🙂
May 24, 2012 at 5:41 am
Oh god, not another bunfight. My last post started a row between two MVPs.
The reason I haven't dreamt up anything properly evil is because my company isn't paying market rate...
May 24, 2012 at 5:41 am
Hear hear!
We're all guilty of asking idiotic questions from time to time but not to know the basic fundamentals of your job, then lying about it on CVs? Too...
May 24, 2012 at 5:06 am
Has DBCC SHRINKDATABASE been run since? Or any DELETEs from the database? Has the tx log shrunk? Various reasons for this, it's normal tbh.
It must be nice to...
May 23, 2012 at 10:28 am
Lynn - 4 seconds on my ageing kit - thanks very much!
Howard - was not knocking your effort (would be a bit rich considering my approach wasn't set based!) but...
May 23, 2012 at 10:17 am
Mike - I corrected the WITH to ;WITH and it ran beautifully - 28 seconds. Many thanks.
Lynn - trying yours now 🙂 The more practice I get with...
May 23, 2012 at 10:06 am
Howard
Here's the example code I ran:
CREATE TABLE numbers ( N INT)
DECLARE @loopCounter INT -- yes, I know 🙂
SET @loopCounter = 1
WHILE @loopCounter < 10001
BEGIN
INSERT INTO numbers...
May 23, 2012 at 10:02 am
Howard, your approach is good but populates the table with only the first database name returned by SELECT name FROM sys.databases. It produces all the rows, but they are...
May 23, 2012 at 9:46 am
Thanks both, I'll read the tally tables article and give both solutions a try.
May 23, 2012 at 9:30 am
Another approach would be bcp and export to a .csv file, then use the CDO functionality available in VBScript (put in a batch file envelope) to handle the e-mail.
I have...
May 23, 2012 at 9:21 am
The point-and-click method for doing this is to set up a Maintenance Plan in SQL Server Management Studio. Open the tree view under Management until you see Maintenance Plans....
May 23, 2012 at 3:26 am
I agree with the points in this editorial, there's a lot of resistance from some jaded IT staff about improving their processes and tools, in case they 'do themselves out...
May 23, 2012 at 3:20 am
If latency is an issue have you tried extending the timeout period of the mirroring setup? ALTER DATABASE <mydb> SET PARTNER TIMEOUT <int>. Max int value can be...
May 23, 2012 at 2:38 am
Good question, caught me out! As one of the other posters said, I was railroaded by BEGIN TRANSACTION - thought the entire batch would be rolled back - apparently...
May 23, 2012 at 2:32 am
Sorry for the delay in replying, I've just tested the command I posted and I get the same problem as you - the query hangs.
Should have mentioned I had to...
May 21, 2012 at 6:25 am
Viewing 15 posts - 166 through 180 (of 280 total)