Click here to Skip to main content
15,889,216 members
Home / Discussions / Database
   

Database

 
AnswerRe: DateTime Conversion!!! [modified] Pin
Mike Dimmick8-Aug-06 2:48
Mike Dimmick8-Aug-06 2:48 
Questionrandom row Pin
md_refay7-Aug-06 19:31
md_refay7-Aug-06 19:31 
AnswerRe: random row Pin
_AK_7-Aug-06 19:54
_AK_7-Aug-06 19:54 
GeneralRe: random row Pin
Colin Angus Mackay7-Aug-06 22:05
Colin Angus Mackay7-Aug-06 22:05 
GeneralRe: random row Pin
_AK_7-Aug-06 22:22
_AK_7-Aug-06 22:22 
AnswerRe: random row Pin
albCode7-Aug-06 21:15
albCode7-Aug-06 21:15 
AnswerRe: random row Pin
Eric Dahlvang8-Aug-06 3:56
Eric Dahlvang8-Aug-06 3:56 
QuestionWhat would you solve the is scenario [modified] Pin
Skanless7-Aug-06 18:41
Skanless7-Aug-06 18:41 
Your website is getting so many hits and visitors are running so many queries Temp DB logs starts growing exponentially thus your sites starts slowing down and even crashing. What would be the most effecient way to quickly clear temp DB without restarting the servers. I wrote this script which worked but it took a while, but it helped. Would you use another method is this script the best its gonna get?

DBCC SHRINKFILE(‘YourDataBase_log’)

BACKUP LOG YourDataBase WITH TRUNCATE_ONLY


After that is done if the log files still have not shrunken then I do this:

SET NOCOUNT ON


CREATE TABLE dummy

(a VARCHAR(8000))



WHILE (0 < 1)

BEGIN

INSERT INTO dummy SELECT REPLICATE(‘a’, 8000)



DELETE FROM dummy

END



-- modified at 0:45 Tuesday 8th August, 2006

Greg

Coding makes the world go round!!!

AnswerRe: What would you solve the is scenario Pin
Frank Kerrigan8-Aug-06 2:43
Frank Kerrigan8-Aug-06 2:43 
QuestionUpdating a dataset from a datagrid Pin
TheJudeDude7-Aug-06 10:25
TheJudeDude7-Aug-06 10:25 
AnswerRe: Updating a dataset from a datagrid Pin
Frank Kerrigan8-Aug-06 1:10
Frank Kerrigan8-Aug-06 1:10 
GeneralRe: Updating a dataset from a datagrid Pin
TheJudeDude8-Aug-06 6:24
TheJudeDude8-Aug-06 6:24 
QuestionSQL Query Order of Execution Pin
Rajkamal_dfine7-Aug-06 3:36
Rajkamal_dfine7-Aug-06 3:36 
AnswerRe: SQL Query Order of Execution Pin
Colin Angus Mackay7-Aug-06 3:54
Colin Angus Mackay7-Aug-06 3:54 
AnswerRe: SQL Query Order of Execution Pin
Ennis Ray Lynch, Jr.7-Aug-06 10:08
Ennis Ray Lynch, Jr.7-Aug-06 10:08 
QuestionDiffucult T-SQL question: showing sales data that was not sold Pin
Izak -7-Aug-06 0:29
Izak -7-Aug-06 0:29 
AnswerRe: Diffucult T-SQL question: showing sales data that was not sold Pin
Eric Dahlvang7-Aug-06 3:41
Eric Dahlvang7-Aug-06 3:41 
GeneralRe: Diffucult T-SQL question: showing sales data that was not sold Pin
Izak -7-Aug-06 23:14
Izak -7-Aug-06 23:14 
GeneralRe: Diffucult T-SQL question: showing sales data that was not sold Pin
Eric Dahlvang8-Aug-06 3:09
Eric Dahlvang8-Aug-06 3:09 
QuestionMSDE Bootrappers Pin
JacquesDP6-Aug-06 23:46
JacquesDP6-Aug-06 23:46 
AnswerRe: MSDE Bootrappers Pin
Suresh Kumar.A13-Aug-06 1:36
Suresh Kumar.A13-Aug-06 1:36 
QuestionNHibernate? Pin
YOMATA6-Aug-06 22:34
YOMATA6-Aug-06 22:34 
QuestionTree View Menu in HTML Pin
skysunil6-Aug-06 20:59
skysunil6-Aug-06 20:59 
AnswerRe: Tree View Menu in HTML Pin
Colin Angus Mackay6-Aug-06 22:16
Colin Angus Mackay6-Aug-06 22:16 
QuestionSetup .ini in SQL server 200 Pin
pratap ankesh6-Aug-06 20:00
pratap ankesh6-Aug-06 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.