• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

SSIS Variable in Execute SQL Task to Drop SQL Server Login

Hi,

I have a requirement where I need to drop SQL Server Login using SSIS SQL Task and SSIS variables.

e.g.,

DROP LOGIN ?

while input parameter is setup against ? i.e., LoginName.

When I run the package it says there is a syntax error after '?'

Any comments and suggestions are appreciated.

Thanks.
0
ezkhan
Asked:
ezkhan
1 Solution
 
Alpesh PatelAssistant ConsultantCommented:
Use Expression to create dynamic query in SQL Task.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now