Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

What methods can I use to pass a variable to a paramter in Execute SQL Task?

$
0
0

I want to be able to create tables where you enter the name of the schema and a table is created. I set up a task with Execute SQL Task. The only parameter to pass is'@Schema'. The idea is the user would enter the name to use for the schema and that would be entered into the SQL Create Table Query where the question mark is located.

Is the input through a command line or can a pop-up dialogue box be created asking for user input?

The Task and query are show below.

USE [Import]
GO

/****** Object:  Table [?].[tweetreach_daily]    Script Date: 1/9/2017 1:22:26 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [?].[tweetreach_daily](
 [client] [nvarchar](50) NULL,
 [job] [int] NULL,
 [comp] [int] NULL,
 [campaign] [nvarchar](50) NULL,
 [tracker] [int] NULL,
 [day] [nvarchar](50) NULL,
 [reach] [int] NULL,
 [exposure] [int] NULL,
 [activity] [int] NULL,
 [contributors] [int] NULL,
 [retweets] [int] NULL,
 [replies] [int] NULL,
 [normal] [int] NULL
) ON [PRIMARY]

GO


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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