Viewing 15 posts - 5,311 through 5,325 (of 6,676 total)
David, I wouldn't think so either - but, it really depends on how large the stored procedures were. They are looking at 8000 procedures that were removed, which could...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 2:59 pm
moramoga (4/21/2009)
1. I deleted all software, hardware, material and travel records.
2. I inserted 1000$ for project TEST in...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 2:04 pm
You will need to use dynamic SQL:
Use Apr09;
Declare @bulk_cmd varchar(1000);
Set @bulk_cmd = 'BULK INSERT Ramses
FROM ''G:\Ramses Logs\''' + CONVERT(VARCHAR,GETDATE(),112) + '-Ramsesapp.csv''
WITH
(
FIELDTERMINATOR = ''',''',
ROWTERMINATOR = '''')'
Execute(@bulk_cmd);
Make sure you match up the...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:52 pm
It really is not clear what you are trying to do. Please review the article I link to in my signature and post some samples that we can work...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:45 pm
Also - you really should not be using the return value from a stored procedure for anything other than the status. I would recommend using an output parameter for...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:28 pm
What have you tried so far?
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:18 pm
David O (4/21/2009)
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:13 pm
Is this a stored procedure - and does the stored procedure use parameters? Do you create variables and use the variables in the queries for this procedure?
Just thinking this...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 1:10 pm
Right - I was not recommending shrinking the database. Only, if absolutely required - because you are never going to grow the datafile again, ever - then you can...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 12:59 pm
Cat (4/21/2009)
Windows XP on client machines comes with SQL Server ODBC Driver for 2000.
Soon clients will have to connect...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 12:40 pm
David O (4/21/2009)
go
DBCC SHRINKDATABASE('your_database_name_here', NOTRUNCATE)
go
DBCC SHRINKDATABASE('your_database_name_here', TRUNCATEONLY)
go
This command will shrink the database and should be run off hours. As always when making a change to adatabase have a...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 12:36 pm
Bob has outlined one of the ways you can approach this, however - that solution won't utilize any indexes on the date columns if they exist. If all you...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 11:23 am
The index rebuilds won't block on the table/index resource - they block on CPU resources. You'll start to see a lot of CXPACKET waits and they will increase a...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 11:07 am
Be aware that on SQL Server 2005 Standard, index rebuilds will only utilize a single processor. They will never use a parallel plan.
SQL Server 2005 Enterprise Edition can (and...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 10:34 am
I have to agree with Tim here - you are missing something from the application. Could be a monitor process, a scheduled job - or even a user that...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 21, 2009 at 10:12 am
Viewing 15 posts - 5,311 through 5,325 (of 6,676 total)