Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Is there anny way

Author  Topic 

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 04:13:46
I want to check if a database has had changes since last backup

is there anny flag og timestamp that would indicate this ?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-11 : 04:19:50
Changes for what?
Table layout changes? Data changes?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 04:32:43
Anny change made to a database structure like table or data

I want to determine if a backup is needed if I already have one from a later data and no changes have been made

like on model DB not much happends there

I'am running 2005 enterprise btw
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-10-11 : 05:12:40
I guess you should look for tool called as DbCompare search on google and u will get some links.

Chirag

http://chirikworld.blogspot.com/
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 05:21:06
I want to know if a backup is needed or if my full backup from last week is still up to date

there must be somekidda SP or some other way to se if changes have been made ?
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-10-11 : 05:30:53
Why do you want to know this?

If the purpose is only for taking backup if there are some changes, you can go for Differential Backup.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 06:08:23
Yes I intend to use Differential Backup BUT I also want a weekly full backup

I dont want to take full backups if there has been no changes. I need this for my flow so that it can check for changes and from this determine if a new full backup is needed or not
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-11 : 06:12:23
Full backup is really useful to take once a week, at least.
I haven't done any restore for differential backup yet, but don't you need every backup since last full backup for this?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 06:22:32
how can you say full backup is usefull to take once a week if there has been no changes in that database

Like a database were I have only static tables its size is 150gb. I dont want to have 10 full backups in my flow wenn they all contain the same.

But this is really not what I'am asking...

All I want to know is if there is a way to se if a database has changed since last backup
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-11 : 06:27:40
Even if there are no changes in either table layouts and the data in the tables, there can still be changes to the server with new users, new data types, new jobs, new maintenance plans and so on...


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 06:38:29
Note taken

But I will still ask again....

is there a way to se if a database has changed since last backup ?

Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-10-11 : 07:59:57
No in-built tool to do this...Use some third party tool (as one suggested by Chirag)

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 08:17:24
Ok thanks
Go to Top of Page

bkpgamble
Starting Member

30 Posts

Posted - 2006-10-11 : 08:41:14
Can it be true that TRUNCATE TABLE cant be granted explicit to a user connecting to your DB

this this user run it thru a SP so the
CREATE PROCEDURE dbo.usp_TruncateMyTable
WITH EXECUTE AS SELF
AS TRUNCATE TABLE MyDB..MyTable;

is not an option

and I dont want to give it db_ddladmin, db_owner or sysadmin rights



I'am looking at granting this user specific rights to truncate

I look under DB premissions but dont know wich DB options should be enabled for it to run ?
Go to Top of Page
   

- Advertisement -