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

Issue while deploying SSIS package to Production Environment [SSIS Configuration table not delpoyed]

$
0
0

Hi All,

I am new to SSIS aspect of SQL server.I am using SQL server 2005 BIDS.I have developed one data flow task which fetch data from one table(SQl Server A) and insert it to another table(SQL Server B).In my development environment it worked properly.So i decided to decided to deploy it to production servers.Obviously production servers are different from development environment. 

Details of package :-

  • Package Config Type :- SQl server (This table stored connection strings for Source and Destination table)
  • Package Config Table Name : -SSIS_Configurations

In development environment Data flow task fetched Connection strings from SSIS_Configurationstable.

When I run deployment utility i.e.  '.SSISDeploymentManifest' file it guided me and I successfully installed package on production servers.After deployment checked configuration table 'SSIS_Configurations' on target server ,it was not present there.Without this table my package would be useless.

When I tried to execute package manually (Rt click on package-->Run Package) it populated new screen called Exceute Package Utility. When I checked Connection Managers ,it was showing Development Server's Connections string (OLE DB Connection string which I set during creation of task in development environment).

So I have couple of questions

  1. why my table SSIS_Configurations was not created during deployment of package using '.SSISDeploymentManifest' file. 
  2. Why,even after deployment in production environment ,my connection manager was showing Development DB server connection strings.

Guys your input would be very helpful to me.Thanks in advance.


Banky



error showing while taking data from excel.

$
0
0

This error showing while taking data from excel. 

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "SOURCE FILE - TIME SHEET EXCEL (RAW DATA)" (1) returned error code 0xC020902A.  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.



Please help me for work out this.


Abhishek Parihar BI Consultant (Please mark the post as answered if it answers your question)

Transactions in SSIS

$
0
0

Hi All,

I have three execute SQL task sequentially attached to each other. in First I am inserting records into table B from table A where records does not exists in destination (Present in table A but not in table B).

In second and third also I am doing the same with same tables as source and destination.

Now i wanna know that when my first execute SQL task is completed and the process flows to second one, does this will include the records inserted by first execute SQL task or it'll insert them again.


Himanshu Sharma

How to dynamically create the schema name with table in sql

$
0
0
Hi,

i have create the tables dynamically with schema name.

schema name value pass through variables.

i have create script for above concept but error comes.

DECLARE @cols varchar(MAX) 
DECLARE @SCHEMA VARCHAR(100) 
SET @SCHEMA ='ABC'
SET @cols = '(Period1 varchar(25),Period2 varchar(25),Period3 varchar(25),Period4 varchar(25),Period5 varchar(25))'

declare @sql varchar(MAX)
seT @sql = 'CREATE TABLE SAMPLE '+@SCHEMA+'.' + @cols

exec(@sql)

error - Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'ABC'.

Regards,
Abdul Khadir.

Help needed in bulk insert

$
0
0

Hi,

Please help, I want to insert the data using BULK insert. How to do this. Thanks in advance

Data in CSV File

ID, Name ,Phone
100983, "Jones, Frank",555-1212
118928,"Smith, Joe",555-1313
115454,"Frank, Ali",555-1414

Using Bulk insert data is going like this

ID          Name        Phone 
100983 "Jones       Frank"       555-1212
118928 "Smith       Joe"           555-1313
115454 "Frank       Ali"             555-1414 

What is expected

ID         Name              Phone 
100983 Jones, Frank  555-1212
118928 Smith, Joe      555-1313
115454 Frank, Ali        555-1414 

 

Download files from sharepoint

$
0
0

I need to download Excel files from Sharepoint using SSIS 2008. To download files using SSIS does that share point location is to be access free because only authorized person can use this link. If this is not an issue, what is the best way to download files. Went through few posts but its not clear.

Saw these below post http://sqlblogcasts.com/blogs/drjohn/archive/2007/11/04/downloading-excel-files-from-sharepoint-using-ssis.aspx but i am not sure how they get the list of file names available in sharepoint and then loop through it. Any suggestions are highly appreciated. Thanking you in advance.

Sarvan


Sarvan

Connection problem

$
0
0

Does anybody knows something about this error?



Error: Error value “<DRS:ConnectionManager cmlns:DTS=www.microsoft.com/SqlServer/Dts>

<DTS:ConnectionManager Dts:refld=”Package.ConnectionManagers[casaktua]”

