duttanup.blogspot.com
How to restart a server from MSSQL SERVER using xp_cmdshell ~ Anupam Dutta
http://duttanup.blogspot.com/2013/07/how-to-restart-server-from-mssql-server.html
Web and Desktop Application Developer). Sunday, July 7, 2013. How to restart a server from MSSQL SERVER using xp cmdshell. Posted by Anupam Dutta. Posted on Sunday, July 7, 2013 12:55 AM. Sometimes we need to restart a windows PC or server within or after an interval of time. We can do it easily using 'scheduled task' of windows. Here I‘ll discuss how to do this task from MS SQL SERVER. To do this we'll use a stored procedure ‘xp cmdshell’ and an ms-dos command ‘shutdown’. Subscribe to: Post Comments (At...
duttanup.blogspot.com
MSSQL Database Backup ~ Anupam Dutta
http://duttanup.blogspot.com/2013/06/mssql-database-backup.html
Web and Desktop Application Developer). Friday, June 14, 2013. Posted by Anupam Dutta. Posted on Friday, June 14, 2013 11:47 PM. Database backup is a very important thing if you don’t want to drop any of your valuable data that you are storing. Here, I’ll explain how to create MSSQL. Create a stored procedure from following script. Select @dbname = CONVERT(VARCHAR(10),GETDATE(),101) CONVERT(VARCHAR(8),GETDATE(),108). Select @dbname = replace(replace(@dbname,'/',' ),':',' ). TO DISK = @dbname.
duttanup.blogspot.com
SQL Cursor ~ Anupam Dutta
http://duttanup.blogspot.com/2013/04/sql-cursor.html
Web and Desktop Application Developer). Saturday, April 20, 2013. Posted by Anupam Dutta. Posted on Saturday, April 20, 2013 1:45 AM. Is very good at handling sets of data. For example, you can use a single UPDATE statement to update many rows of data. There are times when you want to loop through a series of rows a perform processing for each row. In this case you can use a cursor. The basic syntax of a cursor is:. Set @Qty = 0. DECLARE CurClosing CURSOR FOR. FETCH NEXT FROM CurClosing. Set @Qty = 0.
duttanup.blogspot.com
MS SQL Server Job ~ Anupam Dutta
http://duttanup.blogspot.com/2013/04/ms-sql-server-job.html
Web and Desktop Application Developer). Monday, April 22, 2013. MS SQL Server Job. Posted by Anupam Dutta. Posted on Monday, April 22, 2013 10:03 AM. Job is a collection of steps executed by the database engine by SQL ServerAgent. The job can perform many different functions within it that can save time and effort on the part of employees. Let us consider a procedure PrcDailyUpdateForecast which will be executing hourly. The Steps tab of this dialog brings up the following screen:. If you select a step a...