Jump to content

Sql Server Backup/restore Q?


Recommended Posts

Posted

[quote name='Kaarthikeya' timestamp='1360252486' post='1303241331']
desi gaaalla? [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

permissions ninna iccham annaru kadaa? aina okasari test lo try cheste telistundi ga?
[/quote]
Thella naaa ko gadu

naku chala sarlu experince baaaaaaaa

nenu eee restor process antha maaa dantlo automatic ga job tho run chestharu
dani gurinchi thelusukundam ani aaa details yeeee SP lo vuntay ani adigithe avi neekenduku annadu
picha na dash gadu

  • Replies 106
  • Created
  • Last Reply

Top Posters In This Topic

  • deals2buy

    26

  • littlemoon

    23

  • 150bryant

    17

  • ChampakDas

    10

Posted

[quote name='gundugadu' timestamp='1360252688' post='1303241372']
Thella naaa ko gadu

naku chala sarlu experince baaaaaaaa

nenu eee restor process antha maaa dantlo automatic ga job tho run chestharu
dani gurinchi thelusukundam ani aaa details yeeee SP lo vuntay ani adigithe avi neekenduku annadu
picha na dash gadu
[/quote]
nuvve anni SPs kelikesthe pola okasari [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

Dev lo neeku acccess untundi kada atleast

Posted

nenu ee thread chusi office lo ne reply iddamante..office lo post padatledhu...
ok restore process automate nenu ma patha office lo chesina....create a SQL agent job...and job lo steps kinda vi follow avvu
1. copy backup file from source to destination server...for this use Xcopy script....google lo search cheyyi easy ga dorukuthadi....
2. Restore database ....stored proc create cheyyi edo oka database and put that proc in step 2 under that database
3. sync the logins using sp_change_users_login --- deeni script kuda easy ga dorukuthadi....

backupfile copy chesetappudu....first create an empty .bak file in destination.....
hope this helps....emaina question unte adugu.....previous company collegu ni adugutha script pampamani.....

Posted

and one more thing.....if you are not aware of this....2nd step o stored proc lo normal restore script....script lo first line lo....use the below statement.....sometimes....if the database is in use..restore process fails..

Alter database db_name set restricted_user with rollback immediate

Posted

http://superuser.com/questions/308277/is-there-anyway-to-xcopy-just-changed-or-new-files

http://technet.microsoft.com/en-us/library/cc771254(v=ws.10).aspx

check these blogs for backup file transfer.....and one more thing....there may be more than one backup file in source...but most of the time we need latest copy......for that we have a parameter /d ( not sure ) ....chudu okasari antha clear ga....

Posted

[quote name='Robinhood1676' timestamp='1360364928' post='1303249787']
nenu ee thread chusi office lo ne reply iddamante..office lo post padatledhu...
ok restore process automate nenu ma patha office lo chesina....create a SQL agent job...and job lo steps kinda vi follow avvu
1. copy backup file from source to destination server...for this use Xcopy script....google lo search cheyyi easy ga dorukuthadi....
2. Restore database ....stored proc create cheyyi edo oka database and put that proc in step 2 under that database
3. sync the logins using sp_change_users_login --- deeni script kuda easy ga dorukuthadi....

backupfile copy chesetappudu....first create an empty .bak file in destination.....
hope this helps....emaina question unte adugu.....previous company collegu ni adugutha script pampamani.....
[/quote]
[quote name='Robinhood1676' timestamp='1360365297' post='1303249827']
and one more thing.....if you are not aware of this....2nd step o stored proc lo normal restore script....script lo first line lo....use the below statement.....sometimes....if the database is in use..restore process fails..

Alter database db_name set restricted_user with rollback immediate
[/quote]
[quote name='Robinhood1676' timestamp='1360366038' post='1303249889']
[url="http://superuser.com/questions/308277/is-there-anyway-to-xcopy-just-changed-or-new-files"]http://superuser.com...ed-or-new-files[/url]

[url="http://technet.microsoft.com/en-us/library/cc771254(v=ws.10"]http://technet.micro...c771254(v=ws.10[/url]).aspx

check these blogs for backup file transfer.....and one more thing....there may be more than one backup file in source...but most of the time we need latest copy......for that we have a parameter /d ( not sure ) ....chudu okasari antha clear ga....
[/quote] *=: *=: *=: you rock you rock

Posted
nice thread[size=4] [/size][size=4][quote name='Robinhood1676' timestamp='1360366038' post='1303249889'][/size]
[url="http://superuser.com/questions/308277/is-there-anyway-to-xcopy-just-changed-or-new-files"]http://superuser.com...ed-or-new-files[/url]

[url="http://technet.microsoft.com/en-us/library/cc771254(v=ws.10"]http://technet.micro...c771254(v=ws.10[/url]).aspx

check these blogs for backup file transfer.....and one more thing....there may be more than one backup file in source...but most of the time we need latest copy......for that we have a parameter /d ( not sure ) ....chudu okasari antha clear ga....
[/quote]
Posted

[quote name='Robinhood1676' timestamp='1360366038' post='1303249889']
[url="http://superuser.com/questions/308277/is-there-anyway-to-xcopy-just-changed-or-new-files"]http://superuser.com...ed-or-new-files[/url]

[url="http://technet.microsoft.com/en-us/library/cc771254(v=ws.10"]http://technet.micro...c771254(v=ws.10[/url]).aspx

check these blogs for backup file transfer.....and one more thing....there may be more than one backup file in source...but most of the time we need latest copy......for that we have a parameter /d ( not sure ) ....chudu okasari antha clear ga....
[/quote] GP sHa_clap4[size=4] but nenu query rasesanu... na secenario new data server lo ki data restore cheydam where DB's kuda frsh ga create cheyali.... [/size][size=4]n restore chesaka orphaned users emaina unte a SID ni match aye laga cheyali [/size]

Posted

here is the query


[size=3]PRINT 'Restoring [ Database1] db at ' + CAST(GETDATE() AS VARCHAR) + '. Last @@ERROR=' + CAST(@@ERROR AS VARCHAR)[/size]
[size=3]GO[/size]
[size=3]RESTORE DATABASE [database1] [/size]
[size=3]FROM DISK=N'D:\Restore\database1_backup_2013_02_11.bak' [/size]
[size=3]WITH REPLACE [/size]
[size=3]GO[/size]

[size=3]PRINT 'Restoring [database2] db at ' + CAST(GETDATE() AS VARCHAR) + '. Last @@ERROR=' + CAST(@@ERROR AS VARCHAR)[/size]
[size=3]GO[/size]
[size=3]RESTORE DATABASE [database2] [/size]
[size=3]FROM DISK=N'D:\Restore\database2_backup_2013_02_11.bak' [/size]
[size=3]WITH REPLACE [/size]
[size=3]GO[/size]

[size=3]-- to check orphaned users run this sp [/size]
[size=3]EXEC sp_change_users_login @Action='Report'[/size]

oka vela emaina orphaned users unte.. drop the user and schema .. recreate cheyandi with exact permissions ..
[size=3]or run this query if it to a existing data server ... [/size]


[size=3]PRINT 'Repairing login-user mappings for [Database1] db at ' + CAST(GETDATE() AS VARCHAR) + '. Last @@ERROR=' + CAST(@@ERROR AS VARCHAR)[/size]
[size=3]USE [database1][/size]
[size=3]GO[/size]
[size=3]ALTER USER Orphaned user WITH LOGIN = 'Orphaned user'[/size]
[size=3]GO[/size]

Posted

Chinna Chandrudu _-_ *=: you rock Ammugif

Posted

[quote name='Kaarthikeya' timestamp='1360685257' post='1303265762']
Chinna Chandrudu _-_ *=: you rock Ammugif
[/quote]
S#d^[size=4] evariki aina help avthe challu ... [/size]

Posted

[quote name='littlemoon' timestamp='1360685459' post='1303265784']
S#d^[size=4] evariki aina help avthe challu ... [/size]
[/quote]
naaaku use avvochu future lo :D

Posted

evaraina ee below ques ki answers chepara

****1) ***Rule discovery searches for patterns and correlations in large data sets True/False?

*****2) ***Scalable technology is critical to a data mart True/False?

