Using 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 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 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 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 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 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 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 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