Need Help Regarding OLEDB. RetainSameConnection.

Apr 16, 2008

Hi,

I'm having two For Each Loops, which allow me to dynamically connect to a list of servers.

ForEach 1

ForEach2

DataFlow.



Now for ForEach2 i want to OLEDB Connection to RetainSameConnection, however i want it to Disconnect-Reconnect while looping in ForEach1.

How can i do that?

Can i write a script which will can access OLEDB connection object ??


Thanks
Sandeep.

View 11 Replies


ADVERTISEMENT

RetainSameConnection Bug Or Feature???

Aug 31, 2006

We desperately require the RetainSameConnection to be set to True on our ADO.NET - ODBC connection manager. Unfortunately RetainSameConnection always defaults back to False when you open the package.



* Is RetainSameConnection supposed to work for the ADO.NET - ODBC combination?



* Is it a bug that it defaults back to false for the ADO.NET - ODBC combination?




Quick responses much appreciated!

Kristian


Details:

SSIS with SP1

ConnectionManagerType:
ADO.NET:System.Data.Odbc.OdbcConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Provider:
.NET ProvidersODBC Data Provider

Connection String:
Driver={iSeries Access ODBC Driver};system=AS400;dbq=GAPFILES;dftpkglib=QGPL;languageid=ENU;pkg=QGPL/DEFAULT(IBM),2,0,1,0,512;

View 2 Replies View Related

RetainSameConnection And Child Package

Apr 11, 2008



Hi all,

I am a little bit confused about Transactions, the connection string parameter "RetainSameConnection" and the execution of a child package...

I have a parent package, which should execute some child packages in a loop depending on a sql dataset. doing this using variables works fine. I am setting the variables for Source and Destination also and I am having a connection manager for source and destination in the parent package.

The child packages alos have source and destination connection managers depending on variables coming from the parent package.

I am forced to use transactions on the destination, to be able to rollback if an error occurs.

When I initiate the transaction in my parent, call the child package with its own connection manager depending on the variables coming from the parent package will it be the same Transaction in my child and will it be possible to commit the transaction?

If this is not a proper way to do it is there another way to handle this?

Any help appriciated!
Thanks in advice"

cheers
Markus

View 1 Replies View Related

Question About The Use Of Temp Tables/RetainSameConnection

Nov 30, 2007

My package creates a set of #temp tables in Execute SQL Tasks that are then used for lookups in a data flow. All of the #temp tables are created using the same OLE DB connection manager, and all of the lookup transforms are using this same connection manager. I have set RetainSameConnection=true for the connection manager.

However, when the data flow task is caching the lookup rows in pre-execute, it fails on one of the #temp tables. The error message I receive is:

Invalid object name '#TempTableName'

When I watch what's happing in SQL Server Profiler, I can see that all of the lookup tables are being created within the same process. The caching is likewise performed by this same process, EXCEPT for the caching of the #TempTableName table. For some reason, when the caching of this lookup table is stating, I see a new login and the caching SQL is executed on this new login, which of course does not have access to the temp table created in the previous connection.

Does anyone know why the connection manager would be connecting a second time for this lookup?

Thanks,

Greg

View 10 Replies View Related

Using RetainSameConnection During Distributed Transaction In SSIS ForEach Container

Aug 15, 2006

Hi -

I've seen variations on this question in this forum, but none of the suggestions work for me, so any ideas would be greatly appreciated!

I have a SSIS package whose function is to monitor a directory for flat files and distribute the information in these files into a SQL 2005 DB for further processing later. I've configured Transactions for the package as serializable and supported, and I have a ForEach container set to serializable and required. All SQL and Data Flow tasks take place within this container. I have a single Connection Manager to pull in the flat input file, and another for the connection to the SQL DB. This setup will function, and roll back if necessary, but I take a huge hit on the continual establishment of connections to the DB. If I set the retainsameconnection property on the SQL DB Connection manager, I get an error when executing my first Data Flow task to move data from the flat input file to working tables within the DB: 0xC001A004 - Incompatible transaction context was specified for a retained connection. If I turn off Transaction support, the retainsameconnection property works as expected.

I've been running Profiler Traces, and can verify that no connection has been established to the SQL Server prior to execution of this task, so it seems like the context should be OK. I would welcome any feedback, suggestions or alternatives.

Thanks,

Jim SweeneySLC

View 2 Replies View Related

Truncate Table Statement And Transactions(using RetainSameConnection Property Of OledbDestinationConnection)

May 22, 2007

Hi



Can we have truncate table with in a transaction using SSIS package.

here is the scenario.

OledbDestinationConnection 's "retainsameconnection" property has been set to true.

