Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

Getting "The 'SQLNCLI13.0' provider is not registered on the local machine."

$
0
0

Hi,

On my development server, we are using Microsoft SQL Server 2016 RTM and SSDT 2015. While making dynamic connection in the SSIS package, am getting below error "'SQLNCLI13.0' provider is not registered on the local machine.".

Can you please help me to get the solution.

Thanks

DKG



DB left blank in SSIS Connection manager

$
0
0
I would like to know if Database is not selected In Connection manager  for sql server (SSIS) and there is a Exec Sql task which contains a table creation in the script . Then on which DB the table is created.

SANTHOSH KUMAR

XMLTask and SQL Server query

$
0
0

Hi,

I would like to select data from a sql server database using a database connector, and map the results through XMLTASK using XSLT to a new XML structure .

How do I do that please?

I don't want to use FOR XML in the query path, as I do need to merge it with other data eventually.

Thanks for any help.

Gary

SSIS Package doesn't run but says completed successfully

$
0
0

Hi,

I created a new SSIS package that pulls data through a query (1.3M records) from PROD and then using a multicast to find the max_time from those records using a VB Script and an other connection from MultiCast loads the data into a DEV table. Currently, I run the package manually. When I execute the package, it says Execution Phase is beginning and the very next second it says complete.

If I close and reopen the package, all the Source / destination / transformations are gone. It looks like a empty data flow task. I have saved the package like 100 times now and the same happens. I have SA on all databases and admin privileges  on the remote server too. 

I am not able to understand what is going on actually. Any ideas are welcome.

Migration of SSIS2005 to SSIS 2012

$
0
0

Hello All

We are migrating SSIS packages from 2005 to 2012 Version. I read that I first need to migrate to 2008 version and than to 2012. So please let me know, if this understanding is wrong.

After converting to SSIS 2005, I am getting the following error:-

Warning 1 Could not resolve this reference. Could not locate the assembly "Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. scriptcomponent_5010082a86934a85a5c8d5bec8d27af9

Warning 2 Could not resolve this reference. Could not locate the assembly "Microsoft.SqlServer.DTSPipelineWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. scriptcomponent_5010082a86934a85a5c8d5bec8d27af9
Microsoft.SqlServer.Dts.Pipeline.Wrapper

I am also checking online at the moment.

any inpusts would be helpful.

cheers

Generate SSRS report (excel format) in SSIS -- excel file corrupted

$
0
0

Hello Experts,

I have an issue with exporting ssrs report to excel formated file using SSIS script task. Here is the steps.

1) SSRS report: I created an report which can be exported excel with multiple spreadsheets, all work perfectly if I manually export it.

2) SSIS: I created a SSIS package with script task using Web service process, the code is fromhttps://technet.microsoft.com/en-us/library/ff793463(v=sql.105).aspx

.........