3)

****Which of the following data-mining techniques identifies clusters of observations with similar characteristics?
Answer
Case reasoning
Rule discovery
Clustering and signal processing
Neural nets


4)

****Which of the following data-mining techniques searches for patterns and correlations in large data sets?
Answer
Case reasoning
Rule discovery
Signal processing
Neural nets


5)

****OLAP tools that use the database as a traditional relational database are called:
Answer
ROLAP tools.
MOLAP tools.
slice and dice.
None of these.


6)

*****A class of database technology used to store textual and other unstructured data is called:
Answer
mySQL.
NoSQL.
KnowSQL.
PHP.


7)

****Data transformation is not an important part of the data reconciliation process.
Answer True
False

8)

*****Which of the following are key steps in a data quality program?
Answer
Conduct a data quality audit.
Apply TQM principles and practices.
Estimate return on investment.
All of these.


9)

*****Data quality problems can cascade when:
Answer
data are not deleted properly.
data are copied from legacy systems.
there is redundant data storage and inconsistent metadata.
there are data entry problems.

Posted

[quote name='littlemoon' timestamp='1360176958' post='1303236031']
sql 2005 to 2008 migration cheshtunamu now question is

oka database ni one server nunchi inko server ki migrate chesthunapudu... is it possible to write a query which picks up the backup file --copies onto new server -- and restores the data? auto restore laga GUI use cheyakunda..

also sercurity permissions and rules kuda migrate avali ante ela cheyadam ?

2 seprate queries laga rayala? emaina sample scripts unte pls share.. thankyou

ila konni links dorikayi but mari comples anpisthundi..
[url="http://www.mssqltips.com/sqlservertip/1243/auto-generate-sql-server-database-restore-scripts"]http://www.mssqltips...restore-scripts[/url]

[url="http://www.dbforums.com/microsoft-sql-server/1673431-how-make-sql-script-will-restore-backup-database.html"]http://www.dbforums....p-database.html[/url]
sSa_j@il[size=4] [/size]
[/quote]
1stly, please give me some videos regarding SQL Server 2008 thankyou

Posted

[quote name='Silence..Please' timestamp='1360694543' post='1303266970']
1stly, please give me some videos regarding SQL Server 2008 thankyou
[/quote]

1stly, please give me some videos regarding Oracle 11g thankyou

×
×
  • Create New...