Viewing 15 posts - 1,396 through 1,410 (of 1,539 total)
In ur SSMS, Go to SQL Server Agent -> Jobs
right click jobs -> click Tasks -> Generate Scripts.
Once u've your scripts ready, run those on ur target DB after u've...
December 22, 2008 at 4:36 am
refer BOL
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/f82d6918-a5a7-4af8-868e-4247f5b00c52.htm
example-
backup database northwind to disk='d:\backupwind.bak' with copy_only
The only difference is it doesnot reset the LSN during its backup procedures; which means id u're taking an ad-hoc request of...
December 22, 2008 at 4:11 am
Thanks Prajapati for writing this code. I tested DDL triggers for the first time 😉
i'd to do few modifications for it to run in this line... ...
December 22, 2008 at 2:54 am
You can do as Gail suggested OR you can build a DLL with your encryption/decryption logic and add it to ur SQL Server as extended stored proc and use that...
December 22, 2008 at 12:48 am
You may want to look at this URL. contains code to delete files in a folder. you may want to do little twicking to delete certain files only.
http://www.sqlservercentral.com/articles/Administering/usingxp_cmdshell/1250/
December 21, 2008 at 11:55 pm
use xp_cmdshell to fire OS level commands.
xp_cmdshell 'del c:\testfile.txt'
make sure xp_cmdshell is enabled at Sql Server 2005 surface area configuration.
December 21, 2008 at 11:30 pm
Well i'm already addicted to this forum. hardly 3 weeks here and yet i've learnt so much!! There is no end of learnings here. One doesn't need to go anywhere...
December 21, 2008 at 10:45 pm
Thanks Jeffery for making it so clear.
The easiest method to implement is a SQL Agent job that runs every XX minutes/hours and checks for database creation. When found,...
December 21, 2008 at 9:03 pm
How about writing a simple backup statement at the end of database creation! the other point i mentioned in initial posts. I think that should do the needful for first...
December 21, 2008 at 6:20 pm
this should help you.
http://www.sql-server-performance.com/articles/dba/creating_backup_jobs_p1.aspx
Contains description of creating backup jobs through t-sql and ssms.
December 21, 2008 at 5:44 am
The sp sp_dba_DAC created without any issues and is giving desired results when fired from within the SSMS.
However i'm unable to fire it from using sqlcmd. Getting following error:
HResult 0xFFFFFFFF,...
December 21, 2008 at 5:31 am
i'm sure u're not physically going for db creation either. You can create your database from you location(provided the new location is on network and you've appropriate rights).
Taking a backup...
December 21, 2008 at 5:20 am
Use ALter database with Modify file option to move the tempdb database and do an instance restart.
FOllowing links would be helpful.
http://www.sqlservercentral.com/articles/Administration/63568/
http://support.microsoft.com/kb/187824
or in BOL
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/72bb62ee-9602-4f71-be51-c466c1670878.htm
December 21, 2008 at 5:04 am
Why would you want to backup a database within a trigger?
You can manually fire the backup statement after you create the database OR if you've a script to create a...
December 21, 2008 at 4:57 am
Thanks Manu. I'll try these options. And ya, the sql server is running all the time.
December 20, 2008 at 9:17 pm
Viewing 15 posts - 1,396 through 1,410 (of 1,539 total)