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

Populating OLEDB connectionstring with variable value

$
0
0

I've been having trouble with this for the last couple of days, i'm using a script task to read the registry values from the local machine so that when the ssis package goes from machine to machine or environment to environment it can read the local registry on the machine and populate the values as needed, which is what i want. But when I take the variable value and try to pass it to the connection manager as an expression value for the connectionstring value i get the error below.

The value in the registry that i'm grabbing is this (Provider=SQLOLEDB;Server=local;Database=Context;UId=sa;Password=blah;Trusted_Connection=no;Max Pool Size=200)

Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.

An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80040E14  Description: "Statement(s) could not be prepared.".
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80040E14  Description: "Invalid object name 'dbo.table'.".

Basically that is telling me that the connection could not be resolved, i have delay validation on everything in the package, so i know its not that. Am i missing something when it comes to passing the variable value correctly? Any help would be greatly appreciated :)



Execute package task fail

$
0
0

Hi all

I created a job for execute SSIS package using Execute package task (in file system). But after I run the job using BIDS I got error below.

Error 1 = Error: Error 0x80070020. Unable to access the package file, "D:\SSIS\U-Marketing\Packages\UMI_TOPS\CF_STG1_TOPS_SRC_UMI_REDEMPTIONOFFER.dtsx". Make sure the file exists and you have permission to access it.

Error2 = Error: Error 0x80070020 while loading package file "D:\SSIS\U-Marketing\Packages\UMI_TOPS\CF_STG1_TOPS_SRC_UMI_REDEMPTIONOFFER.dtsx". The process cannot access the file because it is being used by another process..

I search for this issue and try to following the step but still cannot fix the problem such verify permission of the specific path.

If you have any suggestion please help. Thank you in advance.

Convert .CSV file to Excel File

$
0
0

This may be simplistic but I can't seem to find a solution.

I have a package that currenltly exports to a .csv I would like to change it to export to an excel file instead of the .CSV but I have not been able to find a way to simply replace the flat file destination with an excel destination.

When I simply switch the destinations I get an error that says cannot convert from unicode to nonunicode and unicode. I tried changing the data type the advanced editor but that didn't seem to work I have added an additional data flow to convert the flat file to csv but the same error shows up.

I have tried creating a new table and using that but it still will not work.

I'm sure there is a simplistic answer I'mjust not sure what to do.

my sql server 2008 not starting

$
0
0

Every time when i install sql server after some time it show a error message automatically 

TITLE: Connect to Server
------------------------------

Cannot connect to ASHISH-PC.

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

XMLA Queries in Execute SQL Task

$
0
0

I have a very simple SSIS package with one connection and one Execute SQL Task.

The connection is a Native OLE DB\ for Analysis Services 9.0

The execute SQL task fires off this XMLA query created through the syncronize database wizard from MSAS2005.

All I want to do is dynmaicaly replace the Source on the connection String in this script to a local variable. I have tried the @variable and the ? syntax as I found some good info in BOL. However neither of these work.

I supposed I could use scripting to handle this but I didn't want to add that layer and feel that SSIS should be able to handle this.

Here is the raw script which works fine withing SSIS:

<Synchronize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Source>
    <ConnectionString>Provider=MSOLAP.3;Data Source=ServerName;ConnectTo=9.0;Integrated Security=SSPI;Initial Catalog=catalogname</ConnectionString>
    <Object>
      <DatabaseID>Recommended Pricing</DatabaseID>
    </Object>
  </Source>
  <Locations />
  <SynchronizeSecurity>CopyAll</SynchronizeSecurity>
  <ApplyCompression>true</ApplyCompression>
</Synchronize>

Here is what I want to execute (Which gives this error

failed with the following error: "The following system error occurred: No such host is known. .".

):

<Synchronize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Source>
    <ConnectionString>Provider=MSOLAP.3;Data Source=?;ConnectTo=9.0;Integrated Security=SSPI;Initial Catalog=catalogname</ConnectionString>
    <Object>
      <DatabaseID>Recommended Pricing</DatabaseID>
    </Object>
  </Source>
  <Locations />
  <SynchronizeSecurity>CopyAll</SynchronizeSecurity>
  <ApplyCompression>true</ApplyCompression>
</Synchronize>

DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager failed with error code 0xC0202009.

$
0
0

I am getting the following error. I have read the past similar posts but they all seem old. Is there a quick fix for this? Please help! I have worked on this for hours. Thanks! Mike

Error: 0xC020801C at Data Flow Task, OLE DB Destination [638]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "FRODO.BABid.sa" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error: 0xC0047017 at Data Flow Task, SSIS.Pipeline: component "OLE DB Destination" (638) failed validation and returned error code 0xC020801C.

Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.

Also I have set the package to run in 32 bit mode...thanks!

Please note this is with the Ole DB Destination and not Excel...


Mike Kiser



Modify SSIS package saved on server

$
0
0

   I have saved an SSIS pacakage on my sql server.  I am able to see and run the package through Integrations services.  My question is, is there a way to edit the package through Management studio?

 

