Viewing 15 posts - 106 through 120 (of 184 total)
Please restart your sql server and check if it works.
May 26, 2011 at 4:45 am
Select Name as IndexName,
STATS_DATE ( object_id , index_id ) as IndexCreatedDate
From sys.indexes
May 26, 2011 at 3:10 am
declare @a decimal(18,2)
set @a=18.40
if @a>round(@a,0)
Begin
if @a-round(@a,0)<=.25
Begin
select @a=round(@a,0)+.25
goto Value
end
else
Begin
--select round(@a,0)
select @a=round(@a,0)+.5
goto Value
end
end
Else
Begin
if round(@a,0)-@a=.25 or round(@a,0)-@a=.50
begin
goto Value
end
If round(@a,0)-@a>.25
Begin
set @a=round(@a,0)-.25
goto Value
end
else
begin
set @a=round(@a,0)
goto Value
End
end
value:
print...
May 24, 2011 at 2:44 am
Getting the same error when connecting through cmd prompt. This may be due to some other automatic connection is getting established before I connect to the server.
May 23, 2011 at 7:13 am
Login failure can be seen from sql server error log files.
May 19, 2011 at 6:55 am
Best practice will be your sql server service and agent accounts not to be the local administrative group.
May 18, 2011 at 2:37 am
You can use the below query to get the from date and to date.
declare @firstday varchar(20)
declare @quater int
DECLARE @curr_date DATETIME
DECLARE @Fromdate DATETIME
DECLARE @Todate DATETIME
SELECT @curr_date = GETDATE()
select @quater=DATEPART(qq,getdate())
if @quater=1
Begin
set @firstday='01/01/'+convert(varchar(10),DATEPART(YYYY,getdate()))
select...
May 10, 2011 at 7:14 am
what is the error you are getting?
May 5, 2011 at 3:43 am
Try connecting with . or your PCname to connect to default instances.
May 5, 2011 at 3:21 am
I suppose we can not run mutiple instances on same port.
May 4, 2011 at 5:50 am
You can get the information from syslogins table.
April 28, 2011 at 12:58 am
Viewing 15 posts - 106 through 120 (of 184 total)