SSIS 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 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 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 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 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 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 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 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 ArticleCan 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 Article