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

Sql server Agent cant read any file from local

$
0
0

 Hi  I have A ssis package that reads reacords from local flat file and dump records into a table,

when i try to dump records from flatfile/csv etc to sql server (with agent account) it throws me An eooro statting that cant open data file

but if it is between sql to sql /oracle to sql it is working fine

 Fyi..this is newly insatlled server

 Thanks in advance


ADKR


Import CSV file with primary key duplicate issue

$
0
0

I need import a CSV file which contains some duplicate primary key data.

SSIS package stop when insert errors for duplicate primary key.

I need to continue to import to let SSIS ignore the duplicate.

Can you please help how to let SSIS ignore those duplicates?

Your help and information is great appreciated,

Regards,

Sourises,

SSIS Package and Credential Manager and SQL agent

$
0
0

Hi All.

I am able to get SSIS to work with credential manager, when I schedule the job using SQL agent, it fails if the user running the package is not logged on to the server. So if the job is just scheduled and no user logged on, it fails.

The connection is via a VPN.

Thanks in advance.


SSIS CSV FILE READING ISSUE

$
0
0

hi can u reply me for the below post

Actually iam using a FF connection manger to read the csv file .. with the row delimiter to {CR}{LF}.

Suddenly in looping through the files package got failed because it cant able to read the csv file 

Again i changed  the row delimiter to {LF} then it worked for the file which i faced issue with the {CR}{LF} delimiter.

Now i want to know why the package is failing for the row delimiter issue..

can any one help me on this.

Please share me what actually the difference between those




Sql Server Agent Error

$
0
0

I'm receiving this error when i'm trying to execute the SSIS package through scheduled job.

The connection type "SPCRED" specified for connection manager "SharePoint CredentialCopy" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connection type name.  End Error
 Code: 0xC0010018     Source:       Description: Error loading value "<DTS:ConnectionManager xmlns:DTS="www.microsoft.com/SqlServer/Dts">  <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>  <DTS:Property DTS:Name="ObjectName">SharePoint CredentialCopy</DTS:Property><DTS:Property DTS:Name="DTSID">{98E33299-F91D-487F" from node "DTS:ConnectionManager".  End Error
Could not load package "\Package" because of error 0xC0010014.  Description: One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.  

After doing research i found this link Microsoft Sql Server Samples. Sql Server version is 2008 R2 SP2 and SharePoint is 2013 On premise. I'm confused- what file  should I install to resolve this issue and on which server - server with Sql Server or server with Sharepoint?



Last 10 Charatacters Of FileName

$
0
0

I'm using SSIS 2008.

I have the following code in a script task and the script task is inside a ForEachLoop Container that place the filename into a variable called FileName

I need to basically get the last 10 characters of teh file name but my syntax below doesn't allow it. I get errors,

Error 1 The name 'Substring' does not exist in the current context 

Error 2 The name 'Right' does not exist in the current context 

Dts.Variables[

"TranDate"] = (Substring(Right(Dts.Variables["FileName"], 10)));

 

MessageBox.Show(Dts.Variables["TranDate"].Value.ToString());

Microsoft.SqlServer.Dts.Runtime, set the connection of a package to become a project connection

$
0
0

Does anybody know how to programmatically create a Project Connection, and then add a package to the Project where you Reference the Project Connection in the package?

I'm using EzAPI, but still, I need to use the ConnectionManager, ConnectionManagerItem and Items to do this.

Any ideas?

-h

Idiots Step by Step guide needed

$
0
0

I have been trying for ages to get a SSIS package to print a PDF report to the network server.

Creating the package in VS a simple script task

        Dim pdfFileName As String = "\\Server\Directory\Test.PDF"
        Dim PrintPDF As New ProcessStartInfo
        PrintPDF.UseShellExecute = True
        PrintPDF.Verb = "print"
        PrintPDF.WindowStyle = ProcessWindowStyle.Hidden
        PrintPDF.FileName = pdfFileName
        Process.Start(PrintPDF)

