Viewing 15 posts - 5,296 through 5,310 (of 6,676 total)
How about something like this:
Declare @exec_sql varchar(max);
Set @exec_sql = '';
Select @exec_sql = @exec_sql + 'Execute master..xp_logininfo @acctname = ''' + sp.[name] + ''', @option = ''members'';'
From sys.server_principals sp
...
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 22, 2009 at 3:29 pm
Yes - that is the idea. Glad I could help out.
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 22, 2009 at 1:11 pm
If you drop and recreate the destination table every time, then you also have to recreate the indexes and re-apply all security to the table. Then, what happens when...
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 22, 2009 at 12:33 pm
Once you connect to your VPN - your test server is no longer accessible.
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 22, 2009 at 10:51 am
You need to use a case expression, as in:
SELECT USER
,SUM(CASE WHEN (NOT (STATUS= '90R')) AND (NOT (STATUS= '99I')) THEN 1 ELSE 0 END)...
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 22, 2009 at 10:49 am
These are the steps I use for this type of process:
1) Disable all NC indexes on destination table
a) ALTER INDEX IndexName ON table DISABLE;
2) Truncate destination...
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 22, 2009 at 10:40 am
Okay, when you run this script - add a print statement to print the @stmt variable before trying to execute it. Let's see exactly what is being built 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 22, 2009 at 10:27 am
All that command does is reads the file details of the selected backup file and load that information into a temporary table. I would assume that the information is...
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 22, 2009 at 9:36 am
That is great - glad I could help and thanks for the feedback.
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 22, 2009 at 9:27 am
In Object Explorer - right click on the server name and select properties. Select the Memory page and post back what the min/max memory settings are.
Another question comes to...
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 22, 2009 at 9:14 am
I see - you are actually doing this in Access and I gave you SQL Server T-SQL syntax. At least you were able to see what was happening 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 11:24 pm
You would select all the records with a datetime greater than 4 days ago first, then filter based upon the time.
Something like:
SELECT {columns}
FROM yourTable
WHERE datecolumn >= dateadd(day,...
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 5:35 pm
This is really going to depend upon the server that you are linked to. If that server is SQL Server 2005 or 2008, you could use the following:
SELECT {columns}
...
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 5:03 pm
You can try rebuilding the indexes:
ALTER INDEX ALL ON yourtable REBUILD;
If that doesn't work, verify that you have a clustered index on the table. If you don't 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 4:19 pm
Reviewing this article http://support.microsoft.com/kb/828339 tells us that we may not see errors using CHECKDB for an intermittent hardware problem.
Since you are getting these on a regular basis - you are...
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 3:22 pm
Viewing 15 posts - 5,296 through 5,310 (of 6,676 total)