Quantcast
Viewing all 24688 articles
Browse latest View live

How to sync SSAS 2008R2 databases via HTTP(S) across domain/forrest and firewall boundaries with an SSIS package?

Hey People,

I'm fairly new to SSAS and SSIS, but I've ended up needing to sync an internal SSAS DB into our DMZ SSAS instance.

This crosses domain/forrest, subnet and firewall boundaries.

I've been reading about using IIS to publish SSAS internally.

On an internal -> internal environment (same domain/forrest, subnet and inside the firewall), I can get it working using Windows Auth in IIS.

However, when I try to switch to HTTP Basic auth in IIS, it doesn't appear to attempt to authenticate. (Yes, I'll change this is HTTPS Basic auth later)

I'm using a basic SSIS package, running on the destination server (it's running SQL, SSIS and SSAS), which just consists of an Analysis Services Execute DDL Task containing the following XMLA:

<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.4;Data Source=http://10.x.x.x/olap/msmdpump.dll;ConnectTo=10.0;UserName=DOMAIN\USER;Password=PASSWORD;Initial Catalog=SSAS_SOURCE_DB</ConnectionString>
    <Object>
      <DatabaseID>SSAS_DESTINATION_DB</DatabaseID>
    </Object>
  </Source>
  <SynchronizeSecurity>CopyAll</SynchronizeSecurity>
  <ApplyCompression>true</ApplyCompression>
</Synchronize>

I've seen lots of posts and comments about hooking the likes of Excel into an HTTP published SSAS and being prompted to authenticate, but this needs to be an automated process.

Anyone got any ideas? or can you point me at some decent documentation, as the MS docs don't seem to go any further than "here's how you use IIS to publish SSAS"

Note: this may be better served in the SSAS, so I'll cross-post and link them together.

SSAS Forum

Thanks
Craig



Problem with column/row delimiter for export/import flat file

We need to export table to flat file that have columns of datatype (bigint, int, varchar(20),nvarchar(1000),int,datetime)

Varchar and nvarchar columns can contain any data and it can include: , : ; {CR} {LF} etc i.e. most of the delimiter options provided by SSIS for flat file connection.

For example if we use , as delimiter : Is there any way we can differentiate between , as value of column or delimiter for column so that import will get correct values i.e. What is the best way to export data to flat file to make sure that no data will be lost when other user will use this file to import data in other database?

deadlock after performing Execute SQL task

As part of my DSTX package I have an 'Execute SQL task' which performs an UPDATE statement to a table in a table in our vendors application. Before the update statement there is a line as follows:

WAITFOR DELAY '00:01:00';

My question is would the WAITFOR DELAY be better off in it's own 'Execute SQL task' rather than being in the same code as the update statement? I ask this because we seem to have started to get the occasional deadlock occuring with another update process which runs within the vendors application.

SSIS - Shows DT_WSTR for Non-Unicode Oracle Source

The code shows as DT_WSTR for Non-Unicode Oracle OLE DB Source output and external columns in first environment and shows DT_STR in second environment for same files. Is issue with Connection Manager?

Choosing Required Data in SSIS similar to filed function in datastage

Hi

My requirement is to choose data in a field after - for example 

I have field (Name) containing Values

Name

dalla-s

new-yor-k

mar-yland

apple-i5-is-cool

Now from the above I need to choose the values after -

i.e as below

in datasatge it achieved using filed function 

i.e when you say filed(Name,"-",2) you get the below values

Name

s

yor

yland

i5


How can i achieve this is SSIS ? 

Thanks

How to Set Value for SSIS Package variable from C# App

Hi all,

I have develop SSIS package for data export from Sql server 2008 R2 to Sql express using Business intelligent development studio(BIDS) .Then I'm setting that ssis package as Sql Server Agent Job & calling it from my c# windows forms app like this.Up to this point all are works perfectly.

            String StrReturn = "begin";
            clsUtility Util = new clsUtility();
            DataTable dtbl = new DataTable();
            String strConstr = String.Empty;
            String strJobName = String.Empty;
            String strOwnerLoginName = String.Empty;
            String strJobStepName = String.Empty;
            String strCommand = String.Empty;

                dtbl = Util.GetImportExportSettings();

                if (dtbl.Rows.Count > 0)
                    strConstr = Convert.ToString(dtbl.Rows[0][2]);
                if (dtbl.Rows.Count > 1)
                    strJobName = Convert.ToString(dtbl.Rows[1][2]);

                using (SqlConnection oConnection = new SqlConnection(strConstr))
                {

                    ServerConnection serverConnection = new ServerConnection(oConnection);
                    Server oSqlServer = new Server(serverConnection);
                    Job oJob = oSqlServer.JobServer.Jobs[strJobName];
                    DateTime oLastRunDate = oLastRunDate = oJob.LastRunDate;

                    if (oJob.CurrentRunStatus == JobExecutionStatus.Idle)
                    {
                        oJob.Start();
                        while (oLastRunDate == oJob.LastRunDate)
                        {
                            oJob.Refresh();
                        }

                        if (oJob.LastRunOutcome == CompletionResult.Succeeded)
                            StrReturn = "Job execution is success";
                        else if (oJob.LastRunOutcome == CompletionResult.Failed)
                            StrReturn = "Job execution is Fail";
                        else if (oJob.LastRunOutcome == CompletionResult.Cancelled)
                            StrReturn = "Job execution is cancel";
                        else if (oJob.LastRunOutcome == CompletionResult.InProgress)
                            StrReturn = "Job execution is inProgress";
                        else if (oJob.LastRunOutcome == CompletionResult.Retry)
                            StrReturn = "Job execution is retry";
                        else if (oJob.LastRunOutcome == CompletionResult.Unknown)
                            StrReturn = "Job execution is unknown";
                    }

                return StrReturn;

                 }

      Now i need to pass/set values for my variables which is exist in ssis package from my c# app.I saw some package configuration there but all those are doing is assign variable to some server properties ( like xml,environment variable, registry entry  etc.. ) but that is not practical in my case ,since there are multiple clients gets data from the server at the same time and seting value to some server property is not suitable.So guys can any one help on this ,i'm really stuck on this :)

Thanks & Regards,


Dimuthu


Tab delimited not recognised

Hi for one of my requirement i have modified an existing script code from

http://sqlblog.com/blogs/andy_leonard/archive/2010/05/18/ssis-design-pattern-loading-variable-length-rows.aspx?CommentPosted=true#commentmessage

as below,

 Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
        Try

            Dim vals() As String = Strings.Split(Row.Column0, "\t", , CompareMethod.Text)
            Dim RowCount As Integer = Strings.Split(Row.Column0, "\t", , CompareMethod.Text).Length

            Select Case RowCount
                Case 3
                    With MatchingBuffer
                        .AddRow()
                        .PId = vals(0)
                        .PName = vals(1)
                        .GrpID = vals(2)
                        .Status = vals(3)
                    End With
                Case Is <> 3
                    With NonMatchingBuffer
                        .AddRow()
                        .PId = vals(0)
                    End With
            End Select
        Catch ex As Exception
            ' ...handle exceptions gracefully here...
            MsgBox(ex.Message)
        End Try

the DFT runs without any error, but the non-matching records are not getting separated.

Have i used the bolded and underlined condition correctly please let me know ? as mine is a TDF i used that...

Get the sheetname of the excel sheet using script task

I have excel sheet that needs to be loaded toa  sql table .The tab name is dynamically created .So, I want to get the tabname using the script task .How can proceed with this ?

Can some please help me.


ssis

hot to get last date of the month of getdate() in derived column.

ex-getdate-10/9/2012 result-30/9/2012,Reply soon

Thanks in advance,

Sunnnyyyyyy

How to connect to a remote SQL Server Database without user/password provided

when we developing an application, we have a specical requirement: 1. Connect to a remote server(providing windows remote logon dialog), 2. Access to the SQL Server(2008 or later) database in that sever with the domain user account/password provided.

assuming domain user account/password in that serve has been added to SQL Server Logon group and we follow:http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/ 

But the question is that customer does not want the application persist the authentication(user name/password), can the SQL Server Database be connected without that username/password in connection string? and how?

Really thank you for your sharing if you have a solution or have similar experience before.

Getting the Error "The script threw an exception: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine." from Schedular

Hi,

i have an SSIS package, which is giving the below error if i run it from SQL Schedular.

The script threw an exception: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

But it is woking fine if i run it manually.

Please help me to resolve this.

Regards,

Srikanth Dasari


Kanth
itdiligent

converting tab delimited to comma delimited

Hi Any one knows is there a way to convert tab delimited text file to comma delimited text file ??


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

Sql Sever Service account previleges

Hi,

I have a SSIS package which has UNZIP process in Execute SQL Task. When i execute from BIDS, i am able to unizp the files. While i execute the package as Job, its not unzipping the files. I predict that may be due to windows service access permission denial for service account.

Kindly help me if anyone has come across this issue and solved.  Let me know if my prediction is wrong.

SSIS execution using DTEXEC in a batch script

Hi,

Let me set the context first. I am executing an SSIS package using DTEXEC command in a batch script. The SSIS package takes an input text file(A.txt) to execute a stored procedure and updates the database table. From the batch file, I write the return code of the DTEXEC command to a file.

Now, my problem is that the ERRORLEVEL in the batch file does not capture all failures. When I delete the input text file(A.txt) and run the batch file, I expect the batch file failing on the data flow task component (which involves the input text file), but the ERRORLEVEL in the batch file is still 0, which means successful execution of the SSIS package.

Could anyone help me understand this behavior of the DTEXEC command? I want the error code to be captured in the errorlevel when a data flow task component of an SSIS package fails. How do I do it?

Thanks,

Veena


Thanks! Veena

Does SSIS 2008 support ActiveX script in VB script language?

Hi,

I am using Sql server 2008. In my SSIS package, I am using ActiveX script component written in Visual Basic script. If I execute the package means I am getting the following error.

"An error occurred while adding the managed SSIS type library to the script host. Verify that the DTS 2000 runtime is installed

Error at ActiveX Script Task : There were errors during task validation"

Can anyone please help me to fix the issue?


SSIS: Change Code page 1252 ANSI to UTF-8 65001

Hi All;

I have created SSIS Package to import data from OLE DB to a flat file. The code page in the flat file connection manager was set to default 1252 ANSI - Latin I. Now I have been asked to output the flat file in UTF-8 format. I have changed the code page to 65001 UTF-8 but the package will not run. I got the following message:

the code page on input column COLUMN_NAME (184)is 1252 and is required
to be 65001

I have searched around and i have read that i need to change the column data type from VARCHAR to NVARCHAR!! Is this the solution?

 

Is there is any other option? Thanks.


[OLE DB Destination [162]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005

Hey there,

 I am trying to export data from excel to SQL. I have a SSIS package that I have used in the past for this exact process, problem is, is that I haven't run this process since I have gotten my new pc and the file was not configured from the source safe I got it from.  

How this process is supposed to work is:

Setup the import file to use the current file I'm working with

In the control flow diagram there is a step called "import temp data into real table" first time running this I must disable that

The ssis package creates a temp table named zzzUserCustomerCatalog, imports the records from the excel workbook worksheet named “Sheet1”. Then queries to match the following “names” with appropriate id’s

Then I re-enable  import temp data into real table and run again.

Once those id’s have been found/updated then it takes the records from the temp table and copies them to the live table 

If successful it will email the defined email address stating it was successful.

If the copy from temp to live table fails it will delete the imported records from the temp table then save the records that weren’t imported back to the excel file in the worksheet named “Not Imported” then when email the defined email address stating it failed.

I had problems with the temp table, but was able to fix that by setting the Run64BitRuntime property to false. Now I am having troubles when I enable the step. The Errors I get are:

[OLE DB Destination [162]] 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: "Unspecified error".

[OLE DB Destination [162]] Error: There was an error with input column "ShipTo" (289) on input "OLE DB Destination Input" (175). The column status returned was: "The value violated the integrity constraints for the column.".

[OLE DB Destination [162]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (175)" failed because error code 0xC020907D occurred, and the error row disposition on "input "OLE DB Destination Input" (175)" 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.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (162) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (175). 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.

I did not create this ssis package and the developer who did is no longer here, so I will do my best to provide you with any info you may need to help me in figuring this out.

Thanks for any help in solving this problem.



Integration Services in SQL Server 2012 not showing up in VS2010

Everyone,

     I have SQL Server 2008R2 and SQL Server 2012 (instanced) installed on my laptop which is windows 7 64bit. I have installed SQL Server 2012 last and already had VS 2010 installed. I installed all components with SQL Server 2012 however, when I open up VS 2010 I do not see the BI Templates. Has anyone else ran into this? I was wondering if you had any idea on how to get the BI Project Templates to show up in VS 2010. 

Thanks,

Dex

SSIS Sample Project Documentation

Error File - SSIS

I have directed errors of reading from a source file to a .txt file.  I see some rows logged into the .txt file.  though by looking at the file, it has rows containing commas, and an error code and column. it does not tell me what rows and the contents in the error rows.  It is hard to debug the rows using the file.  See below.  how do I find out the exact rows of errors? thanks

it looks like:

 

,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54
,,,,,,,,,,,,,,,,,,,,,,,-1071607675,54

Viewing all 24688 articles
Browse latest View live


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