DTS:CreationName=”OLEDB” DTS:DTSID=”{27468A9B-F934-42F8-889C-6B4BB1121DFE}”

DTS:ObjectName=”casaktua”><DTS:PropertyE” from node “DTS:ConnectionManagers”

Thanks

64 bit excel connection issue

$
0
0

Error: SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE DB provider is available.

how to solve without Set Run64BitRuntime to False .


how to work the for loop container in ssis 2008

$
0
0

Hi,

i have 5 records in one table. 

i need to create the tables in table name with this 5 records id value one by one table.

table name - table1

table1

id col1 col2
 2  aa  bbb
 5  bb  eds
 7  cc  fgh

i need create the tables, table1_2 , table1_5 and table1_7

how to work this concept in for loop container..

Regards,
Abdul Khadir.

Two environment variables in package

$
0
0

Hi ,

we have a package which needs to refer SSISconfigurations tables located in two different databases can we use two environment variables in same package pointing to these two databases

Thanks

DTSX - Process log: Error a connection cannot be made. ensure that the server is running.

$
0
0

i have a problem with process dtsx on SSMS.

if i process the cube/dimension by SSAS the results it's Success! but if i process the dtsx (SSAS processing cube/Dimension) the results it's error a connection cannot be made. ensure that the server is running.

my SQL Server is on server (cluster 1): SQL2012-DWH\DWH my SSAS in on server (cluster 2) : AS2012-DWH\ASDWH

error a connection cannot be made. ensure that the server is running thanks niko

Exception handling when calling SQLCMD through Execute Process Task in SSIS

$
0
0

Hi All,

I have a requirement to call SQLCMD through Execute Process Task through generate a SQL query output file. I have to stick with using SQLCMD (instead of using Execute SQL task and File Connection) since it gives the exact output format (proper headers and format as it comes out in SSMS query editor) as required for reporting through mail. I am able to execute this part properly with the query output stored in a text file

The issue is with exception handling in case the SQLCMD query (in my case a stored procedure) through some error. Currently the error message goes into the file and Execute Process task completes successfully. I want to make the Execute Process task fail in case the procedure execution fail.

One option I can think of is to check the file contents to see if contains any error and make the package fail. Does anyone else have a better idea of handling this scenario? Maybe some option in Execute Process task that I am overlooking.

Thanks in advance

Regards

Manoj 

SSIS Package from Oracle to SQL 2012 returnning 0 rows (row level security)

$
0
0
I have an SSIS package I am migrating from DTS.  The DTS package works successfully.  It brings data from an Oracle database view with row level security to SQL 2012 database.  In front of the select query there is a stored procedure triggered by a select statement that opens up the security to retrieve rows.  On the new server with the SSIS package I have tested this with SQL Developer and it works fine.  In the SSIS package even with the stored procedure run as a prior step, I still receive 0 rows and no error indicating that the row level security it still an issue.  Is there something within SSIS that needs to be configured for a transaction property, etc that will activate the row level security properly before the select statement?

Duplicate Key Error

$
0
0

Good Morning,

In my package i have a DFT. Source is flat files. I get these flat files at the beginning of each month. The package is running smoothly until now. Today it failed with the following error:

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005  Description: "Cannot insert duplicate key row in object 'dbo.CaseDetail' with unique index 'idx_CaseDetail'. The duplicate key value is (49, 1, 13739513, 739513)."

The above mentioned record exists in the TARGET TABLE, buut when i looked for the same record in the incoming flat file it is not there and i checked by loading these files into two seprate test tables. I'm thinking its not the data that is coming from the flat files but the field "CaseDetailID" which is populated by the database itself. My question is why would the database generate a duplicate key? Please need help. You can see my DFT image down below:

tHANKS


VB.net script needed to check line 2 in a file.

$
0
0

VB.net script needed to check line 2 in a file, file contains 25 columns i think script task will do the trick

SQL SERVER : 2005

I am running a batch job in salesforce which will create logs,  i don't have control to fail the batch when the error log is loaded, so wanna add script to check the error log file and notify to fix the issue.

Thanks in advance


s


[File System Task] Error: The process cannot access the file because it is being used by another process.

$
0
0

Hi,

I have 5 packages which write data into same file (flat file) sequentially. If the 3rd package fails writing data, i need to delete the file as its incomplete (Rollback). In the On Error event, i have a file system task to delete the file. But the file system task is giving an error as below: -

