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

how to schedule ssis job on 2012

$
0
0

i had schedule(job type:file system) one ssis package through sql server agent 2012 but job  was failed.

but same job i had excuted on solution then it is  excuted successful.

in that ssis package i am using configuration .

type: XML configuration

variable :environment variable

can you tell me how to reslove that job issue on 2012 .


error when i want to attach database

$
0
0

hello everyone

when i try to attach my data base file.mdf to sql server 2008 i give the error.

TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'COM2'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

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

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Unable to open the physical file "D:\project\mytest\mytest\bin\Debug\test1_log.ldf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)

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

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

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

how to fix this error?

Create ETL (star schema) for two very different domains

$
0
0

I have "Healthcare" and "Retail" databases. I managed to find a sample retail database from Microsoft downloads. I created my own very simple database for healthcare using SQL Server 2012. My final goal is to create an ETL using SSIS for these domains 

Since this is the first time i am even hearing the word ETL in my life i am totally unsure how to do it. I tried those technet tutorials to create simple ETL packages and succeeded but i do not understand the steps. Any help would be greatly appreciated.

My hospital database contains the following tables:

patient, doctor, nurse, bed, theatre, surgery, patient record(fact table) and surgery record(fact table)


I am trying to implement the below structure.

retail + healthcare databases---->1st ETL (combined single database)----->Database staging---->2nd ETL (actual transformations)---->Data warehouse (star schema) 

I have already combined (copied) the tables from both databases into a single one (first ETL). I am not sure how to continue with the 2nd ETL. I am sorry if its too long or general for a forum question but i desperately need help with this. Please let me know if further clarifications are needed.




how to delete first three rows in excel sheet whenever import the excel sheet into database using ssis

$
0
0

Hi,

i am import the data from excel sheet into sql server database using ssis.

my excel sheet contains first three or four lines some information this is dont need to me i want only data, how to remove or delete these information in excel sheet.

Regards,

Abdul Khadir. 

send task name in email where task is failed

$
0
0

hi Friends

I have one package that consist around 20 task .

I need to send mail on failure but in message source i also need to send task name of that where package is failed.

Kindly help.

what's the difference between sql server and ssis package store when deploy ssis package

$
0
0
what's the difference between sql server and ssis package store when deploy ssis package

Connection manager doesn't keep the default ConnectonString value when I set it up with an expression.

$
0
0

Hello,

I'm trying to set up dynamically the connection managers of my packages.

So, I read the value for the ConnectonString from a .xml confinguration file into a variable, then trough an expression I set the value of the ConnectionString for the connection manager and it works fine.

The problem is: for some connection managers when I set the value of the field *Expressions* (specifically *ConnectionString* inside *Expressions*) in the Properties window and save the file it (BIDS) automatically deletes the default value that I had for the *ConnectionString* property (this is the other *ConnectionString* field, the default one which is not related to *Expressions*)

So, it's like if I just can have one value for *ConnectionString* either the hard-coded default value for the connection or the dynamically set up through the variable in expressions.

Thanks in advance for your help.

J.O.

---------------------- some more specificities ------------------

In my main package the FILE type connections work fine -> keep both values, but the OLEDB type connections don't -> either one or the other.

In secondary packages neither FILE nor OLEDB work. The OLEDB connections erase the default connection string the moment I set it up through the expression. And the FILE connections do something weird, my dynamic expression is of the sort: @[User::v_FilePath]+ "File.dtsx", well when I save this it replaces the default connection string that I had with "File.dtsx".

I read the configuration values from a .xml file in the main package and roll the variables downwards to the secondary packages as needed.

I'm using Visual Studio 2008.

------------------------------------------------------------------

Security problem to consume WCF WebService

$
0
0
Hi everyone,

I have this scenario:

I built a package to consume a webservice. The package uses a .NET 3.5 library with a clientService to a WCF WebService with basicHttpBinding. There was not problems in development testing locally, but when I had deploy to a server I get an exception System.Reflection.TargetInvocationException.

After a lot of ressearch I solve the issue putting the execution user of the package in the Power Users group on the server.

I need to know exactly which permission I have to grant to the user and how I do that.