this works fine when running from vs. When I deploy it to the SQL server and execute it as a domain administrator, everything reports no errors .. but no print !

The domain administrator has access to the printer and directory where the PDF is located. I am a loss as what to do next with my limited experience. Looking in the SSIS Package history, it reports that the package was executes as the domain controller .. and all was successful .. but no print

Can anybody help, or give idiot instructions for a different way to achieve this.


Dont ask me .. i dont know


1071607685 error when import data fix but performance issue

$
0
0

I got 1071607685 error while insert a CSV file in to SQL server table.

I found the following link and follow the instruction to change DefaultBufferMaxRows from 10,000 to 1 and AccessMode OpenRowSet and it works SSIS insert all records.

I think that SSIS process one record by record, so I import 1.8 millions records from a few seconds to a few hours.

I would like to learn that to fix the issue without affect huge performance issue.

https://sqljgood.wordpress.com/2014/09/29/ssis-troubleshooting-error-1071607685/

Your information and help is great appreciated,

Regards,

Sourises,

Unzipping file from script task not working

$
0
0

Hi experts,
  I am unzipping the file. The file is gzip. I am using GZipStream with CompressionMode.Decompress

It is working means extracting the file but only top 10 lines only. If I extract manually with 7gip, the file is extracted full with the size 58MB. Using the code, it is extracting only 10KB or like that.

 It's not giving any error but just extracting only small portion of the file.

 How can I debug? What could be the issue? It is working well previously. I don't know what is the difference between old and new files. It's not generating any errors.

 If I manually unzip and zip again, the code working well.

 My code as below

 Dim DecompressedFile As String = NewZipFile.Substring(0, NewZipFile.Length - 3)
        Dim working(2048) As Byte
        Dim n As Integer = 1
        Using input As Stream = File.OpenRead(NewZipFile)
            Using decompressor As Stream = New Ionic.Zlib.GZipStream(input, CompressionMode.Decompress, True)

                Using output As Stream = File.Create(DecompressedFile)
                    Do
                        n = decompressor.Read(working, 0, working.Length)

                        If n > 0 Then
                            output.Write(working, 0, n)
                        End If
                    Loop While (n > 0)
                End Using
            End Using
        End Using

import XML database

$
0
0

I just wanted to know if SSIS can import XML database.

If it does, can you provide any link to follow how to import XML.

Thanks in advance,

Regards,

Sourises,

cant access shared drive(Share point files) while running from Sql jobs

$
0
0

Hi Experts,

I even tried with proxy account but no use but when i run manually its working fine

Thanks,

D


ADKR

Issue while installing "SQL Server Data Tools Preview in Visual Studio 2015".

$
0
0

I used in run SSIS packages in the environment having Windows 7 32 bit OS, SQL server 2014, visual studio 2013 and SSDT for 2013.

Now my machine is re-imaged to Windows 7 64 bit OS. So, I installed SQL server 2014, visual_studio_enterprise_2015_with_update_3_x86_x64_dvd_8923288.

Now when I try to install "SQL Server Data Tools Preview in Visual Studio 2015", after a while a message throws up saying "Setup is missing an installation prerequisite. Microsoft System CLR Types for SQL Server 2016 RC3. To continue, install Microsoft System CLR Types for SQL Server 2016 RC3 and then run the setup operation again. This package can be downloaded from the Microsoft's website." and it fails.

I tried installing "SQLSysClrTypes" file on the microsoft site saying "Microsoft® SQL Server® 2016 Feature Pack". Nothing worked.

I've been trying this since a day. I am stuck up right at this point. Any help is highly appreciated.

Thanks in advance.

ssis 2012 package

$
0
0

In sql server 2012, I want to take input from a user and load the data into a temp table. I then want to update several production tables with the data that has been supplied by the user.

Since this is my first time creating an SSIS, I have the following questions to ask you:

1. The user wants to be able to enter the data in a Word document. Is that possible? If not, should I ask them to load the data into an excel spreadsheet so it is easier to obtain the data?

