Skip to content
Advertisement

Tag: sql-server-2008

SQL BACKUP and Restore Full backup

I have two full backups of different dates first full backup is of date lets suppose 21-05-2017 and I have restored that backup to client machine (RESTORE WITH NO RECOVERY) and now I got second full back on date : 26-05-2017 , now I want to restore that full backup on previous restored Full back on my client machine. Any

Using distinct with stuff/for xml path(”)

I’d like to put together only unique values in the concatenated string. My code is currently: This gives me the output I’d expect, but I would like to eliminate the duplicate values in the stuff/for xml path field. I’ve tried various combinations of distinct and group by in the stuff/xml section, but can’t piece it together properly. To clarify, for

CONVERT issue in sqlserver with Msg 529 error

This statement is giving me a error VALUE column Datatype is TEXT in the RESULTS table. How can i overcome the above problem. please help ! Answer You can’t convert from text to datetime You must apply two convert operations. The first: From text to varchar The second: From varchar to datetime So your query will become: Plus: text datatype

Advertisement