Viewing 15 posts - 5,296 through 5,310 (of 6,678 total)
Select * From sys.server_principals Where type = 'R';
April 22, 2009 at 4:10 pm
This really comes down to how the where clause is formed. You have the following:
where delivery_date BETWEEN '04/15/2009' and '04/22/2009' and
...
April 22, 2009 at 4:05 pm
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
...
April 22, 2009 at 3:29 pm
Yes - that is the idea. Glad I could help out.
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...
April 22, 2009 at 12:33 pm
Once you connect to your VPN - your test server is no longer accessible.
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)...
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...
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...
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...
April 22, 2009 at 9:36 am
That is great - glad I could help and thanks for the feedback.
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...
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...
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,...
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}
...
April 21, 2009 at 5:03 pm
Viewing 15 posts - 5,296 through 5,310 (of 6,678 total)