Viewing 15 posts - 30,721 through 30,735 (of 59,101 total)
You really need to find out what made the log file grow that big and fix it.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 10:35 pm
johnny1walker (3/15/2012)
i find script 😎Use test
GO
sp_rename 'PK1', 'PK2', 'OBJECT'
GO
Heh... well I'll be. Books Online has yet another documentation error. Under constraints, it specifically said that PK's needed to...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 10:33 pm
wiseman82 (3/15/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 9:37 pm
Charmer (3/15/2012)
here i have a parameter of variable @MaxLength where i pass the value like 2 or 3 or 4 and depends upon the need.
You give an example of "like...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 7:52 pm
Charmer (3/15/2012)
SQLKnowItAll (3/15/2012)
Can you create a tally table with these values (if maximum is 2000, I would create 3000 just in case)?
sorry friend,What is a tally table? i don't have...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 6:55 pm
rothj (3/15/2012)
Remember I said I'm still learning?Can someone show me how to do this without using the temp db (all in one statement)?
Actually, it's not always a good thing...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 6:46 pm
My recommendation would be to partition the larger tables using an ever-increasing constraint such as a transaction date. If you "align" the indexes with the partitions, the rebuilds will...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 6:43 pm
justforgroups2004 (3/15/2012)
Looking for a solution that would create columns out of rows.
Here's sample data:
-----------------------------------------
PeriodCustomerAmount
12/1/2011 12:00:00 AMJoe150
11/1/2011 12:00:00 AMJoe150
11/1/2011 12:00:00 AMDavid320
...
9/1/2011 12:00:00 AMSteve24
6/1/2011 12:00:00 AMBob45
8/1/2011 12:00:00 AMSteve60
...
-----------------------------------------
Would like output similar...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 6:18 pm
Teh only way is to drop the constraint and rebuild it. Obviously, that becomes a real problem if you have other tables referencing that one through FKs. It's...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 6:07 pm
That would certainly be nice.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 5:21 pm
My point is that you do need to kill the flys or the resulting swarm will result in posts like "Why is my database running so slow?" Besides, given...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 5:17 pm
GSquared (3/15/2012)
Jeff Moden (3/14/2012)
anthony.green (3/14/2012)
Jeff Moden (3/13/2012)
anthony.green (3/12/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 5:12 pm
paul.knibbs (3/15/2012)
opc.three (3/14/2012)
True, but you can guarantee you are the anyone 😀
How can you guarantee that? Once the database has been restored and you've set it single-user, you're then in...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 7:57 am
Create a backup job and give the users the privs to run the job.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 7:41 am
Tom Brown (3/15/2012)
A good week is when i get unexpected gifts: I did a little website work for my brother-in-law.
(though I may have hinted about the WPF book)
Heh... That...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2012 at 7:34 am
Viewing 15 posts - 30,721 through 30,735 (of 59,101 total)