Thanks

Jim

Use Package Config DB Connection string in Script Task

$
0
0

I tried way 1 below but connection returned was null.

So I got the ConnectionString as Way 2 below and tried to create new connection

Way 1:

connection = new SqlConnection(); connection = (SqlConnection)(Dts.Connections["Restrc_dbconn"].AcquireConnection(Dts.Transaction) as SqlConnection);

Way 2:

string connString = Dts.Connections["Restrc_dbconn"].ConnectionString;

connection = new SqlConnection(connString);

This gives me error saying "Keyword not supported :Provider"

The steps I tried above does not use Package Config. Can someone please help me how to use it. And i f I use Package Config, the connection string in that also would have Provider so how can we overcome the Provider keyword error.

Thanks In Advance!!




.sln file and editing a package

$
0
0

Hi,

I have a wierd problem with my work terminal. It gets restarted abruptly. I keep the saving my work in BIDS. However when the terminal restarts and I open the BIDS for the solution that I am working on- I see many packages which are developed missing from the solution explorer.

The packages are present at : C:\Users\duser\Documents\Visual Studio 2008\Projects\proj1\proj1  

The above is the location where all the dtsx files get stored. However when I try to paste the package from this location to the BIDS - it changes the name of the package as Pacakge 1.dtsx . It also changes the name of the package at location : C:\Users\duser\Documents\Visual Studio 2008\Projects\proj1\proj1   and generates a new GUID number. I do not want this to happen. I should be able to open the same package with the same guid number as it was previously stored at the location : C:\Users\duser\Documents\Visual Studio 2008\Projects\proj1\proj1 

If I were to edit the packages in BIDS how should I do that without having to paste it to the solution explorer ? Also I would want to see the entire list ( the missing packages in BIDS  when the terminal restarted ) ?

I did save all and as a result all packages are present on this location : C:\Users\duser\Documents\Visual Studio 2008\Projects\proj1\proj1  

but just don't know how to import them to see in BIDS without auto changing the name and guid

Also I tried looking for the .sln file and could not locate it . Where can I find the .sln file ?

Please advice.

Thanks,


EVA05

Send an email when ForEachLoop Fails

$
0
0

Hi Gurus,

At Present Im looping through Excels and loading into db. But I have a requirement that, lets say in future if a file comes with different excel format my pkg fails.

Lets say today I have 10 files in a sourcefolder and 10th file is in different(wrong) format, After looping through and moving 9 files to Processed folder my pkg failed at 10th file. so, Here, I need to send the user an email mentioning that the job has failed at this particular file.

Please help me with this.

How to run XMLA in SSIS that has a return result

$
0
0

Hi all i have a XMLA that has a XML return result

what i want to ddo is to run the XMLA , get the results and clean up the unwanted data, and save it into a sql table, i will have to do this in SSIS, without running and 3rd party component  or installing anything else

<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
<RestrictionList>
<ObjectExpansion>ObjectProperties</ObjectExpansion>
</RestrictionList>
</Restrictions>
<Properties>
<PropertyList>
<Format>Tabular</Format>
</PropertyList>
</Properties>
</Discover>


Sincerely Nik -- Please kindly mark the post(s) that answered your question and/or vote for the post(s).

comparing date information minus 2 days

$
0
0

I am trying to take discharge date and comparing it to encounter date -2.

I have tried a few ways, but none work.  Here is my latest attempt

and (v.EncounterDateTime >=I.dischargedatetime getdate())-2)

Cant execute container

$
0
0

Hi all

I have a package under MSDB on the PROD server and i exported it onto a location. The package has many containers and i right clicked on one container but was not able to find the "Execute Container" option. Is there something else i need to do? Please need help.

Thanks


SV

How can we fetch data from MS access web database published through access service in SSIS

$
0
0
we have published an MS access database on Sharepoint , how can we access the database tables through SSIS ?

Guneet Kalra

ssis runtime error "TXN_DATA_FEED/DP_TXN_MEASUREMENTS/TXN_MEASUREMENT/TXN_ERROR" has changed. Please re-initialize the metadata for this component and review column mappings.

$
0
0

I have an SSIS package that loads data from an xml file to sql server database. A new xml file is downloaded each time the package runs. I am using XMLSource to get my xml data. When I run the package from a SQL Server Agent Job, I get the following error

   Code: 0xC0209318     Source: Data Flow Task 1 XML Source 1 [1]     Description: The XML schema data type information for "code" on  element "TXN_DATA_FEED/DP_TXN_MEASUREMENTS/TXN_MEASUREMENT/TXN_ERROR" has changed.  Please re-initialize the metadata for this component and review column mappings.  End Error  Error: 2012-08-03 13:32:25.70     Code: 0xC004706B     Source: Data Flow Task 1 SSIS.Pipeline     Description: "component "XML Source 1" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".  End Error  Error: 2012-08-03 13:32:25.70     Code: 0xC004700C     Source: Data Flow Task 1 SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2012-08-03 13:32:25.70     Code: 0xC0024107     Source: Data Flow Task 1      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  1:32:14 PM  Finished: 1:32:25 PM  Elapsed:  11.5 seconds.  The package execution failed.  The step failed.

