How do I use values found in a ole db source to change variables.
For instance have a Database table provide the source and destination paths for a File System task moving files
Sandy Shin
How do I use values found in a ole db source to change variables.
For instance have a Database table provide the source and destination paths for a File System task moving files
Sandy Shin
Hi,
Getting the below Error while creating connection between SSIS ETL package and SQL Server.
"SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "connection" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed."
Can anyone help me on this!!
Much Appreciated!!
Hi,
When I try to execute the winscp process via SSIS it ends up with the the error Process code was "-1073741510" while the expected was "0".
Any idea why is that as I have checked all options on my end.
Thank You
Jibran Ishtiaq
I am processing a cube from SQL server Agent using SSIS analysis services processing task but I get below error:
connection can not be made. ensure server is running.
Any suggestion please
Hi Everyone
I am trying to move a package from one server to the other with the code below and it fails with error "could not find package BA4PEv1.7.9\DEV\PRT_INT_BA4PE v1.7.9\__btblInvoiceLines" even though the package exists!
dtutil /Quiet /COPY SQL;"BA4PEv1.7.9\DEV\PRT_INT_BA4PE v1.7.9\__btblInvoiceLines" /SQL "BA4PEv1.7.9\DEV\PRT_INT_BA4PE v1.7.9\__btblInvoiceLines" /SOURCESERVER localhost /DESTSERVER BRY
newbie
Hi
I currently have a list of stored procedures in a table that needs to be run via SSIS and placed into a staging table.
ID StoredProcedure IsEnabled
1 SprocA 1
2 SprocB 1
3 SprocC 1
4 SprocD 1
I was planning on running these through a ForEach loop using an ADO data set. The OLE DB Source will use an expression which will be populated by the stored procedure name at run-time.
"EXEC dbo."+ @[User::StoredProcedure]”
However I have found that some of the procedure will be parameter based and some not. I just wanted to check if it was possible to run all these procedures together in the same ForEach loop, and what I would have to do to the expression to handle both types of procedures.
I was thinking of adding a new field to the stored procedure table which will indicate if it is parameter based and then running two ForEach Loops, one for the procedures with parameters, and the other for the ones without.
ID ,StoredProcedure ,IsEnabled ,ParameterBased
1 ,SprocA ,1 ,1
2 ,SprocB ,1 ,1
3 ,SprocC ,1 ,0
4 ,SprocD ,1 ,0
Anyone have any ideas or better solutions on how I can achieve this?
Thanks in advance.
Hi,
I have trubel with my Excel Connection manager. I get error about "VS_ISBROKEN" and "A destination table name has not been provided".
The foreach Loop finds the folder and loops correctly and has DelayValid as True
I have one string variable.
Excel Connection Manager has
DelayValid is True
Expression
Connection String and Expression:
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + @[User::strExcelFile] + ";Extended Properties=\"" +"Excel 12.0 XML;HDR=YES\"; "
The data flow task has:
DelayValid True
Full Error code:
Error: 0xC0202042 at Data Flow Task, Excel Source [14]: A destination table name has not been provided.Thanks for any help.
Hi,
I want my sql table data in excel and the
excel file and the sheet name to be generated dynamically durung run time through ssis package .
Please help,
thanks
Ravi
Tyagi Ravi
Hi,
I have a package that contains an execute SQL task and a execute process task. I am trying to pass the single row result of an SQL query into the Arguments section of the execute process task using a variable from my EST -
Executable - C:\Program Files (x86)\Civica\Civica ProAuto Command Line Tool\ProAutoCmd.exe
Arguments - -s WWLSLAMSQL02 -r User::Variable1
Result set is set to - User::Variable1 (name = 0)
Variable is set to an object data type.
However, i can't get the variable to pass. Note the -r is used to run different jobs such as "Daily Load". If i use this name literally it runs the command line, but not with the variable.
Could it be to do with the scope my variable or do you think my argument is wrong?
Thanks
Hello,
i want to read an Excel file, wich has a date column. The Date can be 7/20/2011 or 4/5/2016 07:04:30
I need to put this date in an datetime column.
I have written an Expression for an derived column:
LEN(DateSource) < 11 ? RIGHT(DateSource,(LEN(DateSource) - FINDSTRING(DateSource,"/",2))) + "-" + LEFT(DateSource,FINDSTRING(DateSource,"/",1) - 1) + "-" + SUBSTRING(DateSource,FINDSTRING(DateSource,"/",1)+ 1,(FINDSTRING(DateSource,"/",2) - FINDSTRING(DateSource,"/",1) - 1)) + " 00:00:00" : SUBSTRING(DateSource,FINDSTRING(DateSource,"/",2) + 1,(FINDSTRING(DateSource," ",1) - FINDSTRING(DateSource,"/",2)) - 1) + "-" + LEFT(DateSource,FINDSTRING(DateSource,"/",1) - 1) + "-" + SUBSTRING(DateSource,FINDSTRING(DateSource,"/",1) + 1,(FINDSTRING(DateSource,"/",2) - FINDSTRING(DateSource,"/",1) - 1)) + " " + RIGHT(DateSource,(LEN(DateSource) - FINDSTRING(DateSource," ",1)))
The Problem is, that it allways mean: The length -6 is not valid for function "SUBSTRING", if the date has no time part. Why it always parse also the second part?
The Part, work if the Source has no time:
RIGHT(DateSource,(LEN(DateSource) - FINDSTRING(DateSource,"/",2))) + "-" + LEFT(DateSource,FINDSTRING(DateSource,"/",1) - 1) + "-" + SUBSTRING(DateSource,FINDSTRING(DateSource,"/",1) + 1,(FINDSTRING(DateSource,"/",2) - FINDSTRING(DateSource,"/",1) - 1)) + " 00:00:00"
This part work if the Source has time:
SUBSTRING(DateSource,FINDSTRING(DateSource,"/",2) + 1,(FINDSTRING(DateSource," ",1) - FINDSTRING(DateSource,"/",2)) - 1) + "-" + LEFT(DateSource,FINDSTRING(DateSource,"/",1) - 1) + "-"+ SUBSTRING(DateSource,FINDSTRING(DateSource,"/",1) + 1,(FINDSTRING(DateSource,"/",2) - FINDSTRING(DateSource,"/",1) - 1)) + " " + RIGHT(DateSource,(LEN(DateSource) - FINDSTRING(DateSource," ",1)))
Why i use so much substring? Because i dont know which Format the Souce came: M/D/YY and MM/D/YYYY and so on are also valid Dates from the source.
I use SSIS 2014
greetings
selcer
Ultimately I am running this item as an SQL job:
-SQL 2012 patched
-Visual Studio 2012 w/ Business Intelligence
-package is created in VS and then updated to the Package Deployment Model
-VS deploys the package to SQL, no parameters are given
Problem: The package seems to be running under the SQL Agent account (NT Authority.....) as per the logs showing failure . It works locally if in the package I set the connection to "localhost" but if I use the IP of the server is fails.
If I try and run it against a remote SQL server it fails stating the account is not from a trusted domain (again this points to credentials not being passed)
:
I ran this as a job using a proxy account and am still experiencing the same error.
I used my domain account which is equivalent to SA and was created on server installation.
I created credentials (there is a little lock symbol?) and then the Proxy accounts:
I have done this before in SQL 2008 without issue but this is a new server installation of 2012.
help?
I am facing following error, Can some one help me to solve this:
------------------------------Hi community,
I am using SSIS SharePoint adapter (http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652) to withdraw information from SharePoint to SQL Server database through SSIS.
Under SharePoint Connection Manager's property. There is a property expressions editor. When I click the dropdown list under "Property", I see there is a ConnectionString option. Do you guy know how to write the expression of this ConnectionString for SharePoint Connection Manager? The Connection Manager also need to deal with username and password in order to pullout data from SharePoint to SQL Server database.
There are a few hundreds answers to connect to a SharePoint list without username and password. I NEED to find a way to connect to SharePoint list WITH username and password.
Let me know how possible we could write a connection string that connects SharePoint with username and password. Thanks.
Sincerely,
Mel
I am trying to connact SAP BW from SSIS 2005 and running on Windows server 2008 r2. But i am getting an error saying that "
Any idea?
Hi,
I want my sql table data in excel and the
excel file and the sheet name to be generated dynamically durung run time through ssis package .
Please help,
thanks
Ravi
Tyagi Ravi
Hi All,
I am working with SSIS Package - Analysis Services processing Task.
Here I have configured Analysis Services Processing task to run the AS database(Here AS DB Name - PhoenixPolice) in my machine.
It was executed successfully. I have copied that DTSX package and configured in SQL Agent job. that is also executed successfully.
what issue I am facing is,
I have copied the same DTSX package in other server/machine and configured SQL job in that server/machine to run the AS database (HereAS DB Name - TosaPolice). job is getting fail by throwing error like "database does not exists in this server".
Please suggest me that weather I need to change any SSIS package properties or any other changes/options I need to do?
Thanks,
Supraja.
SUPRAJA'S
Hi,
In the OnError Event Handler, I want create a Script Task that will find if the SourceID (The unique identifier of the executable in the event handler that raised the event.) belongs to the current package. If so, I will call a Logging package to log the error in a table, send e-mail, etc..
However, if the SourceID does not belongs to the current package, it means that a called packaged generated the error and already handled it, so no logging is required.
Thanks in advance,
Tiago Rente.
PS: If possible, can you provide the solution in VB :-).
T.
hello,
Since several weeks, I 'm tried to solve this issue :
I export the security eventviewer with this command line :
wevtutil qe Security /c:20 > c:\evtdump.xml
I create xml task source on SSIS and try to generate XSD.
Until here, I have only warning because of the number of caracter on some data imported.
My really issue is SSIS find only 1 record on my file whereas I have 20.
If I open my file on IE I see only 1
If I open my file with an editor , I can see 20 lines.
If I use this command line to export eventviewer log :
wevtutil qe Security /c:20 /e:root > c:\evtdump.xml
I can see my 20 lines on IE but I can't generate XSD with SSIS because of several namespaces.
What I have to do to solve this problem ?
Thanks
Previously the staging data was getting lookup with full cache to find the Match and No Match for Insert and Update Operation.
Now the Lookup data holds around 1 Million records and Data Flow Task failed to execute .
Since with Full cache is using Memory Operation it gives the error.
Decided to load the data in Cache File and use in Lookup to do minimum changes but that too fails
The buffer Manager failed a memory allocation call for 1638000 bytes , but was unable to swap any buffer to remove memory pressure . 2290 buffer were considered and 2 were locked
tried to change the Setting for the data Flow task DefaultmaxBufferRow -500 and Defaultbuffersize value is as it is but it failed
Decide to divide the data into series and tried to load in cache file but cache file can be used once . please suggest
Hi
I am using SQL Server 2014 Developer edition ,I try to Import Excel file to Sql database it shows unexpected and un recoverable error. I search and change the config file and remove the .Net framework 4.0 runtime entry. I have Installed .Net Framework 4.0 and 4.5 also. My operating system is Windows 7 64 bit. Please help me to solve the problem. It not show for all the files. It show for only one file the size is about to 190 MB.
Thanks & Regards Manoj