• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

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