Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

add getdate() at end of expression

$
0
0
Hello I m trying to achieve something like this without patindex[code="sql"]DECLARE @source_path nvarchar(1000)SET @source_path = 'hello_there_123.zip'PRINT @source_path--Expected Result is using getdate() add date before .zipSELECT @source_path = hello_there_123_08092016.zip[/code]Please help. Thanks.

Viewing all articles
Browse latest Browse all 3145

Trending Articles