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

query issue

$
0
0

Hi many of the users keep compliant about the query taking too much time to give the result, i was started to troubleshoot and found that it was blocking issue.It has been rectifiedbut the problem is here, the query still taking time.I was searched everything but i don’t know where is the source of this issue.

Please give an idea to find that. Its urgent request. Advance thanks



Removing RTF value when importing from share point list to SQL table

$
0
0

Hi,

I need to import share point list values in sql table. I have made SSIS package to do that and it is working fine.

But I can see rich text also in my sql tables. To find out how to get rid of them I found below link (and it also works great. I tried a sample). For some reason I can not post link so below is the code:

<%
Option Explicit

Function stripHTML(strHTML)
'Strips the HTML tags from strHTML

  Dim objRegExp, strOutput
  Set objRegExp = New Regexp

  objRegExp.IgnoreCase = True
  objRegExp.Global = True
  objRegExp.Pattern = "<(.|\n)+?>"

  'Replace all HTML tag matches with the empty string
  strOutput = objRegExp.Replace(strHTML, "")
  'Replace all < and > with &lt; and &gt;
  strOutput = Replace(strOutput, "<", "&lt;")
  strOutput = Replace(strOutput, ">", "&gt;")
  stripHTML = strOutput    'Return the value of strOutput

  Set objRegExp = Nothing
End Function


%><form method="post" id=form1 name=form1><b>Enter an HTML String:</b><br><textarea name="txtHTML" cols="50" rows="8" wrap="virtual"><%=Request("txtHTML")%></textarea><p><input type="submit" value="Strip HTML Tags!" id=submit1 name=submit1></form><% if Len(Request("txtHTML")) > 0 then %><p><hr><p><b><u>View of string <i>with no</i> HTML stripping:</u></b><br><xmp><%=Request("txtHTML")%></xmp><p><b><u>View of string <i>with</i> HTML stripping:</u></b><br><pre><%=StripHTML(Request("txtHTML"))%></pre><% End If %>

I have taken this from 4guysfromrolla.com.

Now my question is how could I use this code in SQL Or SSIS package. I am fairly new to SQL world so if you can pl guide me step by step that would be great help.

Thanks a lot in advance.

Best

Error when SSIS package is exceuted as scheduled job in SQL server.

$
0
0

I am receiving the below error, when the SSIS package is executed through the scheduled SQL server Job. 

OnError,DEVDSQL03,PDC\devsqlsrvc,Data Flow Task,{AF6398C5-232F-4D33-8FD6-DE1479E17449},{8F885F81-1190-4CE0-BA97-4146EF420B03},3/1/2014 12:00:01 AM,3/1/2014 12:00:01 AM,-1073450910,0x,System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
   at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
   at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)
OnError,DEVDSQL03,PDC\devsqlsrvc,Data Flow Task,{AF6398C5-232F-4D33-8FD6-DE1479E17449},{8F885F81-1190-4CE0-BA97-4146EF420B03},3/1/2014 12:00:01 AM,3/1/2014 12:00:01 AM,-1073450985,0x,component "ADO NET Source" (1) failed validation and returned error code 0x80131937.

I am using ODBC to connect AS400 DB. If i run the job manually, then it is executing without any error. 

Kindly let me know, what I am missing.

Excel files as source

$
0
0

Hi !

I need to load .xlsx files . But i could read only .xls using SSIS 2012. Do we need to Install provider for excel 12.0 to load .xlsx or it comes by default. ?

Thank you !


Regards,

Getting data from SP Form Library to SQL table

$
0
0

Hello,

As of today, all the information related to my application is stored in a Forms Library. We have a new requirement where i need to transfer some columns from this forms library to a SQL table. Can someone please help?

Thanks,

Anand


Thanks and Regards, Anand R. Deshpande

SSIS 2012 packages in 32 bit run time

$
0
0

Hi !

I developed and deployed a package in SSIS 2012 to teh server.

I tried to execute the package in 32 bit run time as below . The connection strings in the package is not getting authenticated. It is showing Cannot acquire connection manager.

When i execute the package normally it is getting executed.


Regards,

2008 SSIS Designer stops working after installing VS11 Dev Preview

$
0
0

Immediately after installing the Visual Studio 11 Developer Preview, I was no longer able to open a SSIS package in VS 2008. I uninstalled it and all the .NET 4.5 associated packages, reinstalled both VS 2008 and SQL 2008, but still it refuses to work. 

This is the specific error I get when attempting to open one. 

 

===================================

An error prevented the view from loading. (Microsoft Visual Studio)

===================================

The specified module could not be found. (Exception from HRESULT: 0x8007007E) (System.Windows.Forms)

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