I have added a Execute SQL Query task to "begin transaction".

second Execute SQL Query task to truncate a table. say table "A" . truncate table a(table does not exists in the database).

third to rollback a transactions if the second task fails.



Now when I am running my package, I am getting an error saying

The Rollback transaction has no corresponding "Begin transaction".

However if , I truncate a correct table , which exists in database, then all steps gets executed successfully.



And the truncaion also got rollbacked.Same goes with "Commit transaction" in the third steps(if a replace Rollback with Commit).



I don't understand this strange behavior.



Any clue is highly appreciated.



My real problem is I want to rollback a transaction, if Truncate table step fails.

View 14 Replies View Related

Error When An OLEDB Source Points To An OLEDB Destination.

Oct 10, 2006

Hi all,

I got an error when i do an OLE db Source pointing to an sql 2000 database and executing a sql query inside the OLE Source. The ole source will point to an OLE DB destination which is an sql 2005 database.

But i got the below error:

Error at Data Flow Task [OLE DB Destination [245]]: the column firstname cannot be processed because more than one code page (936 and 1252) are specified for it.

Error at Data Flow Task [DTS.Pipeline]: "component "OLE DB destination" (245)" failed validation and returned validation status "VS_ISBROKEN".

Error at Data Flow Task [DTS.Pipeline]: One or more component failed validation.

Error at Data Flow TaSK: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)



View 5 Replies View Related

Jet OLEDB

Feb 13, 2008

I'am sure this is an old quesiton but I've spent the whole morning trying to find the answer

What are the string functions suported by Jet in OLEDB queries? In particular, I am desperately looking for a replace function to remove thousands separators from imported text file

View 4 Replies View Related

SqlClient Vs. OleDb

Mar 6, 2005

Hi.

Somewhere around I find a message, which affirmed that for perfonmance it is better to use OleDb for SQL 6.5. Is this true?.

Then el SqlClient, only have perfomance in SQL 2000?

View 1 Replies View Related

OLEDB Provider

Jul 25, 2000

Hi,

Does anyone know a good OLEDB provider for Oracle 7 other than the one of Microsoft and Oracle.

Thank

Martin

View 1 Replies View Related

ODBC Vs OLEDB

Aug 8, 2002

Is anyone using OLEDB instead of ODBC? If so why did you choose to use OLEDB vs ODBC? Our application is written in VB and we have a developer that believes switching to OLEDB from ODBC would be beneficial to us. Please give any information that you have! Thanks.

View 1 Replies View Related

OLEDB Providers

Jul 7, 2004

Hi,

I have a DTS package which is using OLEBD provider for Oracle, it was working fine. I tried to open this package and I got this error message "There was a problem retrieving the list of OLE DB Providers"

I tried to intall MDAC8.2, it didn't help, should I reinstall SQL Server?

Thanks!

View 4 Replies View Related

OLEDB Providers

Nov 19, 2004

can any one please give a technical defenition for OLEDB providers

View 1 Replies View Related

ADO Using ODBC Vs. OLEDB

Jan 13, 2004

I am working on a large ASP application(s) which uses SQL Server 2K on the back end, ADO 2.7 for Data Access. The current connection strings are setup to use older ODBC drivers. I wanted to change them to OLEDB for performance gains and better support in the future.

The problem encountered is that once the driver is changed the pages become riddled with errors. There are many piece of ADO code that are supported using the new driver. Many are cursor issues or code dealing with identity columns.

Has anyone else gone through this process?

Is there a comprehensive listing of those methods that are not compliant between these two drivers?

Any input would be appreciated....Thanks

View 5 Replies View Related

Update && Oledb

Feb 26, 2004

Dear gurus,

My problem: I have developed an application based on sqloledb to access a SQLserver application.

One of the operations is to update certain column of a certain table. This works fine. But with a specific catalog (database) of a specific customer the update hangs for ever on the execution of that sql sentence. Size of the mdb file is around 1 Gb.
The funny thing is that if I execute the same sql sentence (same record and same catalog) from the Query Analyzer ( that I belive it uses odbc ) the operation is done.
The update sql sentence does an update on a non-indexed column with the criteria ( where ...) using a index column (non-clustered)
I have tried the sqlmaint to rebuild indexes and check integrity and no special error report is given.

Also another funny behaviour is that if I stop and I restart sqlserver, the update of that specific record fails, but it continues of the following records to be updated.

This is not executed inside a transaction. Candidate records to be updated are stored in memory (maximum 1000), and one by one are updated.

Does anyone know an specific tool to integrity or to monitor what is going on?
I have tried the profiler , what can I monitor to detect this lock?

Best regards,
Jose

