Viewing 2 posts - 1 through 2 (of 2 total)
The Below SQL Command
------------
SELECT CONVERT (VARCHAR,GETDATE(),101) [Date]
Here GETDATE() is Date field of Table.
--
Out Put->mm/dd/yyyy
June 9, 2010 at 3:40 am
#1177873
Restore Data With New Name
==============
RESTORE DATABASE Business_Data_TSQL
FROM DISK='d:\Business_Data.bak'
WITH
MOVE 'Business_Data' TO 'D:\TSQL\Business_Data.mdf',
MOVE 'Business_Data_log' TO 'D:\TSQL\Business_Data_log.ldf'
June 9, 2010 at 3:33 am
#1177864