Program Location:

   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)

   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)

   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)

   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)

   at System.Windows.Forms.AxHost.CreateInstance()

   at System.Windows.Forms.AxHost.GetOcxCreate()

   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)

   at System.Windows.Forms.AxHost.CreateHandle()

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at Microsoft.DataWarehouse.Design.ComponentDiagram.CreateDdsView(Control parentControl)

   at Microsoft.DataTransformationServices.Design.DtsComponentDiagram.CreateDdsView(Control parentControl)

   at Microsoft.DataWarehouse.Controls.DdsDiagramHostControl.set_ComponentDiagram(ComponentDiagram value)

   at Microsoft.DataTransformationServices.Design.ControlFlowControl.set_ComponentDiagram(ComponentDiagram value)

   at Microsoft.DataTransformationServices.Design.DtsPackageView.CreateControlFlowEditor(VsStyleToolBar pageViewToolBar)

   at Microsoft.DataWarehouse.Design.EditorWindow.EnsureViewIsLoaded(EditorView view)

 

Transfer Database task

$
0
0
Hello

I'm trying to transfer one database from one server to another. One is sitting locally on the network, and we access it using abc-sql-dev1, and one is remote and we access it as follows, abc-sql-01.abccolo.

I'm getting few errors, but I think they are all related to one. The error is
" The transfer file information "DatabaseName.mdf","D:ProgramFiles\......\DATA","" is missing the network share part.

How am I supposed to enter the network share?
I tried \\abc-sql-01.abcolo\d$ and I still got an error.



Abdallah El-Chal, PMP, ITIL, MCTS

Excel Destination excel formating

$
0
0

Hello All,

I am using Excel destination task in SSIS to create the output Excel report but I need to format the report for eg. highlight the column names, add border to the records etc.

Is it possible with Excel destination or do I need to implement the  as we do in .NET by creating html format and then writing to the excel.

Automation for Teradata to SQL Server PDW transformation

$
0
0

Hi all,

  We are working on a trasformation project where the requirement is to migrate both objects and data from teradata to SQL server PDW.

  Is it possible to automate some part of work while transforming from teradata to Sql server PDW??

 Your suggestion will be very helpful.

Thanks,

Dinesh

 

to extract the data from multiple Excel file where the data is in Multiple sheets (the open row set is different for each sheet ) using SSIS

$
0
0
the Current  scenario is the there are 30 excel sheet tabs /excel the data is available in a different row for each sheet the sequence of the sheets are same so i used the sequence container for each sheet  referring to the each open row set, i used for each loop container for looping the excel file but the sequence generator is failing to execute , is this approach is correct or else did i missed out something on this 

SSIS PACKAGE MIGRATION FROM 2005 to 2008 - Script task/component errors

$
0
0

HI All,

We have to migrate ssis packages (about 300) from ssis 2005 to 2008 .

1. I understand that the major concern is regarding the script component/tasks.

I searched a lot about this and also consulted with many friends , all of them are aware of this issue but not able to provide what could be the issues and the solution.

Can some one help me with the common script issues that can happen during migration and the solution for the same.

 2. I do have one more question.

As per my understanding given in the below link 

http://blogs.msdn.com/b/mattm/archive/2008/03/21/package-upgrade-wizard.aspx

there is this part which says ... 

Once the packages have been chosen, the next page asks you to pick the output location. This can be:

  1. Same as the source location
  2. File System
  3. SSIS Service (Package Store)
  4. SQL Server 

Does this mean I can deploy in sql server directly on fly while upgrading ?

Any help highly appreciated .

Regards

Praveen..

Data error while transform from xls to xlsx in SSIS

$
0
0

Now  my problem is already it is in  production  and daily Excel Report is generating in xls.

So I earlier used in Derived column:

REPLICATE(" ",20) + TRIM((DT_WSTR,20)[Commodity Symbol])

  in xls so working fine: like below o/p==>

Now I want to migrate in xlsx

So I used same derived but O/P==>

Observe in xlsx -Commodity Symbol :::Still left align

       and           NR::No $ assign value also some change??

I am in confuse  xls  vs xlsx while migrating in SSIS !!!

Plz help in xlsx  correctly..

Thanks

Unable to Load CSV file with comma inside the column(Sql Server 2008)

$
0
0

Hi,

I am not able load an CSV file with Comma inside a column. 

Here is sample File:(First row contain the column names)

_id,qp,c

"1","[ ""0"", ""0"", ""0"" ]","helloworld"

"1","[ ""0"", ""0"", ""0"" ]","helloworld"

When i specify the Text Qualifier as "(Double quotes) it work in SQL Server 2012, where as fail in the SQL Server 2008, complaining with error:

TITLE: Microsoft Visual Studio
------------------------------

The preview sample contains embedded text qualifiers ("). The flat file parser does not support embedding text qualifiers in data. Parsing columns that contain data with text qualifiers will fail at run time.

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

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

I need to do this in sql server 2008 R2 with Service pack 2, my build version is 10.50.1600.1.

Can someone let me know it is possible in do the same way it is handle in SQL Server 2012?

Or

It got resolved in any successive Cumulative update after 10.50.1600.1?


Regards Harsh

Migrate DTS Package to SSIS 2012

$
0
0

I have around 1000+ DTS packages. I need to Migrate from DTS 2000 to SQL Server Integration Service 2012. 

I also referred multiple forums, the suggested approaches are..

1) Re Development

2) Migrate DTS to SSIS 2008 then modify the transformation which are not supported -> then add the packages to SSIS 2012 solution - This also almost look like redevelopment.

Could you please suggest the best approach considering the Cost and Effort for my case.?

Thanks in Advance!

Thanks, Liyasker Samraj K


Liyasker Samraj K


Transfer a binary file stored in a table field in oracle to another table different schema in oracle

$
0
0
I would like to know if it is possible to use ssis to transfer a binary file of a datatype of long raw in a field in one table in oracle to a new table in a different schema of a datatype blob in oracle? The binary file is a Crystal reports executable which is used in a application that I support. I are trying to consolidate data fields over many schemas into one main schema to simplify the support issues.

SSISDBBackup.bak error. Trying to create a catalog on Mircosoft Windows 2012 Server

$
0
0

Hello,


I'm, trying to create Integration Services Catalogs folder on the server , right click(for some reason Enable CLR Integration button is in grey color), and for some reason SSISDBBackup.bak is missing in the pass( Microsoft windows 2012 server with clustered server):

D:\Program Files\Microsoft SQL Server\110\DTS\Binn

I tried to reinstall Integration Services on the server , with out success

if somebody have any ideas it'll be great.

Best Regads

Daniel

How to create SSIS-package in Visual Studio 2010 using a DSN based on a 64bit ODBC-driver?

$
0
0

Situation: we would like to transfer data every night from ERP-Systems Database (Progress-Database on Server "muc15") to our new SQL Server 2012 64bit named muc40 .

muc40 runs under Windows Server 2008R2 64bit,  SQL Server 2012 is the 64bit Version.

We got the 64bit ODBC-Driver from Progress and created a System DSN based on this Driver and called it "ProgressODBC64". Connection test against muc15 was successful.

Then we wanted to create a SSID-Package using the System DSN "ProgressODBC64" . This should be done in Visual Studio 2010, but this Software is not able to see the System DSN "ProgressODBC64".

Is it because Visual Studio is a 32bit-Software?

Is there another way to create a SSID-Package?

Is there a Workaround to enable Visual Studio to see and use System DSNs based on 64bit ODBC-Drivers?

Unreliable Checkpoint

$
0
0

With 2005 SP1. Have built a SSIS package that successfully saves a checkpoint file and sometimes successfully restarts. (I've also built some others that are 100% reliable).

On the unsuccessful restart it appears as though the failed steps and subsequent steps do not execute. the package appears to "complete" though and the checpoint file is removed as though everything is fine.

On a successful restart the failed step reexcutes and everything works fine.

The issue appears that when a failed step finishes at the same time as a successful step finishes there is contention in the process that writes the checkpoint file out and the checkpoint file is corrupt. The failing step runs in parallel with a successful step and the execution times are very similar so task A may complete before or after task B.

Contents of a good checkpoint file follows <DTS:Checkpoint xmlns:DTS="www.microsoft.com/SqlServer/Dts" DTS:PackageID="{3BFFF2F9-74BA-4CE9-8435-81CC198E8144}"><DTS:Variables DTS:ContID="{3BFFF2F9-74BA-4CE9-8435-81CC198E8144}"/><DTS:Container DTS:ContID="{3655F83D-5EA5-4F16-9B8F-520582A1229A}" DTS:Result="0" DTS:PrecedenceMap=""/><DTS:Container DTS:ContID="{DB2D7A57-D405-4B11-AF4A-41B331EE3F15}" DTS:Result="0" DTS:PrecedenceMap=""/><DTS:Container DTS:ContID="{DFC6A95F-CCFA-4FD9-B604-FCBD722B47D8}" DTS:Result="0" DTS:PrecedenceMap="YYY"/></DTS:Checkpoint>

Contents of a bad checkpoint file follows

<DTS:Checkpoint xmlns:DTS="www.microsoft.com/SqlServer/Dts" DTS:PackageID="{3BFFF2F9-74BA-4CE9-8435-81CC198E8144}"><DTS:Variables DTS:ContID="{3BFFF2F9-74BA-4CE9-8435-81CC198E8144}"/><DTS:Container DTS:ContID="{3655F83D-5EA5-4F16-9B8F-520582A1229A}" DTS:Result="0" DTS:PrecedenceMap=""/><DTS:Container DTS:ContID="{9FAD4043-8D5F-4044-915A-87ECABDE6A7C}" DTS:Result="1" DTS:PrecedenceMap=""/><DTS:Container DTS:ContID="{DB2D7A57-D405-4B11-AF4A-41B331EE3F15}" DTS:Result="0" DTS:PrecedenceMap=""/><DTS:Container DTS:ContID="{DFC6A95F-CCFA-4FD9-B604-FCBD722B47D8}" DTS:Result="0" DTS:PrecedenceMap="YYY"/></DTS:Checkpoint>

Has anyone seen this behaviour before?

 

Project Deployment

$
0
0

Hi !

I have developed a package in project deployment mode and i'm able to run the package without any issues in windows environment from Dev server.

I'm deploying to Integration services catalog and executing a package by right clicking  from there. I'm just getting the package status as failure and no error messages.

Can you please help me ? where can i see error mesage when i run froom Integeration servcie catalog...


Regards,



Viewing all 24688 articles
Browse latest View live


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