View 1 Replies View Related

SQL ODBC And SQL OLEDB

Feb 6, 2007

I want to know the difference between SQL ODBC and SQL OLEDB.

View 1 Replies View Related

ODBC And OLEDB

Feb 6, 2007

What are ODBC and OLEDB
1)libraries or
2)standards

View 4 Replies View Related

OLEDB Provider For SAS

Jun 6, 2007

Is there an OLEDB provider for SAS? Does anyone know where I could get one? Does it ship with the SAS installation? Thanks!

View 1 Replies View Related

Is It A Bug In SSCE OLEDB ?

May 18, 2007

i'm use this code ,in SQL2005 std and ACCESS database, it work

but if i use SSCE ,it's throw a OleDbException in ExecuteScalar()



Exception : OleDbException





0x80040E30L


DB_E_BADTYPENAME






Code Snippet

OleDbConnection od = new OleDbConnection("Provider=Microsoft.SQLSERVER.MOBILE.OLEDB.3.0;Data Source=db.sdf;SSCE:Database Password=");

od.Open();

OleDbCommand og = new OleDbCommand("INSERT INTO [bills] ([billno],[checkouttime],[finalprice],[handle],[ischeckout],[memo],[paymode],[trick]) VALUES (@billno,@checkouttime,@finalprice,@handle,@ischeckout,@memo,@paymode,@trick)", od);

og.Parameters.Add("@billno", OleDbType.VarWChar).Value = "2007051800000000";
og.Parameters.Add("@checkouttime",OleDbType.DBTimeStamp).Value="2007-5-18 11:55:40";
og.Parameters.Add("@finalprice", OleDbType.Single).Value = 0.0;
og.Parameters.Add("@handle", OleDbType.VarWChar).Value = "admin";
og.Parameters.Add("@ischeckout", OleDbType.SmallInt).Value = 0;
og.Parameters.Add("@memo", OleDbType.VarWChar).Value = "";
og.Parameters.Add("@paymode", OleDbType.VarWChar).Value = "";
og.Parameters.Add("@trick", OleDbType.VarWChar).Value = "";

og.ExecuteScalar();

od.Close();







why the same code is not work? i'm find all MSDN ,but there is no answer



Who can help me,Thanks

View 7 Replies View Related

OLEDB For DM Express!!!

Apr 4, 2007

I am pursuing a course on Data Warehousing & Data Mining as part of my Post-Graduation degree. I got an introduction to Microsoft's OLEDB for DM as part of the course, which got me interested for experiencing it hands-on.

I developed a traditional Database application for my college's library using the .NET 2.0 framework, which is running fine.

Now, I want to see the power of Data Mining in general & OLEDB for DM in particular, to help me mine information & patterns from the mostly transactional data generated by the library daily, like the rush hours, the average issue duration for a book, books that are issued more frequently, books that are issued to students from multiple streams etc. etc.

Now, I have heard MSOLAP provider, ADOMD data provider, SQL Server Analytical Services, OLEDB for DM libraries etc. are required for Data Mining.
Now, what exactly is each of these tools? Are they independent servers for DW & DM like SQL Server for DBs, or they are libraries for extending SQL Server itself?
Moreover, are separate libraries required for OLAP & Mining?

I have SQL Server Express Edition. I believe that they are extensions for SQL Server. So, will they work with Express Edition? If not, are their Express Editions available (like OLEDB for DM Express!!!!) that are compatible with SQL Server Express.

Thanx in advance if you take time to answer so many questions...

View 4 Replies View Related

Version Of OLEDB / ADO

Feb 27, 2006

I want to use SQL 2005 to import data from Visual Foxpro 6.0 free table / database into SQL 2005. Whethter I should install the latest Microsoft OLE DB Provider for Visual FoxPro 9.0 SP1 or previous mdac ???

Please advice and many thanks.

View 1 Replies View Related

OLEDB Access PB

Jul 6, 2007

Hi

I definite a source OLEDB MS Access and my fields of the type €œText€? are seen in type of field DT_WSTR (Unicode) instead of DT_STR.

I do not include/understand why? and like then, I must integrate them in fields varchar and not nVarchar, I do not find the solution?

thank for your solution

View 2 Replies View Related

OLEDB Bookmarks

Sep 4, 2007

I generated an ATL OLEDB Consumer with the VS 2005 wizard. The table is very simple and is located on my local SQL Server. It has two varchar columns and no keys or constraints. I can modify, insert and delete rows with no problem.

Now I want to use bookmarks. I added the following to the accessor class:

1. CBookmark<4> m_bookmark; // member variable
2. pPropSet->AddProperty(DBPROP_IRowsetLocate, true); // rowset property
3. BOOKMARK_ENTRY(m_bookmark) // column map entry