//Set the export format

        format = Row.ReportFormat.ToString();

        //Execute the Report

        results = rs.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);

        //Save the file

        using (FileStream stream = File.Create(Row.OutputPath + @"\" + Row.ParamValue.ToString() + Row.Extension.ToString() ))

        {

            stream.Write(results, 0, results.Length);

        }

    }

All worked fine, excel file generated as expected. However, it couldn't open in excel and its size was ten times bigger than the excel file I manualy exported. I then tested use another report whcih only has a single spreadsheets,it works perfectly.

The problem seems because of multiple spreadsheets in the report. Any ideas why report generating in SSIS is different than manually exporting from SSRS?

Thank you!

 

Updating oracle table takes long time in Oracle(OLEDB) database in SSIS

$
0
0

I'm trying to update some records in Oracle database using SSIS oledb command. But it is being running for very long time. Almost I'am waiting for 4 to 5 hrs. It is still running.

Please help me.

Note: It's product database hence i couldn't allowed to create staging table in oracle db to perform set based operation.

Help to read the files from a specific web address

$
0
0

Hi Experts,

I want to know if by any changes is the below possible using SSIS. You can give reference link to the solution.

1. I want to read all the data files from http://www.ussc.gov/research/datafiles/commission-datafiles

2. They are in ZIP format in want to unzip them and then there is a .dat file inside the zip file which i need to read and store the data in SQL Server.


SSIS -->Multiple clients-->Environment variables-->SQL Agent--> Unable to set for multiple clients

$
0
0

hello gurus, 

I have a situation where i deploy 1 version of SSIS package in (dev,qa,stage,prod) servers. But i have to run the ssis package for more than 5 clients. each client has different database source connections/servers to pull data from.

I tried to create a environment variable for the ssis package by five different conn strings one for each client. i opened the ssis package and set the references to pick the parameter from the created environment variable for Client A by default.

Client A - JOB

i scheduled ssis package inside the SQL Agent jobs, and assigned the environment variable, i could successfully set for client A which works good

Client B - Job

But problem happens when i create a second sql agent job to schedule the ssis package. i go inside to set the client B, but there are no option for me to choose the environment variable now. it automatically got assigned CLIENT A conn string environment variable. there is no drop down, or multiple values to pick for CLIENT B or client c etc

Can someone help me ? is there any other way to create environment variable and use the SQL jobs?

PS: I dont find a separate forum thread for SQL server Agents, so i narrowed down to this SSIS forum. If the moderator feels, this forum is not the right one, please feel free to move my thread.

Thanks.


Regards, KarthikShanth. "Mark as Answer" if this helps you! <p style=""><a target="_blank" href="http://feeds.feedburner.com/~r/karthikshanth/~6/1"><img src="http://feeds.feedburner.com/karthikshanth.1.gif" alt="Shanth's techwitz" style="border:0"></a></p> <p style=""><a href="http://feedburner.google.com/fb/a/headlineanimator/install?id=91i2ausjr5mqq9fu4im39uvnvo&w=1" target="_blank">↑ Grab this Headline Animator</a></p> Disclaimer: The contents, I write here are my personal views, not the view of my employer and anyone else.

Ftp locking over period of time

$
0
0

Hello Experts,

I have a FTP and i am loading files(through Sql jobs) from LOCAL(Remote) to FTP and some time the process is being failed by returning error code 1 and then i log manually and enter ftp address @ windows explorer and if i re-run the job,it is getting success without an issue. and those are intermittent

here the point the ftp is being locked over period of time .

Can any one suggest me how to avoid those kind of locking, i even tried to map that to local drive but no luck .

Thanks,

Dileep Reddy


ADKR

SSIS Lookup in Oracle data type mismatch

$
0
0

Hello

I have a SSIS package that I want to use a lookup to see if records match between two columns, however when I try to link the columns in the Lookup I get the error;

Cannot map the input column, 'SP_LOC_ID', to the lookup column, 'SP_LOC_ID', because the data types do not match.

The two columns I trying to match are SP_LOC_ID and SP_TILL_Date.

SP_LOC_ID is a number.

SP_TILL_DATE is a date.

An example of the data is

SP_LOC_ID = 2010

SP_TILL_DATE = 11-NOV-2016

This is my query in my lookup.

Select SP_LOC_ID, SP_TILL_DATE
From SITE_PETTYCASH
Where SP_CYBERTILL_POPULATED = 'Y'
and (SP_DATA_VERIFIED <> '' or SP_DATA_VERIFIED is Not NULL)
order by SP_TILL_DATE desc

Both sources are Oracle. In the same database.

Does any one have any suggestions I can try to get the columns to match?

Regards

SQLSearcher99

Getting latest file(s) from directory while checking for latest file already imported

$
0
0

Hi all

i am currently in the middle of an SSIS project which involves grabbing the latest files from a directory and processing them accordingly.  The process is as follows:

  • Any files that are imported into the database at the start of the day are logged into a table - detailing name of file and import date
  • SSIS package will then fire via a SQL Agent job which checks for new files every 30 minutes
  • Any new files that have a created date later than the latest import date in the import log table is then imported.
  • When files are imported, they stay where they are - they are not moved to an archive folder


My question is how do I get a list of files to import looking at the created dates of files in a specific directory?

I also need to get the name of the file(s) from the directory so I can import into the log table.

For info, the directory name will be stored in a package-scoped variable - as will the latest file import date for the date check.

Any questions, please let me know.

Thanks.



How to load .DAT file data into SQL server?

$
0
0

Hi,

 I have .DAT file. I have to load data from .DAT file into SQL server using SSIS. Please give me the solution.


Using SVCACCT: The SQL Job step did not generate any output. Process Exit Code 1 The step failed.

$
0
0

Hi,

I am really beginning to think SQL Server is buggy!   One minute my SQL job works, the next minute, it does not.    I have had the same job running for a few months now.  The SQL Job failed over the weekend due to a password change by the owner of the job. Ok, fine.   To get around that, we set up a Proxy Service account and added SA to the principals so that we could run the job.  Worked.   Now I go to run the job again and boom!  Does not work.  I did not change anything on the proxy account or the SQL job.  It only has two steps.  It is failing on Step 1 trying to exec a CMDEXEC command.  The command works find in a command window and again, the job has been working great for a few months.   

How can I get this fixed with the error it is throwing now?   I also have another job that is using this same proxy.  Is that not ok anymore?  It was fine for the last few months.

Please help!  

SSIS package running issue

$
0
0

Hi All,

As can be seen in the below image, even though package execution is completed successfully, row count transformation is still showing as running(as highlighted in red)


Below image is of another package. As can be seen in data flow task package is not showing as completed where as if i check the progress tab of package it is showing as completed and i can see the data in the destination table.

What could be the issue, Can any one help me?



UFT 12.54 says it cannot run the script because result folder has invalid characters such as /,

$
0
0
UFT 12.54  says it cannot run the script because result folder has invalid characters such as /,. Please help.

SSIS package fails to run from the SQL Server Agent since the package.dtsx file is updated

$
0
0

Hi,

I have the SSIS package runs fine until I get package updated today. The update is adding the task which export the Excel file to the csv file.   Not sure what caused.

Thanks for any help!

Daphne

SSIS Package to zip folders

$
0
0

Hi All,

I have a package that extracts images from my db and saves them in the file system in different folders (determined by user name.) i.e. the package creates folders called 'user name', and then saves the images associated with that user name into the appropriate folder.

The package design is per the below:

I wish to have the package zip the destination folders. how can I achieve this?

Please assist,

Many thanks

Regards

Zimiso

Using a variable for Excel Openrowset sheet range

$
0
0

Hello, Please I have excel files that I receive with different sheet names, and the record I want to use starts from a specific range like sheet1$A3:DH4

I was able to get the sheetname as a variable using scripttask, so my question is how can I dynamically populate this range value using the sheetname. Thanks

Dynamically create OLE DB Connection to sync data through SSIS

$
0
0

Hi,

As per my requirement in the org, we need to sync the data on one of the DB server. We have more than 30 DB servers across the country. In global (Centralized DB), we have a column for every row which has Local Server ID/Sequence No. Depending on the ID, we need to connect that server through SSIS and perform the INSERT/UPDATE/DELETE operation on that server.

Can you please share the way and code sample to complete the task.

Thanks

DKG

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>