Viewing 15 posts - 901 through 915 (of 1,156 total)
Rob,
If you do not want the current date range to exceed the current date then change the curEOM to
SET @CurEOM = GETDATE()
E.g. If you run this query on 1/3/2008...
January 3, 2008 at 1:28 pm
Gail,
We are using different methods but achieving the same goal. You are talking about using a UDF and I am using a simple declaration of variables to house the...
January 3, 2008 at 1:23 pm
Thanks Grant. I had no idea you could script multiple objects from Object Explorer details window. 😀
January 3, 2008 at 1:16 pm
forgive my ignornace but will that work through out the year where it will only grab the previous montn and the current month of data?
Thanks again
Rob
Yes.
If you look at...
January 3, 2008 at 1:11 pm
You should not use the month function becuase you will always run into anomalies that will break your code. Use the datetime fields as they are intended to be...
January 3, 2008 at 12:43 pm
Right Click the database --> tasks --> generate scripts --> you can choose to drop create any/all objects and set a bunch of options including drop existing and check for...
January 3, 2008 at 11:56 am
EXEC master..sp_MSForeachdb '
USE [?]
IF ''?'' <> ''master'' AND ''?'' <> ''model'' AND ''?'' <> ''msdb'' AND ''?'' <> ''tempdb''
BEGIN
SELECT ''?''
EXEC sp_Reindexing
END
'
January 3, 2008 at 11:51 am
Like this:
backup log [database] with truncate_only
go
DBCC SHRINKFILE (N'LogicalName' , 0, TRUNCATEONLY)
go
January 3, 2008 at 10:29 am
Use the Log file's logical name, not the path
January 3, 2008 at 10:25 am
What is the exact error message?
January 3, 2008 at 10:11 am
It sounds like a permissions issue. Try executing the procedure from a sysadmin account that has rights to that directory.
January 3, 2008 at 10:06 am
You cant create a column at run time and use it in the next case statement. You have to reference the below code or house the data in a...
January 3, 2008 at 9:49 am
Your SQL Server service account may not have permissions to the folder, where the backup was created. Try giving SQL Server service account permissions to the folder "c:/domains/something.com/wwwroot/"
January 3, 2008 at 9:37 am
Have you confirmed that you have the correct permissions to view the tables that are missing? Make sure that the login you are using, in ODBC, has the proper...
January 3, 2008 at 9:25 am
Viewing 15 posts - 901 through 915 (of 1,156 total)