Tagged Questions

3
votes
3answers
57 views

variable date doesn’t work in cursor

Hello, First timer here. I'm having an issue when I use a date variable to set the 'between dates'. The query works when when I replace the variable w/ static dates. I get all r …
0
votes
2answers
27 views

Using Global Variables to Open a Database and Form

Hello, I have created a job which I pass two variables through as follows: DTSRUN /Sqh-sql2 /N"UnisoftVB" /AgvAccessDatabase :8="Y:\InformationCopy.mdb" /AgvAccessForm :8= "frmImp …
0
votes
1answer
23 views

Why can’t I set this expression to a variable in SSIS yet I can assign the value with a script task?

I have a variable called RouteCallerKeyDay and it takes a value such as '149421' which is calculated with the expression 148960 + DATEDIFF(dd, '2008-11-03 00:00:00', '2010-02-07 00 …
0
votes
3answers
85 views

using global variable userID

Hi, I am painfully new to SSRS and have an assignment to create a report that will render based on the userID; I have the report built and the stored procedure that brings in all …
2
votes
4answers
127 views

SSIS Variable tab

Hi I am having a unique problem. I am not able to open my variable tab in SSIS designer I have tried Right clicking and then selecting Variables and from SSIS menu but nothing work …
0
votes
1answer
167 views

SSIS - using variable to input into a column when loading flat file

I am using a flat file to read the data and load into SQL Server. How can I populate one of the fields on the table with a variable that is available in the package but not in the …
0
votes
4answers
391 views

Dynamic WHERE clause: How / Can I use a @variable in an IN predicate?

Can I do the following, and use an @variable in an IN predicate? DECLARE @Vendor varchar(1000), @VendorID varchar(1000) SET @Vendor = 'Smith' SET @VendorID = '' IF @Vendor = 'Sm …
1
vote
1answer
69 views

SSIS and Variables from SQL 2005 query

How can I (in SSIS) put into variables something from SQL table or query? Jack Woo