How do I reinitialize the metadata automatically within my package?


SSIS Data Flow Task Problem

$
0
0

Hi, there,

I am having some problems with the loading of tab delimited text file (source) to a SQL Server table (destination) using the SSIS data flow task. Package has been executed successfully with no error msg. The number of rows in the text file also matches the number of rows in the SQL table. But, when I check the content of the table, I noticed some of the columns contain NULL which supposed to have value. This happens not to all the rows but only to some rows. I did some testing by removing some rows from the beginning, middle and end of the text file and re-run the package but the result is quite inconsistent. Sometimes, the field got filled, but sometimes, it just contains NULL where it supposed to have value.

What will be the possible causes to this?

Thanks in advance.

Regards,

Yong Hwee

2012 Flat File Source: After 57K rows it keep on running and does nothing

$
0
0

Hi, I have a weird problem with the Flat File Source on SQL Server 2012:

I first created a package under SQL Server 2008 that loads data from a csv-File directly (no other transforms) into a table. That ran and still running fine under SQL Server 2008.

Meanwhile the customer bought another server with SQL Server 2012 Standard Edition. I migrated the databases etc. to new server and I upgraded the 2008 packages to 2012 with the Visual Studio Upgrade Wizard. Everything is working fine after the upgrade but not the package I mentioned.

It starts and then load exactly 57480 rows of XXXXXXX rows, after that it just keep on running but norhings happens. I waited for more than 10 minutes...no more rows and it running and runnning and running.... I deleted about 30K rows from the beginning, executes again and I had the same issue. Created Flat File source again...still the same.

Any idea what I have missed?


working with dates

$
0
0

Hello,

I need to rename the file depending on the below given scenario.

If the today's  date falls between last months 22nd to current month 21st, I need to rename it with current month.

for example- If date falls between 06/22/2012 to 07/21/2012. So in this scenario the FILE name will have 07/12 appended.

As, I was trying to use GETDATE() I am facing some problem using BETWEEN.

Please suggest approach for same.

Thank You,

madhur_ms


madhur_ms

SSIS package failure

$
0
0

Hi All,

I have problem from last three days job is falling

Below is the description for job failure.

sql server 2005,sp2,standard edition

Microsoft (R) SQL Server Execute Package Utility
Version 9.00.3042.00 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Started:  7:00:01 AM
Error: 2012-08-02 07:05:49.26
   Code: 0xC0047062
   Source: Insurance_SR SalesForce USPMService_Request [1]
   Description: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper90 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer90[] buffers, IntPtr ppBufferWirePacket)
End Error
Error: 2012-08-02 07:05:49.27
   Code: 0xC0047038
   Source: Insurance_SR DTS.Pipeline
   Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "SalesForce USPMService_Request" (1) returned error code 0x80004003.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
End Error
Error: 2012-08-02 07:05:49.27
   Code: 0xC0047021
   Source: Insurance_SR DTS.Pipeline
   Description: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread1" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  7:00:01 AM
Finished: 7:05:49 AM
Elapsed:  347.781 seconds
Microsoft (R) SQL Server Execute Package Utility
Version 9.00.3042.00 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Started:  7:00:01 AM
Error: 2012-08-03 07:05:48.57
   Code: 0xC0047062
   Source: Insurance_SR SalesForce USPMService_Request [1]
   Description: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper90 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer90[] buffers, IntPtr ppBufferWirePacket)
End Error
Error: 2012-08-03 07:05:48.57
   Code: 0xC0047038
   Source: Insurance_SR DTS.Pipeline
   Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "SalesForce USPMService_Request" (1) returned error code 0x80004003.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
End Error
Error: 2012-08-03 07:05:48.57
   Code: 0xC0047021
   Source: Insurance_SR DTS.Pipeline
   Description: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread1" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  7:00:01 AM
Finished: 7:05:48 AM
Elapsed:  347.079 seconds

Please its urgent.


Maheshwar Reddy

SSIS package performance issue

$
0
0

Hello,

I have a SSIS package performance issue.

Since we migrated from a less powerful server with SQL Server 2005 to a more powerful machine with SQL Server 2008 R2 the loading time of our ssis package increased dramatically from 1 h to 5 h.

The ssis package runs on a separate virtual 32-bit SQL 2008 Server. In the package I only changed the connection manager settings of the destination database:

Oracle -> SQL Server 2005 database (Old 64-bit server with 8 CPU and 8 GB RAM): Loading time is 1h

Oracle -> SQL Server 2008 R2 database (New 64-bit server with 24 CPU and 32 GB RAM): Loading time is 4-5h !!!

Where might be the bottleneck?

Oracle Client Configuration on the new server?

SQL Server Configuration on the server?

Thanks

Axel


Viewing all 24688 articles
Browse latest View live


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