Viewing 15 posts - 1 through 15 (of 16 total)
declare @month table(months varchar(30))
declare @date1 datetime
declare @date2 datetime
set @date1='10/1/2011'
set @date2='9/1/2010'
declare @year1 int
declare @year2 int
set @year1= year(@date1)
set @year2= year(@date2)
declare @month1 int
declare @month2 int
set @month1=month(@date1)
set @month2=month(@date2)
declare @count int
declare @monthname datetime
if (@year1<>@year2)
begin...
January 29, 2009 at 2:10 pm
Not Sure what you mean..but I hope this helps
Once you have added other Servers to Server A as linked server. you can use the four part name to reference any...
October 17, 2008 at 2:28 pm
Sometimes the servername does not show up in the list...not sure why... but when you type the name of the Server manually and then add it, it does connect and...
October 17, 2008 at 2:16 pm
Hi,
There is also a software called DotDefender which can be used as well
October 17, 2008 at 2:04 pm
Hi Also make sure that the guest user is assigned restrictive permissions. Explicitly denying permissions on the system tables can help reduce some impact. I have faced the SQL Injection...
October 17, 2008 at 1:52 pm
Did u check the account under which the SQLServerAgent is trying to run?
October 17, 2008 at 1:29 pm
There might be a better way of writing this query... But you can use this one and maybe modify this further..
declare @dbname table (dbid int,db varchar(300))
--the insert statement inserts...
October 9, 2008 at 9:03 am
I understand your question is to find the database and log files.
You can try this:
use [database_name]
select * from sys.database_files
October 9, 2008 at 7:39 am
hi,
this was the kb article i referred to when i encountered the problem :
September 30, 2008 at 7:05 pm
Hi,
Have you registered a sql server 2000 instance in sql server 2005 and are trying to edit the properties of that instance. I have encountered a similar problem when...
September 30, 2008 at 7:04 pm
hi grasshopper,
I am still new to SQL 2005 but I try and help as much as i can. It was just an attempt to help you.. 🙂
July 18, 2008 at 2:36 pm
See if the below link helps..I have been using this extended stored procedure for a long time and it has been working great. It uses SMTP too..
July 10, 2008 at 12:45 pm
when you use datepart and dw as the argument, it returns the weekday as integer value. where
Sunday=1 and Saturday=7 as mentioned in BOL. I hope the below query helps.
Declare @mydate...
July 10, 2008 at 12:38 pm
Viewing 15 posts - 1 through 15 (of 16 total)