2. To create the SSIS package, should I use the import wizard in sql server and save the package somehow? How would I save the package so that it can be executed again? If I do not use the import wizard, what do you suggest that I do?

Who you show me with pictures and/or explain to me, and/or point me to a link (url) that will tell me how to accomplish this goal?

Why does my package open in Visual Studio scrolled to a blank part of the screen?

$
0
0
Often when I open a package in Visual Studio (2008), it is scrolled far away from where the actual package contents are. I save them scrolled to where I want but next time I open them, they're scrolled back to the wrong place. Is there some invisible object there? If so, can I edit the source to get rid of it? What would I look for?

Nick Ryan MIS Programmer Analyst, ANZ Bank


Execute a SSIS from Excel macro

$
0
0

Hi...I need to execute a SSIS package built after an user press a button that is related to a macro....so the quesiton is basically if I there is some macro in VBA Excel to execute a SSIS package?

Thanks

Zek

SSIS Transactions issue

$
0
0

Hi Everyone,

This is regarding one of the issue in PROD environment.

We have recently implemented SSIS transactions in one of the SSIS package and is working in all the internal environments including PRE-PROD but when we have deployed this package in PROD environment and started executing, it is throwing the attached exception.

We are thinking that the attached exception is misleading us and suspect MSDTC settings is the root cause of the issue when we have debugged further. The SSIS package is started working when we have reverted the SSIS transactions settings (changed the Sequence container property from Required to Supported)

PROD MSDTC settings are matching with the internal environments including PRE-PROD.

Appreciate your help.



SSIS : find same customerkey in CUSTOMERS_TABLE and SALESFACT_TABLE to create PROSPECTS_TABLE

$
0
0

Hi everyone,

I have a CUSTOMER_TABLE (that includes people not buying anything) and a SALESFACT_TABLE. The common point is that the 2 tables have a CUSTOMER_KEY COLUMN (both in integer).

I want to create a PROSPECT_TABLE by :

1) reading the CUSTOMER_KEY of each row in the CUSTOMER_TABLE

2) searching for the same CUSTOMER_KEY in each row of the SALESFACT_TABLE

3) Everytime it matches, insert the CUSTOMER_TABLE row IN A REAL_CUSTOMER TABLE and the rest in a PROSPECT_TABLE

Any idea :)


Microsoft Connector Attunity 3.0 in SSDT

$
0
0

Hi Gurus,

I'm trying to install Microsoft Connector for Oracle by Attunity v 3.0. I cannot see any Oracle Source or Oracle Destination in SSDT. I also cannot find how to add it manually.

I am refering installation guide from URL below :

https://technet.microsoft.com/en-us/library/ee470675(v=sql.100).aspx

I am currently using SSDT for Visual Studio 2010 with SQL Server 2014.

Is there anyone can help me with this? Thanks.

SSIS looping folder of .xlsm files and loading data from each sheet pattern matching 'Med'.

$
0
0

Hi,

I followed the example shown here:

http://www.techbrothersit.com/2013/12/ssis-read-multiple-sheets-from-excel.html

The problem i found was that it loaded the first sheet but then threw errors.

[ADO NET Source [2]] Error: The data type of "ADO NET Source.Outputs[ADO NET Source Output].Columns[ColumnName]" does not match the data type "System.String" of the source column "ColumnName".

I don't understand this. The column i was passing was double float 8. It showed as this both in the input and output columns for the workbook i was trying to load. The destination table was also configured as float.

As it loaded once, why did it fail on the second sheet which has an identical layout just a differently named tab?

I can provide an example file upon request.

Are there any online examples with step by step instructions, preferably not techbrothersit, that i can follow through and recreate an example of loading multiple sheets from multiple workbooks in a folder using pattern matching (for the sheet names).

Any pointers gratefully received.

Thanks,

Q




QHarri

Viewing all 24688 articles
Browse latest View live


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