Viewing 15 posts - 2,176 through 2,190 (of 2,462 total)
jsb12
can you please tell me exactly , at what time full backup is taken and what time log backup
and also at what time you are planning to restore...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 16, 2010 at 11:05 pm
jsb12 (2/15/2010)[/b
The problem is that if the copy job that copies from other server fails, older backup might be applied.
Well i dont think it will restore wrong backup if copy...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 16, 2010 at 6:33 am
Goto properties of job >> general tab>> select owner = 'Sa' or the login you want to select
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 15, 2010 at 9:45 pm
Do one thing , open job ( right click and open) and set owner's_name = login which you are using for executing that Sp in mgmt studio , if it...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 15, 2010 at 5:10 am
If this happens, put a ID int identity column and set composite key on job_id and ID.
then you can go for Clus. Index
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 15, 2010 at 4:27 am
there are two things :
first since you have composite key , it means you can have clustered index on it
and second thing i guess , we can...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 12, 2010 at 7:00 am
RBarryYoung (2/9/2010)
You will need to set the source database to TRUSTWORTHY. Note that doing so has security implications.
HOw to set this setting ?
if i set this user with...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 12, 2010 at 6:37 am
DECLARE @sql varchar(max), @Database1 varchar(300)
set @Database1 = 'tempdb'
SET @sql='
USE '+@Database1+';
IF EXISTS (SELECT 1 FROM SYS.VIEWS WHERE NAME =''test_view'')
BEGIN
DROP VIEW test_view
PRINT ''VIEW EXISTS''
END'
PRINT @sql
--EXEC(@sql)
SET @sql=''
SET @sql='USE '+@Database1+'
;
CREATE VIEW test_view
AS
BEGIN
SELECT...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 12, 2010 at 6:21 am
this will give you all constraint in particular database.
select * from sys.objects where type_desc like '%_CONSTRAINT'
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 11, 2010 at 6:38 am
that is written in a historical stored proc and i have used the apporach u told me
but can i do it without using temptabl/table variable ?
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 11, 2010 at 3:44 am
Good catch , i also recovered the issue. but did u get any sign that this script contains
junk character before copying it to MS-word/notepad.
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 10, 2010 at 6:40 am
Msg 102, Level 15, State 1, Line 21
Incorrect syntax near '?'.
Msg 102, Level 15, State 1, Line 68
Incorrect syntax near '?'.
Msg 102, Level 15, State 1, Line 73
Incorrect syntax near...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 10, 2010 at 6:19 am
on simple note , i can tell u that whenver we create any clustered index on any table . the table will be moved to filegroup mentioned with that index...
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 10, 2010 at 3:20 am
I hope this will work for u
select + 'YEAR' + CAST (year(DATEADD(year,-1,getdate())) AS VARCHAR(20))
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 10, 2010 at 3:00 am
thanks . it worked for me 🙂
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
February 10, 2010 at 2:26 am
Viewing 15 posts - 2,176 through 2,190 (of 2,462 total)