"[File System Task] Error: The process cannot access the file because it is being used by another process."

I have tried the below things and still its not working: -

1. I have tried using the variable name and also connection manager in the file system task but no luck.

2. I have set a delay of 30 seconds and then tried to delete the file and again no luck.

FYI, i have a master package which sequentially calls child packages. The child packages write data to the same file. On Error event of the master package has the File System Task to delete the file and update the DB to rollback.

Can anybody suggest a solution to this?

Thanks.

Regards,

Nagesh CL

SSIS Error Code DTS_E_OLEDBERROR while importing tables through Sql Server job agent

$
0
0

Hi,

I have set up several packages to import the tables from a different server through SQL server Job Agent.

but I am getting this error from few days randomly and all my job fails.

SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Login failed for user '<username>'.".  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Cannot open database "<db name>" requested by the login. The login failed.". 

So I am not able to really understand is the problem at the Source server or the destination server.

Has anyone faced the same issue and got a resolution please share.

Thanks,

Vijetha

Are you any good at SSIS? Win love and recognition! Become a TechNet Guru for July 2013

$
0
0

NOTE: Entries are now closed for July. August entries should be added here

Results will be announced once the judges have posted their votes (in 7-10 days)

 

TechNet Wiki is looking for and celebrating the best of the best!

Is that you? Do you consider yourself an expert, authority, or just pretty good at this technology?

Show us your forum solutions and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition programme, where people such as yourselves can get the recognition you deserve, for the time you've given the community.

If you spend any amount of time crafting an awesome answer to a forum question, then why not get the most back for your efforts, by posting it to TechNet Wiki.

1) Please copy over any solutions you post here to TechNet Wiki.

2) Add a link to it on THIS WIKI PAGE, so we know you've contributed

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises, similar to the weekly contributor awards, however once "on our radar" and making your mark, you will probably be interviewed for your greatness, and eventually even invited into other TechNet/MSDN circles!

Either way, winning this award in your favoured technology can only be good for your career! ;)

Feel free to ask any questions below.

Thanks in advance!
Pete Laker


#PEJL Got a good solution? If you invest your time in coding an elegant/novel or large answer on these MSDN forums, why not copy it over to our belovedTechNet Wiki, for future generations to benefit from!





Unexpected Termination of SSIS from SQL Server Agent

$
0
0

http://support.microsoft.com/kb/2837964/en-us addresses this issue indicating SQL 2012 SP1 with CU4 resolves the issue, it does not.  It does appear to remove the random failure, but does not resolve the issue below.

A parent package is run from the SQL Server Agent which calls many child packages via a ForEach loop.  The child packages read from a flat file and load to SQL.  The incoming files are generated by external clients, many using a manual creation process, files not in the correct format occur.  When the flat file connection manager in the child package attempts to up an incorrectly formatted file the Unexpected Termination occurs.  For 24 months this same set of packages has run in SQL 2008 R2, when encountering an incorrcetly formatted file an error is emailed and logged, the child package fails, returning control to the parent package which continues to process the remaining file locations. 

No errors are logged in SQL 2012 or windows application log when the Unexpected Termination occurs.  What can be done to allow the parent package to continue to function?

How to import an XML file?

$
0
0

I'm not sure if I should post this in this forum or XML.  I have this error message now when I try to run this package in SSIS:

Error at Data Flow Task [XML Source]: There was an error setting up the mapping.  Reference to undeclared model group 'http://www.w3.org/2001/XMLSchema:redefinable'

And the first few lines of my XML file look like:

<?xml version="1.0" encoding="UTF-8"?> 
-<xs:schema version="1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" 
xmlns="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

And xsdschema_SCS2.xsd file:

<xs:schema targetNamespace="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" blockDefault="#all" elementFormDefault="qualified" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="EN"
           xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"><xs:import namespace="http://www.w3.org/2001/XMLSchema" /><xs:complexType name="openAttrs"><xs:complexContent><xs:restriction base="xs:anyType"><xs:anyAttribute namespace="##other" processContents="lax"/></xs:restriction></xs:complexContent></xs:complexType>

Although I mapped my XML file to this XSD file above in my Data Flow Task, the XML and XSD file both point to the XSD schema file on TN's website.  Does this matter?  What could be causing this error?


Ryan D

Viewing all 24688 articles
Browse latest View live


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