Anyone have seen this before?

guilhermeando


How to get list of file names from SFTP server folder.

$
0
0

Hello,

How to get list of file names from Server folder location using VB.net code in SSIS 2005.

Appreciate your help. Thanks.

Vaishu


Vaishu

How to turn the connection string of a custom connection manager to sensitive?

$
0
0

Hi All!

We built a custom connection manager for SSIS, that uses the ConnectionString property to store the connection details.
When I try to assign a sensitive parameter to the connection string, SSIS refuses to do so, because "sensitive parameters can only be used with sensitive properties".

How can I turn a regular connection string to a sensitive property. Do I have to apply some kind of attribute in our code to mark our connection string as "sensitive"?

Thank you all in advance for the help!

Cheers,

Patrick

db to flatfile in

$
0
0

Hi,

i am new to SSIS.how to load table data to flat file.

20 min early datetime rows to pull in conditionalsplit

$
0
0

hi all,

i have a column fldEnterDatetime(ex:2012-04-26 06:37:32.000)

i want to seperate the data which is 20 min before the GetDate().

so im passing like this in conditional split transformation

fldEnterDateTime==DATEADD(MI,-20,getdate())

my fldEnterDatetime column datatype is datetime only.

can some one suggest me the Condition to filter this

Attunity Destination component, does neither re-direct data truncation rows nor does insert into the table

$
0
0

Hello Team,

 Need your expert suggestion and help, we have a situation, where we are using Oracle Attunity Destination control, we have situation where from Oracle Attunity Source we are getting data let's say 30 char, where as in Oracle Destination the data mapped to column size is 5, so basically data truncation will happen and will not be inserted into destination, so Oracle Attunity Destination component should fail or rediected those rows a rejected, but we have strange sitatuion where it does redirects to rejected path or fail or does in inserts.

We have looked all the possible way to try, need your help. thx

Shri.

SSIS does not read row and column delimiters

$
0
0

Hi,

I have a text file with column delimiter as | (Pipe) and row delimiter as CRLF (new Line character).  The output is an SQL table.

If my data in file has more pipes(|) or more CRLF characters then my connection manager reads as follows:-

  1. Data in file. In Correct format. Then the output in the table is right.

Global Unique Identifier]|[KPI Name]|[KPI Description]|[Process Impacted]|[Objective]|[Strategy ID]|[KPI Category]|[KPI Measure Type]

A26|name|Desc|TPI|YYY|12|CAT|MT

A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

  1. Data in file with more column delimiters in 2<sup>nd</sup> row as below

A26|name|Desc|TPI|YYY|12|CAT|MT

A27|name|Desc|TPI|YYY|12|CAT|MT|||||||||

A28|name|Desc|TPI|YYY|12|CAT|MT

                The output in file is also as above. i.e. 2<sup>nd</sup> row’s last column has all pipe lines also considered as data.

  1. Data in file is as below. i.e. With just one column in the first row and we will not give other column delimiters and give row delimiter.

A26

A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

Then the output in the file is as below. We get the first column merge into the 2<sup>nd</sup> row’s first column.

A26 A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

SSIS expects the right delimiters, only then it gives the correct output. Else the data coming in the output table is incorrect.

Can this be handled in any way?

 I will be thankful in case of any help regarding this issue.

Dynamic SSIS using Codebehind C# or VB.NET for Export Excel

$
0
0

Hi, I want to create Dynamic SSIS and excute for export to excel which means

i want to pass runtime query, header and column mapping, can we do using Code behind ,

any one have any idea or any sample code, pls share with me.

Thanks

A-


Ashok


Import and Export Wizard: Export table to Excel fails with DTS_E_OLEDBERROR

$
0
0

Hi,

Attempting to accomplish the task of getting text data out of a table into an Excel sheet. Have tried varieties of BCP and SQLCMD. Now working with SSIS Import Export Wizard.

Source table looks like this:

CREATE TABLE MyTable
(
	UserID int,
	--Username int,
	Id	varchar(max),
[Name]	varchar(max),
First_Name	varchar(max),
Last_Name	varchar(max),
Link	varchar(max),
Birthday	varchar(max),
Quotes	varchar(max),
Website	varchar(max),
Gender	varchar(max),
Email	varchar(max),
TimeZone	varchar(max),
Locale	varchar(max),
Bio	varchar(max),
Location	varchar(max),
Hometown	varchar(max),
Work	varchar(max),
Education	varchar(max),
Sports	varchar(max),
Languages	varchar(max),
Inspirational_People	varchar(max),
Data	varchar(max),
Verified	varchar(max),
UpdatedTime	varchar(max)

)

The operation seems to begin but errors out during the copying process:

Operation stopped...

- Initializing Data Flow Task (Success)

- Initializing Connections (Success)

- Setting SQL Command (Success)

- Setting Source Connection (Success)

- Setting Destination Connection (Success)

- Validating (Success)

- Prepare for Execute (Success)

- Pre-execute (Success)

- Executing (Success)

- Copying to `TempFacebookAttributes_N` (Error)
	Messages
	* Error 0xc0202009: Data Flow Task: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x00040EDA.
	 (SQL Server Import and Export Wizard)
	
	* Error 0xc0209029: Data Flow Task: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (99)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (99)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0047022: Data Flow Task: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - TempFacebookAttributes_N" (88) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0209029.  There may be error messages posted before this with more information on why the thread has exited.
	 (SQL Server Import and Export Wizard)
	* Error 0xc02020c4: Data Flow Task: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0047038: Data Flow Task: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - TempFacebookAttributes_N" (1) returned error code 0xC02020C4.  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.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread0" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
	 (SQL Server Import and Export Wizard)

- Post-execute (Success)

- Cleanup (Success)
	Messages
	* Information 0x4004300b: Data Flow Task: "component "Destination - TempFacebookAttributes_N" (88)" wrote 41411 rows.
	 (SQL Server Import and Export Wizard)
This is driving me crazy. Spent a day on this now and had expected it to be a simple task! All help appreciated :)

Creating Excel Table Using Script Task and SQL task

$
0
0

Hi

Hopefully someone can help me with this. I have a script task that populates some variables, and one of these I pass out as the Name of the previous Month. I then want to use this in my following SQL task to create a table in a connection, where the connection also has a dynamic string. In short I have been reading an online tutorial that says use ? in your SQL task to map the parameter in the sql task to the sql statement but just keep getting error

"Error:  Execute SQL Task: Executing the query "CREATE TABLE ?" In the SQL task I have the variable monthName mapped as parameter and using ? in create table statement. The settings in SQL task parameter mapping are:

User::monthName  || Input || NVarchar || pMonthName

In general settings I have resultset as single row, using my excel connection manager as connection and have type as excel. Also have SQL statement as:

CREATE TABLE ? (
    `Field1` DATETIME,
    `Field2` INTEGER,
    `Field3` NVARCHAR(255),
    `Field4` NVARCHAR(255),
    `Field5` NVARCHAR(255),
    `Field6` NVARCHAR(255)
    )

And geterror Error:  Execute SQL Task: Executing the query "CREATE TABLE ?" at the SQL task.


Andrew (MCDST)

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred

$
0
0

Hi Guys Wroking on this SSIS Error .

Error: 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: "Protocol error in TDS stream".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Communication link failure".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.
".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Communication link failure".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.
".

If Anyone can suggest solution would be great help.

Thanks 


Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah


Fail the job when one task fails

$
0
0

Hi All,

I have a seqence containter in which I have two script task. I want the package to be failed when any one of task fail. Any help will be highly appreciated.

Thanks


SSIS Derived Column Transformation Question

$
0
0

I have a derived column (ParsedStartTime is nvarchar) created by the following expression:

SUBSTRING(Time,1,FINDSTRING(Time,"-",3) - 1)

I also have an input field (Setup T is Float)

I want to create a derived column (CalculatedStartTime) that is ParsedStartTime - Setup T.

I would like to do this in the same table.  I cannot use ParsedStartTime as input (because it is derived), but can I create an expression using the same code and then DATEADD to reduce the time by Setup T?  Any idea what the expression would look like?

Viewing all 24688 articles
Browse latest View live


Latest Images

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