Can I Pass Project Parameters In C# Script Task
I have a script task I'm executing in an SSIS package. If I use a User::Folder variable that is defined in the variables as a string value, the task runs fine. However, when I try to define the same...
View Articlexp_cmdshell with variable in CMD
is tehere a way to put a variable into xp_cmdshell? example: DECLARE @command varchar (600) DECLARE @Newfilename varchar (50) SET @Newfilename = (select TOP (1) [DDTNR]+'.cmd' AS 'DDTNR' from...
View Articlelocal variables not working
Hi, I have a script with the following: "UPDATE table SET column to update = ? WHERE condition = ?", text to insert, text to test condition Fot some reason SQL is not executing or even reading this...
View ArticleDynamic SQL and DECLARE TABLE Variable
Hi there, I'm sure it's something quite simple but can anyone explain why the following doesn't successfully run? The procedures code is: CREATE PROCEDURE Proc_Test @Name VARCHAR(1000) AS BEGIN DECLARE...
View ArticleVariable not Passing to Pivot Table in SQL
Hi I have a query that is basically selecting the next 40 years in the future from a list of people and dates and costs. The data is returned in column format however I need to PIVOT this data so that...
View Articleglobal variables
How to insert global variable @@version into a sql table? Here is the command i used insert into ( select @@version as server_version ) schema name - dbo --- EDIT: pulled these details up from the...
View ArticleIssues with setting parameters
I am trying to declare variable when excuting a stored procedure and add the , filenumber at runtime. The below code is not returning any records even though I know there are records that should...
View ArticleUnable to create procedure..too many arguments specified..HELP
I have been trying to create the procedure below but every time I get the following error: Server: Msg 8144, Level 16, State 4, Procedure sp_trace_create, Line 9 Procedure or function sp_trace_create...
View ArticleSSIS error while executing the package the variable mapping is not applied
Error: ForEach Variable Mapping number 1 to variable "User::Production_Area_long" cannot be applied. Error: The type of the value (DBNull) being assigned to variable "User::Production_Area_short"...
View ArticleFor loop container loop error please help me on this
The package is for getting data from sql server and loading into ms acces database which is already available in one folder and this package will run every day and it will create a file with present...
View ArticleDTS_E_OLEDBERROR in SSIS please help me on this
I am extracting data from multiple servers by using SSIS package but I am getting this error please help me for this [Source [269]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has...
View ArticlePlease help me its very urgent
I am extracting data from multiple servers but I am getting this error please help me for this [Source [269]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code:...
View ArticleSSIS Package
I need a step by step walk through on how i can create a stored procedure, add it to my package to fire off and create the table i want. I have the syntax for all the tables i need to create. My end...
View ArticleCopying a file to a new location adding the datetimestamp
I have created the variable. I keep getting an error with the below code trying to add the datetimestamp. @[Dest_Dir]+"\\snap3\share1\uploads\[SAP Report...
View ArticleUsing variables in a SQL Query (ALM) ?
I am trying to run a SQL Query in ALM12 like the following select count(*) from sample where name = 'sam' and date = '01/01/15' Is there any way i can assign the values (sam, 01/01/15) to variables and...
View ArticleDB2 UDB to SQL Server 2012 using SSIS
Hello: I am new to SSIS and I desperately need your help! I need to move 10,000 tables from a DB2 database (9.7.4) to SQL Server 2012 along with their indexes (if possible) as well as data. I have...
View ArticleUsing variables in Select,From,where clauses
I have captured table and column names from INFORMATION_SCHEMA.COLUMNS and .TABLES in a temporary table. I want to search these select columns in their respective tables for a specific int value. I...
View ArticleDeleting Specific Number of Records Per id
We have 67 id's each of which contain x number of emails. So id 1 may have 10000, id 2 may have 12,350... The client wants 12,500 per id final. Before we send to the program to remove the bad emails,...
View ArticleSSIS - Variable driven connection string
I wonder if anyone can help. I need to create a connection string that will get it's database and server details from a table. I have created variables, populated them, returned the details to check...
View ArticleError when EXEC is used with a temp table variable
This is a simplified version of what I am doing. I am building a sql statement using a loop, which creates code for a pivot table. When I run this with the select statement it runs fine, but when I use...
View Article