Viewing 15 posts - 166 through 180 (of 280 total)
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
May 23, 2012 at 9:46 am
Thanks both, I'll read the tally tables article and give both solutions a try.
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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....
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
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...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
May 21, 2012 at 6:25 am
Agreed, BOL will answer this for you.
However...
CREATE TABLE firstTable (uid INT, data VARCHAR(3) )
CREATE TABLE secondTable (uid INT, data VARCHAR(3) )
INSERT INTO firstTable VALUES...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
May 21, 2012 at 6:17 am
Viewing 15 posts - 166 through 180 (of 280 total)