Quantcast
Viewing all articles
Browse latest Browse all 24688

Execute SQL Task issue

I have a SSIS execute SQL task that has the following query


Declare @Licence varchar(10)
Declare @ArchiveCreate nvarchar(1000)

Declare @ArchiveDB nvarchar(50)

SET @ArchiveDB = @Licence

SET @ArchiveCreate = 'Create DataBase '
 + @ArchiveDB
+' ON
( NAME = ' + @ArchiveDB +',
    FILENAME = ''C:\Temp\' + @ArchiveDB +'.mdf'',
    SIZE = 10,
    MAXSIZE = 50,
    FILEGROWTH = 5 )
'

Parameter Mapping

Variable Name User:Licence

Direction : Input

DataType : String

Parameter: 0

Parameter Size : 10

UserLicence = ARC_123456

When running that task it completes yet there is no database or mdf file in the Temp directory


Dont ask me .. i dont know


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>