Viewing 9 posts - 1 through 9 (of 9 total)
Hi Chandu,
I think you have not paid any attention to my earlier reponse to you ( dated 01/06 on this topic...
January 20, 2003 at 10:08 am
1. Login to Query Analyzer as sa.
2. Change the DB name where you need to shrink the files.
3. Take a good backup of your DB and the transaction Log first....
January 6, 2003 at 8:58 am
On UNIX, you can execute a program in the background ( & at the end OR nohup ). This means the trigger ( xp_cmdshell ) gets a signal that the...
November 25, 2002 at 8:38 am
Thanks for your help. This is a round about procedure but I think this is the only to do in SQL Server. In Oracle, it is quite simple.
--Chandra
November 15, 2002 at 12:25 pm
If you do not care about the log data, do the steps in this order
1) "backup log" with truncate_only.
2) Then Shrink the log
An example below.
This will bring...
October 22, 2002 at 8:13 am
Thanks a lot for your help, Simon. It works in a Stored procedure but not in a trigger. So I created a new S.P with the INSERT and xp_cmdshell commands....
October 22, 2002 at 8:03 am
Dear Simon,
I have an After insert trigger on a table and I execute a JAVA class file as below.
-------------
select @my_cmd='D:\j2re\bin\java.exe -classpath "'+'D:\MSSQL7\JOBS\sub_key." gensubkey ' > D:\MSSQL\JOBS\sub_key\qry1.txt'
EXEC @key_result=master..xp_cmdshell @my_cmd
-------------
...
October 21, 2002 at 4:18 pm
Hi Prakash,
I have a different problem. I have a AFTER insert trigger on a table. In the trigger, I would
like to read...
October 21, 2002 at 3:03 pm
You can generate a serial OR sequence number in a SELECT statement using the IDENTITY function ( do not mistake it with the table property: INDENTITY although similar functionality ).
The...
October 10, 2002 at 12:40 pm
Viewing 9 posts - 1 through 9 (of 9 total)