Now I can delete but I can no longer modify or insert. The error is DB_E_ERRORSOCCURED and the status of the two columns after a setdata or insert is DBSTATUS_E_UNAVAILABLE. This is the only error information available.


When I comment out the bookmark entry from the column map, I can modify, insert and delete again. The problem appears to be in how IRowsetChange handles bookmarks. I tried adding bookmarks to other tables using the above 3 steps and they also refuse to modify or insert with bookmarks enabled.

The bookmarks appear to be correct, as I can do a successful MoveToBookmark for any row in the table.

My environment: Windows XP SP2, VC++ 2005, SQL Server 2005 Express, WTL 8.0

Any ideas?

View 3 Replies View Related

How To Verify A DB Via OLEDB?

Jul 30, 2007

I cannot find any OLE DB reference material for how to perform a "Verify" DB as advertised in the Documentation for SQL Server Mobile Edition.

The docs have a sample in C#, but nothing for OLD DB in C++.

Does anyone know how to do this?

View 1 Replies View Related

Oledb For Oracle

Jan 24, 2007

hi,

can i use the acquireconnection method to an oledb for oracle connection manager?

View 1 Replies View Related

Issue Oledb

Mar 26, 2007

I use oledb to insert the data to respective tables..

then i have a look up where i check for unique field of the data i inserted which shows up with an error No matter what i do...

View 12 Replies View Related

SqlClient Vs OLEDb

Feb 29, 2008

I am porting a VB.NET application using Access as its backend to use SQL Express as its new backend.
The application uses .NET 2.0 OleDbProvider to connect to the database.

The porting of the database itself to Sql Express is nearly complete, now I need to modify the application.
So, does it really make sense to modify it to use Native Sql Client instead of OleDb in terms of effort & benefits???

Moreover, if I continue using OleDb, would I need to make such small changes to embedded Sql statements like using single quotes around strings or dates instead of double quotes or pound symbols that are currently being used for String or date data respectively???

View 4 Replies View Related

Oledb Driver

May 12, 2008


Where can I get "sybase ASE oledb driver" ? I tried to get the source data from Sybase using SSIS. But I don't see an option for "sybase OLEDB driver " under the connection manager. I tried to google and went to sybase.com but still couldn't find it. could someone help?

View 3 Replies View Related

Oledb Command

Mar 20, 2007



I am transfering large data.

I use oledb command to insert and update as i need to make some modifications to incoming data.I do my modifications in the procedure.

But the command does not insert as the data is huge at one shot.

if i try to send small data it works fine

Its shows warning(yellow color)

How can i achive inserting huge data effeciently please help.

View 4 Replies View Related

MICROSOFT JET OLEDB 4.0????

May 8, 2006

hi i have another question.. is this connection provider supported on servers running under 64 bits???? if not? which provider should i use instead??? is there any service pack or upgrades for this ???


i think this is the problem running my job.. there's no other option left.. it is not permissions.. the path of the connection manager exists, the file destination does exist as well.. the curious thing is that my dts runs fine from SSIS but fails using the job..

do i need to have installed excel in my server to do this or any other component?????



View 6 Replies View Related

OLEDB, ODBC Connectivity To DB2 400

Jan 12, 1999

We are trying to extract data from DB2 on an as400 machine. Can we simply use SQL statements to extract the proper data that we need from as400 using the SQL Server 7.0 functionality? How do we do that?

We think this needs to be done via DTS(Data Transformation Service).

Thanks in advance.
Shaikh & Sande.

View 1 Replies View Related

Sybase Oledb Configuration

May 22, 2008

Hi,

i'm a little bit in trouble. before i have syabase 12.x and
successfully linked our sybase database to sqlserver 2k and
2k5. when our company upgraded sybase to 15.x. i followed
the document
http://www.sybase.com/content/1029118/1029118.doc in linking
sybase 12.5 to sqlserver. but when i install the sybase
15.x openclient i can find the SYBASE OLEDB CONFIGURATION.
where i can find it?? or sybase change the SYBASE OLEDB
CONFIGURATION????

please help...


tengtium

View 1 Replies View Related

Passing NT Authentication Thru OLEDB

Jan 2, 2004

I've got an intranet page that connects to my SQL server, and I'm trying to force it to use NT Authentication when it does.

Already the Intranet uses NT Challenge-and-response authentication so that when I go to an intranet page I have to login. But then when I go to the page that connects to SQL, I get:

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user 'IUSR_COMPUTERNAME'.

Why isn't it passing MY user id? Why is it trying to use the anonymous IUSR id?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved