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

how to use substring function to get the values

$
0
0

Hello All,

Could you please tell me how to get the value after 'between', before 'and'  i.e., BOKSAM KAND LAMOG  also after 'and' and before '('
want to get the bold values (between, and are case senstive)

for example MatterColumn   has value  "Collapsed Statue: Matured Life # 007812 between BOKSAM KAND LAMOG and Bill APPER SRIM (Goper)"

right now i am doing this once is working and another one is saying issue with length character in substring

rtrim (ltrim (SUBSTRING(MatterColumn,CHARINDEX('between',MatterColumn  COLLATE Latin1_General_CS_AI)+8, ( Charindex(' and ', MatterColumn  COLLATE Latin1_General_CS_AI,CHARINDEX('between',MatterColumn  COLLATE Latin1_General_CS_AI)+8) - CHARINDEX('between',MatterColumn  COLLATE Latin1_General_CS_AI)-8 )  ) )) Part1,

rtrim (ltrim (SUBSTRING(MatterColumn,CHARINDEX(' and ',MatterColumn  COLLATE Latin1_General_CS_AI)+5, ( Charindex(' (', MatterColumn  COLLATE Latin1_General_CS_AI,CHARINDEX(' and ',MatterColumn  COLLATE Latin1_General_CS_AI)+8) - CHARINDEX(' and ',MatterColumn  COLLATE Latin1_General_CS_AI)-5 )  ) )) Part2

please help me

thanks in advance

asitti


Package

$
0
0
Hi how to pass values from parent package to child package in ssis

N.suresh

Create SSIS package - SQL Server 2008 R2

$
0
0

How can I reate an SSIS package to copy all logins, jobs, linked servers, and custom error messages, etc. ?

Can I do that from Sql Server management studio?

Need sample please.

Thanks :)

how send data from excel to database using ssis package if i have 2 or more sheets in single excel file?

$
0
0

how send data from excel to database using ssis package if i have 2 or more sheets in single excel file?

regards

samba

adventureWorks for SIIS.

Package Validation Error- failed validation and returned error code 0xC004800B

$
0
0
TITLE: Package Validation Error
------------------------------

Package Validation Error

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

Error at dfImportData [SSIS.Pipeline]: Cannot find the connection manager with ID "{D9F5E117-B143-40BA-8FB6-7DC8F3095382}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "runtime connection "OleDbConnection" (8)" in the connection manager collection of "component "Excel Source" (1)". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.

Error at dfImportData [SSIS.Pipeline]: component "Excel Source" (1) failed validation and returned error code 0xC004800B.

Error at dfImportData [SSIS.Pipeline]: One or more component failed validation.

Error at dfImportData: There were errors during task validation.

 (Microsoft.DataTransformationServices.VsIntegration)

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

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

Creating, altering or resaving a table in Execute Sql Task

$
0
0

Hi,

   Relatively new to SSIS. I have a table that I've created in a data flow. Back out in the control flow, after the table has been created, I am trying to add two fields to this table which will hold the first and last name for a record since the name in this table has one field with both first and last names; I need to split them. All of the attempts below were done in an Execute Sql task.

   First I tried to alter the table using an alter table command in the Execute Sql Task. I used this to add the two fields. Then I did an update statement with the split of the single name field into the new fields. I got an "SqlCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size" error.

  I then tried to save the table to a temp table (one pound sign) and then alter the temp table to have the two new fields. Then I tried to update the fields. I got the same "SqlCommand.Prepare" error as above.

Then I tried to create a view which selected all the fields from my table and, in the select statement for the view, I add two substring commands (as fields in the select) to split the single name, first extracting the first name and then extracting the second name. When I tried to create the view I was told that I had a syntax error near the word "view". I moved the create command to SSMS and it ran fine:

create view dbo.MyView

as
select *, SUBSTRING(EmployeeName, 1, CHARINDEX(' ', EmployeeName) - 1) as FirstName,
SUBSTRING(EmployeeName, CHARINDEX(' ', EmployeeName) + 1, LEN(EmployeeName))  as Lastname
FROM dbo.MyTable

;
GO

Any Advice would be appreciated.

Thanks,

Fig000


Fig000

I have a project with more than one package,How to deploy single package?

$
0
0

Hi,

I have a project with more than one package,How to deploy single package to production environment  in SSIS projects?

thanks and regards

samba



sql - fibonacci series

$
0
0

Hi SQL gurus,

i was just trying to write a query for the fibonacci series ......i want to try out this with the lastest features (functions) provided in sql 2012.

Any suggestions ?

running value

$
0
0
Hi what is running value in ssrs.give me examples...

N.suresh

duplicates

$
0
0
Hi how to eliminate duplicates in the table...

N.suresh

sql - fibonacci series

$
0
0

Hi SQL gurus,

i was just trying to write a query for the fibonacci series ......i want to try out this with the lastest features (functions) provided in sql 2012.

Any suggestions ?

SSIS

$
0
0
Hi what is for each file enumarator,ado enumarator,ado.net enumarator .give me clarification each one...

N.suresh

SCD

$
0
0
HI what is scd ..give me Date mechanisam with examples....

N.suresh

Transaction

$
0
0
Hi what is transaction ...how to use transactions in ssis level.and how to roll back components..

N.suresh


SSIS

$
0
0
Hi what is environmental variable in package configuration....give me where it is used...

N.suresh

SSIS

$
0
0
Hi i have flat file that will be loaded to database with old records are coming from file will be updated and new records will be inserted to table.what components we are used Here...

N.suresh

xml config settings deploy on machine change

$
0
0


I created new package company_master in folder 'C:\Shraj\Documents\Assignment\Tasks 12 Nov\Company_Master_Config.dtsConfig' and setup the config string as below. 

I open up the Company_Master_Config.dtsConfig in the configuration string folder to change the file path to "D\Deploy"

when i now reopen the package, i am not able to see the changes made in xml.

I want to change the folder path and also the configuration string values by xml as i am planning to move them in difference machine and i will not have the same folders path in those machines.

I looked in many forms and i am not able to get idea how to do this :( please help me


ShanmugaRaj

Describe the differences between the pessimistic SERIALIZABLE model and the optimistic SNAPSHOT model in terms of transactional isolation

$
0
0

 Describe the differences between the pessimistic SERIALIZABLE model and the optimistic SNAPSHOT model in terms of transactional isolation (i.e., not the concurrency differences, but instead how the exact same transactional modifications may result in different final outcomes).

plz answer this question

SSIS - 64 Bit - Hundreds/Thousands of connections

Viewing all 24688 articles
Browse latest View live


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