Showing posts with label import. Show all posts
Showing posts with label import. Show all posts

Friday, March 30, 2012

IBM Informix Ole Db Provider

Hello,

I'm getting the below errors when using sql server's data import wizard. Please Note: My test connection was successful and the error occurs when I click the "Next" button after closing the properties window. For Security reasons I've filled the User Id and DataSource with a bogus account, database, and server i.e. xxxx. Notice the password is blank?... Is that normal? I'm in a jam and appreciate your help.

Thanks,

Matt

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

Cannot get the supported data types from the database connection "Provider=Ifxoledbc;Password=;Persist Security Info=True;User ID=xxx;Data Source=xxx@.xxxx". (SQL Server Import and Export Wizard)

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

IErrorInfo.GetDescription failed with E_NOINTERFACE(0x80004002).
IErrorInfo.GetDescription failed with E_NOINTERFACE(0x80004002). (System.Data)


Program Location:

at System.Data.OleDb.OleDbConnectionInternal.GetSchemaRowset(Guid schema, Object[] restrictions)
at System.Data.OleDb.OleDbConnection.GetOleDbSchemaTable(Guid schema, Object[] restrictions)
at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.LoadTypeData(OleDbConnection myDestConnection)
at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.CacheDataSourceInfo(IDbConnection myConnection)

Moving to the "SQL Server Integration Services", which deals with data transformation issues.

|||

This means your OLE DB provider does not publish Provider_Types schema. The wizard relies on this schema to map data types between heterogeneous data sources.

You may want to try to build your SSIS package manually using OLE DB Source to access your Informix database.

Thanks.

|||

Hello,

Does your solution apply to the linked server as well? Any chance you know if SQL Server 2005 allows setting up an informix 7.3 db as a Linked Server? I now can connect with ADO.NET 2.0 using the IBM.Data.Informix namespace but have not been able to find any documentation on setting up connection through a linked server. FYI, I now have to correct IBM SDKs installed (2.9).

Thanks,

Matt

|||

I am having the same problem. Is there a way to get SQL server 2005 to talk to the Informix 7.3 engine? I get the following error:

Msg 7399, Level 16, State 1, Line 1

The OLE DB provider "Ifxoledbc" for linked server "MINNYME2" reported an error. The provider did not give any information about the error.

Msg 7303, Level 16, State 1, Line 1

Cannot initialize the data source object of OLE DB provider "Ifxoledbc" for linked server "MINNYME2".

|||

You are in luck. I'm currently still looking into this but have done a significant grind and configured the connection with ODBC. How are you connecting? With the Informix OLEDB? I'm currently waiting for the AIX admin to set something up on the server. He has to run a few scripts to set up the OLEDB properly. I found a page on IBM's site with significant documentation. Please see below. I believe I know what is wrong with my OLEDB connection, it is the set-up. I have a working ODBC now and can help you with that if need be.

http://www-306.ibm.com/software/data/informix/pubs/library/csdk_29.html

Regards,

Matt

|||

Yes, I am connecting using Informix OLE DB. I tried create a linked server with SQL Server 2005 with the IBM Informix OLE DB Provider. Here is my connection info. Did specify something wrong? It seems you abandoned this approach. Should I do the same and try to link the server with ODBC?

/****** Object: LinkedServer [MINNYME5] Script Date: 05/02/2006 11:10:06 ******/

EXEC master.dbo.sp_addlinkedserver @.server = N'MINNYME5', @.srvproduct=N'Informix-CLI 2.9 (32 bit)', @.provider=N'Ifxoledbc', @.datasrc=N'bsco@.becton_tcp', @.provstr=N'server=bsco@.becton_tcp;database=bsco;uid=informix;password=tewwetca'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'collation compatible', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'data access', @.optvalue=N'true'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'dist', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'pub', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'rpc', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'rpc out', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'sub', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'connect timeout', @.optvalue=N'0'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'collation name', @.optvalue=null

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'lazy schema validation', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'query timeout', @.optvalue=N'0'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'use remote collation', @.optvalue=N'true'

|||

Here is the code to set up the ODBC linked server. Please read the comments and notes provided throughout. I can help you further if need be. Just so we are on the same page, I'm using

OS: Windows XP Pro.

DotNet Framework: .NET SDK 1.1

IBM software development kit version: IBM CSDK 2.9

Good Luck!

EXEC sp_addlinkedserver

@.server = 'yourServer', -- defined in SetNet32 on tab 'Server information', -- field 'Informix Server'

@.provider = 'MSDASQL', -- DO NOT CHANGE !

@.datasrc = 'yourOdbcConnectionName', -- name of the ODBC connection defined in your system. (you must configure this.)

@.srvproduct = 'Informix-CLI 3.30 (32 bit)',

@.provstr = 'Host=yourHost;Server=yourServer;Service=yourService;Protocol=olsoctcp;Database=yourDB;UID=yourUIDToConnectToAIX;PWD=yourPWD'

NOTE: I'm not 100% sure if a login is needed but i created one.

EXEC sp_addlinkedsrvlogin 'yourLinkedServer', 'false', 'yourWindowsXPUserID', 'yourUIDToConnectToAIX', 'yourPassword'

READ-You need to set up permission for the UserId connecting to the AIX server in the AIX server. I had a AIX admin set me up considering I know little about IBM products.

Run the following query from SQL SERVER to query an ODBC linked server:

SELECT * FROM OPENQUERY(yourLinkedServer, 'select * from yourTable')

|||i done that , but cant insert into linked server tables and this error happens
OLE DB provider 'MSDASQL' reported an error. The provider reported an unexpected catastrophic failure.
[OLE/DB provider returned message: Query cannot be updated because the FROM clause is not a single simple table name.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowsetChange::InsertRow returned 0x8000ffff: The provider reported an unexpected catastrophic failure.].
do u know why?

|||

Although I have never tried inserting a row into an Informix Linked Server, I'd assume that it is not possible considering I've seen similar results with other data sources.

|||thank you for replying
also i cant set linked server with oledb informix
when setup linked server with odbc can update, delete and select from linked table but only cant insert into the table

IBM Informix Ole Db Provider

Hello,

I'm getting the below errors when using sql server's data import wizard. Please Note: My test connection was successful and the error occurs when I click the "Next" button after closing the properties window. For Security reasons I've filled the User Id and DataSource with a bogus account, database, and server i.e. xxxx. Notice the password is blank?... Is that normal? I'm in a jam and appreciate your help.

Thanks,

Matt

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

Cannot get the supported data types from the database connection "Provider=Ifxoledbc;Password=;Persist Security Info=True;User ID=xxx;Data Source=xxx@.xxxx". (SQL Server Import and Export Wizard)

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

IErrorInfo.GetDescription failed with E_NOINTERFACE(0x80004002).
IErrorInfo.GetDescription failed with E_NOINTERFACE(0x80004002). (System.Data)


Program Location:

at System.Data.OleDb.OleDbConnectionInternal.GetSchemaRowset(Guid schema, Object[] restrictions)
at System.Data.OleDb.OleDbConnection.GetOleDbSchemaTable(Guid schema, Object[] restrictions)
at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.LoadTypeData(OleDbConnection myDestConnection)
at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.CacheDataSourceInfo(IDbConnection myConnection)

Moving to the "SQL Server Integration Services", which deals with data transformation issues.

|||

This means your OLE DB provider does not publish Provider_Types schema. The wizard relies on this schema to map data types between heterogeneous data sources.

You may want to try to build your SSIS package manually using OLE DB Source to access your Informix database.

Thanks.

|||

Hello,

Does your solution apply to the linked server as well? Any chance you know if SQL Server 2005 allows setting up an informix 7.3 db as a Linked Server? I now can connect with ADO.NET 2.0 using the IBM.Data.Informix namespace but have not been able to find any documentation on setting up connection through a linked server. FYI, I now have to correct IBM SDKs installed (2.9).

Thanks,

Matt

|||

I am having the same problem. Is there a way to get SQL server 2005 to talk to the Informix 7.3 engine? I get the following error:

Msg 7399, Level 16, State 1, Line 1

The OLE DB provider "Ifxoledbc" for linked server "MINNYME2" reported an error. The provider did not give any information about the error.

Msg 7303, Level 16, State 1, Line 1

Cannot initialize the data source object of OLE DB provider "Ifxoledbc" for linked server "MINNYME2".

|||

You are in luck. I'm currently still looking into this but have done a significant grind and configured the connection with ODBC. How are you connecting? With the Informix OLEDB? I'm currently waiting for the AIX admin to set something up on the server. He has to run a few scripts to set up the OLEDB properly. I found a page on IBM's site with significant documentation. Please see below. I believe I know what is wrong with my OLEDB connection, it is the set-up. I have a working ODBC now and can help you with that if need be.

http://www-306.ibm.com/software/data/informix/pubs/library/csdk_29.html

Regards,

Matt

|||

Yes, I am connecting using Informix OLE DB. I tried create a linked server with SQL Server 2005 with the IBM Informix OLE DB Provider. Here is my connection info. Did specify something wrong? It seems you abandoned this approach. Should I do the same and try to link the server with ODBC?

/****** Object: LinkedServer [MINNYME5] Script Date: 05/02/2006 11:10:06 ******/

EXEC master.dbo.sp_addlinkedserver @.server = N'MINNYME5', @.srvproduct=N'Informix-CLI 2.9 (32 bit)', @.provider=N'Ifxoledbc', @.datasrc=N'bsco@.becton_tcp', @.provstr=N'server=bsco@.becton_tcp;database=bsco;uid=informix;password=tewwetca'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'collation compatible', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'data access', @.optvalue=N'true'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'dist', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'pub', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'rpc', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'rpc out', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'sub', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'connect timeout', @.optvalue=N'0'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'collation name', @.optvalue=null

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'lazy schema validation', @.optvalue=N'false'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'query timeout', @.optvalue=N'0'

GO

EXEC master.dbo.sp_serveroption @.server=N'MINNYME5', @.optname=N'use remote collation', @.optvalue=N'true'

|||

Here is the code to set up the ODBC linked server. Please read the comments and notes provided throughout. I can help you further if need be. Just so we are on the same page, I'm using

OS: Windows XP Pro.

DotNet Framework: .NET SDK 1.1

IBM software development kit version: IBM CSDK 2.9

Good Luck!

EXEC sp_addlinkedserver

@.server = 'yourServer', -- defined in SetNet32 on tab 'Server information', -- field 'Informix Server'

@.provider = 'MSDASQL', -- DO NOT CHANGE !

@.datasrc = 'yourOdbcConnectionName', -- name of the ODBC connection defined in your system. (you must configure this.)

@.srvproduct = 'Informix-CLI 3.30 (32 bit)',

@.provstr = 'Host=yourHost;Server=yourServer;Service=yourService;Protocol=olsoctcp;Database=yourDB;UID=yourUIDToConnectToAIX;PWD=yourPWD'

NOTE: I'm not 100% sure if a login is needed but i created one.

EXEC sp_addlinkedsrvlogin 'yourLinkedServer', 'false', 'yourWindowsXPUserID', 'yourUIDToConnectToAIX', 'yourPassword'

READ-You need to set up permission for the UserId connecting to the AIX server in the AIX server. I had a AIX admin set me up considering I know little about IBM products.

Run the following query from SQL SERVER to query an ODBC linked server:

SELECT * FROM OPENQUERY(yourLinkedServer, 'select * from yourTable')

|||i done that , but cant insert into linked server tables and this error happens
OLE DB provider 'MSDASQL' reported an error. The provider reported an unexpected catastrophic failure.
[OLE/DB provider returned message: Query cannot be updated because the FROM clause is not a single simple table name.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowsetChange::InsertRow returned 0x8000ffff: The provider reported an unexpected catastrophic failure.].
do u know why?

|||

Although I have never tried inserting a row into an Informix Linked Server, I'd assume that it is not possible considering I've seen similar results with other data sources.

|||thank you for replying
also i cant set linked server with oledb informix
when setup linked server with odbc can update, delete and select from linked table but only cant insert into the table

IBM DB2 UDB for iSeries .NET data provider

Hello:
Is it possible to import "IBM DB2 UDB for iSeries .NET data provider" into
Reporting Services 2005? I tried to do it but was unsuccessful. I'm
attempting to access data on our IBM i-Series(AS/400) and I need to pass
parameters in my datasets. I appreciate any assistance you can give me.
Best regardsYou can use the OleDB provider instead of the .NET for DB2 and/or DB/400.
The OleDB driver should come with your iSeries Access installer. The IBM
DB2 UDB provider is not specific to DB/400 though whereas the one provided
with iSeries Access is. I've encounter a few oddities when using the
regular DB2 driver pointing to DB/400. You can also try the Microsoft DB2
OleDB provider which can be found here:
http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
69484/DB2OLEDB.exe
If you don't use OleDB or ODBC as your connection provider you will have to
create a Reporting Services Data Extension to have the .NET DB2 Provider
show up in the list.
Here are some links to example OleDB connection strings for DB2 / DB/400
you can try:
http://www.connectionstrings.com/?carrier=ibmdb2
http://www.connectionstrings.com/?carrier=as400
The connection string for the Microsoft DB2 provider should be included in
the download.
--
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--
> Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> Subject: IBM DB2 UDB for iSeries .NET data provider
> Date: Tue, 2 Oct 2007 10:50:02 -0700
> Hello:
> Is it possible to import "IBM DB2 UDB for iSeries .NET data provider"
into
> Reporting Services 2005? I tried to do it but was unsuccessful. I'm
> attempting to access data on our IBM i-Series(AS/400) and I need to pass
> parameters in my datasets. I appreciate any assistance you can give me.
> Best regards
>|||Thanks Chris, I'll give it a whirl.
"Chris Alton [MSFT]" wrote:
> You can use the OleDB provider instead of the .NET for DB2 and/or DB/400.
> The OleDB driver should come with your iSeries Access installer. The IBM
> DB2 UDB provider is not specific to DB/400 though whereas the one provided
> with iSeries Access is. I've encounter a few oddities when using the
> regular DB2 driver pointing to DB/400. You can also try the Microsoft DB2
> OleDB provider which can be found here:
> http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> 69484/DB2OLEDB.exe
> If you don't use OleDB or ODBC as your connection provider you will have to
> create a Reporting Services Data Extension to have the .NET DB2 Provider
> show up in the list.
> Here are some links to example OleDB connection strings for DB2 / DB/400
> you can try:
> http://www.connectionstrings.com/?carrier=ibmdb2
> http://www.connectionstrings.com/?carrier=as400
> The connection string for the Microsoft DB2 provider should be included in
> the download.
> --
> Chris Alton, Microsoft Corp.
> SQL Server Developer Support Engineer
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --
> > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > Subject: IBM DB2 UDB for iSeries .NET data provider
> > Date: Tue, 2 Oct 2007 10:50:02 -0700
> >
> > Hello:
> >
> > Is it possible to import "IBM DB2 UDB for iSeries .NET data provider"
> into
> > Reporting Services 2005? I tried to do it but was unsuccessful. I'm
> > attempting to access data on our IBM i-Series(AS/400) and I need to pass
> > parameters in my datasets. I appreciate any assistance you can give me.
> >
> > Best regards
> >
> >
>|||Chris, I am having the same issue. I cannot get the IBM DB2 UDB OLE DB
Provider to work with Reporting Services. I downloaded the DB2OLEDB provider
from Microsoft but it looks like it is only for the Enterprise edition which
we do not have. I wrote a C# program and I used the IBM DB2 UDB provider and
it worked fine. I keep getting an error "Object reference not set to an
instance of an object.
"Chris Alton [MSFT]" wrote:
> You can use the OleDB provider instead of the .NET for DB2 and/or DB/400.
> The OleDB driver should come with your iSeries Access installer. The IBM
> DB2 UDB provider is not specific to DB/400 though whereas the one provided
> with iSeries Access is. I've encounter a few oddities when using the
> regular DB2 driver pointing to DB/400. You can also try the Microsoft DB2
> OleDB provider which can be found here:
> http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> 69484/DB2OLEDB.exe
> If you don't use OleDB or ODBC as your connection provider you will have to
> create a Reporting Services Data Extension to have the .NET DB2 Provider
> show up in the list.
> Here are some links to example OleDB connection strings for DB2 / DB/400
> you can try:
> http://www.connectionstrings.com/?carrier=ibmdb2
> http://www.connectionstrings.com/?carrier=as400
> The connection string for the Microsoft DB2 provider should be included in
> the download.
> --
> Chris Alton, Microsoft Corp.
> SQL Server Developer Support Engineer
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --
> > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > Subject: IBM DB2 UDB for iSeries .NET data provider
> > Date: Tue, 2 Oct 2007 10:50:02 -0700
> >
> > Hello:
> >
> > Is it possible to import "IBM DB2 UDB for iSeries .NET data provider"
> into
> > Reporting Services 2005? I tried to do it but was unsuccessful. I'm
> > attempting to access data on our IBM i-Series(AS/400) and I need to pass
> > parameters in my datasets. I appreciate any assistance you can give me.
> >
> > Best regards
> >
> >
>|||Have you tried the AS/400 specific OleDB driver? Also, have you tried
creating an ODBC DSN and using that for your connection?
--
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--
> Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> thread-index: AcgKrtWvPTYjJjAlScKsEj3MWa53hw==> X-WBNR-Posting-Host: 207.46.19.197
> From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
<kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
> Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> Date: Tue, 9 Oct 2007 12:59:00 -0700
> Chris, I am having the same issue. I cannot get the IBM DB2 UDB OLE DB
> Provider to work with Reporting Services. I downloaded the DB2OLEDB
provider
> from Microsoft but it looks like it is only for the Enterprise edition
which
> we do not have. I wrote a C# program and I used the IBM DB2 UDB provider
and
> it worked fine. I keep getting an error "Object reference not set to an
> instance of an object.
>
> "Chris Alton [MSFT]" wrote:
> > You can use the OleDB provider instead of the .NET for DB2 and/or
DB/400.
> > The OleDB driver should come with your iSeries Access installer. The
IBM
> > DB2 UDB provider is not specific to DB/400 though whereas the one
provided
> > with iSeries Access is. I've encounter a few oddities when using the
> > regular DB2 driver pointing to DB/400. You can also try the Microsoft
DB2
> > OleDB provider which can be found here:
> >
http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> > 69484/DB2OLEDB.exe
> >
> > If you don't use OleDB or ODBC as your connection provider you will
have to
> > create a Reporting Services Data Extension to have the .NET DB2
Provider
> > show up in the list.
> >
> > Here are some links to example OleDB connection strings for DB2 /
DB/400
> > you can try:
> > http://www.connectionstrings.com/?carrier=ibmdb2
> >
> > http://www.connectionstrings.com/?carrier=as400
> >
> > The connection string for the Microsoft DB2 provider should be included
in
> > the download.
> >
> > --
> > Chris Alton, Microsoft Corp.
> > SQL Server Developer Support Engineer
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > --
> > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > > Subject: IBM DB2 UDB for iSeries .NET data provider
> > > Date: Tue, 2 Oct 2007 10:50:02 -0700
> > >
> > > Hello:
> > >
> > > Is it possible to import "IBM DB2 UDB for iSeries .NET data provider"
> > into
> > > Reporting Services 2005? I tried to do it but was unsuccessful. I'm
> > > attempting to access data on our IBM i-Series(AS/400) and I need to
pass
> > > parameters in my datasets. I appreciate any assistance you can give
me.
> > >
> > > Best regards
> > >
> > >
> >
> >
>|||Chris, I have a better question. Why can't Microsoft make 2005 SQL Reporting
Services Work with the DB2 UDB Driver if Visual Studio 2005 works fine with
the Driver? The Drivers are a part of IBM Client Access and I have the
latest version V5R4 and this driver is the specific AS400 OLEDB Driver. I did
make the connection work with ODBC but as you know it is slower than OLEDB.
Can I get the Microsoft OLEDB Driver for the Standard Edition of SQL Server
2005? If you have the name or a link to the AS/400 specific OleDB driver you
are talking about that would be great.
Steve!
"Chris Alton [MSFT]" wrote:
> Have you tried the AS/400 specific OleDB driver? Also, have you tried
> creating an ODBC DSN and using that for your connection?
> --
> Chris Alton, Microsoft Corp.
> SQL Server Developer Support Engineer
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --
> > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > thread-index: AcgKrtWvPTYjJjAlScKsEj3MWa53hw==> > X-WBNR-Posting-Host: 207.46.19.197
> > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> > References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
> <kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
> > Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> > Date: Tue, 9 Oct 2007 12:59:00 -0700
> > Chris, I am having the same issue. I cannot get the IBM DB2 UDB OLE DB
> > Provider to work with Reporting Services. I downloaded the DB2OLEDB
> provider
> > from Microsoft but it looks like it is only for the Enterprise edition
> which
> > we do not have. I wrote a C# program and I used the IBM DB2 UDB provider
> and
> > it worked fine. I keep getting an error "Object reference not set to an
> > instance of an object.
> >
> >
> > "Chris Alton [MSFT]" wrote:
> >
> > > You can use the OleDB provider instead of the .NET for DB2 and/or
> DB/400.
> > > The OleDB driver should come with your iSeries Access installer. The
> IBM
> > > DB2 UDB provider is not specific to DB/400 though whereas the one
> provided
> > > with iSeries Access is. I've encounter a few oddities when using the
> > > regular DB2 driver pointing to DB/400. You can also try the Microsoft
> DB2
> > > OleDB provider which can be found here:
> > >
> http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> > > 69484/DB2OLEDB.exe
> > >
> > > If you don't use OleDB or ODBC as your connection provider you will
> have to
> > > create a Reporting Services Data Extension to have the .NET DB2
> Provider
> > > show up in the list.
> > >
> > > Here are some links to example OleDB connection strings for DB2 /
> DB/400
> > > you can try:
> > > http://www.connectionstrings.com/?carrier=ibmdb2
> > >
> > > http://www.connectionstrings.com/?carrier=as400
> > >
> > > The connection string for the Microsoft DB2 provider should be included
> in
> > > the download.
> > >
> > > --
> > > Chris Alton, Microsoft Corp.
> > > SQL Server Developer Support Engineer
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > > --
> > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > > > Subject: IBM DB2 UDB for iSeries .NET data provider
> > > > Date: Tue, 2 Oct 2007 10:50:02 -0700
> > > >
> > > > Hello:
> > > >
> > > > Is it possible to import "IBM DB2 UDB for iSeries .NET data provider"
> > > into
> > > > Reporting Services 2005? I tried to do it but was unsuccessful. I'm
> > > > attempting to access data on our IBM i-Series(AS/400) and I need to
> pass
> > > > parameters in my datasets. I appreciate any assistance you can give
> me.
> > > >
> > > > Best regards
> > > >
> > > >
> > >
> > >
> >
>|||There could be a lot of reasons why the DB2 UDB driver does not work with
Reporting Services. The driver could deviate from the OleDB spec or
countless other things. Without delving further into your problem (memory
dumps etc) I won't be able to give you much more information on it though.
You can find connection strings for the AS/400 specific OleDB provider here:
http://www.connectionstrings.com/?carrier=as400
Since you got the ODBC connection working why not at least use that in the
mean time while you try to get the OleDB working?
I'd contact IBM and see if they can give you a hand or if you need this
done quicker you can always open up a support case with us and that will
get your issue resolved much faster.
--
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--
> Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> thread-index: AcgLUZfus8IJ/YLMRH2FGIETc13TfQ==> X-WBNR-Posting-Host: 207.46.19.168
> From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> Chris, I have a better question. Why can't Microsoft make 2005 SQL
Reporting
> Services Work with the DB2 UDB Driver if Visual Studio 2005 works fine
with
> the Driver? The Drivers are a part of IBM Client Access and I have the
> latest version V5R4 and this driver is the specific AS400 OLEDB Driver. I
did
> make the connection work with ODBC but as you know it is slower than
OLEDB.
> Can I get the Microsoft OLEDB Driver for the Standard Edition of SQL
Server
> 2005? If you have the name or a link to the AS/400 specific OleDB driver
you
> are talking about that would be great.
> Steve!
> "Chris Alton [MSFT]" wrote:
> > Have you tried the AS/400 specific OleDB driver? Also, have you tried
> > creating an ODBC DSN and using that for your connection?
> > --
> > Chris Alton, Microsoft Corp.
> > SQL Server Developer Support Engineer
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > --
> > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > thread-index: AcgKrtWvPTYjJjAlScKsEj3MWa53hw==> > > X-WBNR-Posting-Host: 207.46.19.197
> > > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> > > References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
> > <kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
> > > Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> > > Date: Tue, 9 Oct 2007 12:59:00 -0700
> > > Chris, I am having the same issue. I cannot get the IBM DB2 UDB OLE
DB
> > > Provider to work with Reporting Services. I downloaded the DB2OLEDB
> > provider
> > > from Microsoft but it looks like it is only for the Enterprise
edition
> > which
> > > we do not have. I wrote a C# program and I used the IBM DB2 UDB
provider
> > and
> > > it worked fine. I keep getting an error "Object reference not set to
an
> > > instance of an object.
> > >
> > >
> > > "Chris Alton [MSFT]" wrote:
> > >
> > > > You can use the OleDB provider instead of the .NET for DB2 and/or
> > DB/400.
> > > > The OleDB driver should come with your iSeries Access installer.
The
> > IBM
> > > > DB2 UDB provider is not specific to DB/400 though whereas the one
> > provided
> > > > with iSeries Access is. I've encounter a few oddities when using
the
> > > > regular DB2 driver pointing to DB/400. You can also try the
Microsoft
> > DB2
> > > > OleDB provider which can be found here:
> > > >
> >
http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> > > > 69484/DB2OLEDB.exe
> > > >
> > > > If you don't use OleDB or ODBC as your connection provider you will
> > have to
> > > > create a Reporting Services Data Extension to have the .NET DB2
> > Provider
> > > > show up in the list.
> > > >
> > > > Here are some links to example OleDB connection strings for DB2 /
> > DB/400
> > > > you can try:
> > > > http://www.connectionstrings.com/?carrier=ibmdb2
> > > >
> > > > http://www.connectionstrings.com/?carrier=as400
> > > >
> > > > The connection string for the Microsoft DB2 provider should be
included
> > in
> > > > the download.
> > > >
> > > > --
> > > > Chris Alton, Microsoft Corp.
> > > > SQL Server Developer Support Engineer
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > > --
> > > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > > > > Subject: IBM DB2 UDB for iSeries .NET data provider
> > > > > Date: Tue, 2 Oct 2007 10:50:02 -0700
> > > > >
> > > > > Hello:
> > > > >
> > > > > Is it possible to import "IBM DB2 UDB for iSeries .NET data
provider"
> > > > into
> > > > > Reporting Services 2005? I tried to do it but was unsuccessful.
I'm
> > > > > attempting to access data on our IBM i-Series(AS/400) and I need
to
> > pass
> > > > > parameters in my datasets. I appreciate any assistance you can
give
> > me.
> > > > >
> > > > > Best regards
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>|||Chris,
I am currently using the ODBC connection but I would like to get
this issue resolved because I know there are many DB2 shops that would like
to use Reporting Services but they are having the same issue. Can I get the
Microsoft OLE DB Driver for DB2 for the Standard Edition of SQL
Server 2005?
Thanks!
"Chris Alton [MSFT]" wrote:
> There could be a lot of reasons why the DB2 UDB driver does not work with
> Reporting Services. The driver could deviate from the OleDB spec or
> countless other things. Without delving further into your problem (memory
> dumps etc) I won't be able to give you much more information on it though.
> You can find connection strings for the AS/400 specific OleDB provider here:
> http://www.connectionstrings.com/?carrier=as400
> Since you got the ODBC connection working why not at least use that in the
> mean time while you try to get the OleDB working?
> I'd contact IBM and see if they can give you a hand or if you need this
> done quicker you can always open up a support case with us and that will
> get your issue resolved much faster.
> --
> Chris Alton, Microsoft Corp.
> SQL Server Developer Support Engineer
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --
> > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > thread-index: AcgLUZfus8IJ/YLMRH2FGIETc13TfQ==> > X-WBNR-Posting-Host: 207.46.19.168
> > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> >
> > Chris, I have a better question. Why can't Microsoft make 2005 SQL
> Reporting
> > Services Work with the DB2 UDB Driver if Visual Studio 2005 works fine
> with
> > the Driver? The Drivers are a part of IBM Client Access and I have the
> > latest version V5R4 and this driver is the specific AS400 OLEDB Driver. I
> did
> > make the connection work with ODBC but as you know it is slower than
> OLEDB.
> > Can I get the Microsoft OLEDB Driver for the Standard Edition of SQL
> Server
> > 2005? If you have the name or a link to the AS/400 specific OleDB driver
> you
> > are talking about that would be great.
> > Steve!
> >
> > "Chris Alton [MSFT]" wrote:
> >
> > > Have you tried the AS/400 specific OleDB driver? Also, have you tried
> > > creating an ODBC DSN and using that for your connection?
> > > --
> > > Chris Alton, Microsoft Corp.
> > > SQL Server Developer Support Engineer
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > > --
> > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > thread-index: AcgKrtWvPTYjJjAlScKsEj3MWa53hw==> > > > X-WBNR-Posting-Host: 207.46.19.197
> > > > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> > > > References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
> > > <kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
> > > > Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> > > > Date: Tue, 9 Oct 2007 12:59:00 -0700
> > > > Chris, I am having the same issue. I cannot get the IBM DB2 UDB OLE
> DB
> > > > Provider to work with Reporting Services. I downloaded the DB2OLEDB
> > > provider
> > > > from Microsoft but it looks like it is only for the Enterprise
> edition
> > > which
> > > > we do not have. I wrote a C# program and I used the IBM DB2 UDB
> provider
> > > and
> > > > it worked fine. I keep getting an error "Object reference not set to
> an
> > > > instance of an object.
> > > >
> > > >
> > > > "Chris Alton [MSFT]" wrote:
> > > >
> > > > > You can use the OleDB provider instead of the .NET for DB2 and/or
> > > DB/400.
> > > > > The OleDB driver should come with your iSeries Access installer.
> The
> > > IBM
> > > > > DB2 UDB provider is not specific to DB/400 though whereas the one
> > > provided
> > > > > with iSeries Access is. I've encounter a few oddities when using
> the
> > > > > regular DB2 driver pointing to DB/400. You can also try the
> Microsoft
> > > DB2
> > > > > OleDB provider which can be found here:
> > > > >
> > >
> http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> > > > > 69484/DB2OLEDB.exe
> > > > >
> > > > > If you don't use OleDB or ODBC as your connection provider you will
> > > have to
> > > > > create a Reporting Services Data Extension to have the .NET DB2
> > > Provider
> > > > > show up in the list.
> > > > >
> > > > > Here are some links to example OleDB connection strings for DB2 /
> > > DB/400
> > > > > you can try:
> > > > > http://www.connectionstrings.com/?carrier=ibmdb2
> > > > >
> > > > > http://www.connectionstrings.com/?carrier=as400
> > > > >
> > > > > The connection string for the Microsoft DB2 provider should be
> included
> > > in
> > > > > the download.
> > > > >
> > > > > --
> > > > > Chris Alton, Microsoft Corp.
> > > > > SQL Server Developer Support Engineer
> > > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > > > --
> > > > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > > > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > > > > > Subject: IBM DB2 UDB for iSeries .NET data provider
> > > > > > Date: Tue, 2 Oct 2007 10:50:02 -0700
> > > > > >
> > > > > > Hello:
> > > > > >
> > > > > > Is it possible to import "IBM DB2 UDB for iSeries .NET data
> provider"
> > > > > into
> > > > > > Reporting Services 2005? I tried to do it but was unsuccessful.
> I'm
> > > > > > attempting to access data on our IBM i-Series(AS/400) and I need
> to
> > > pass
> > > > > > parameters in my datasets. I appreciate any assistance you can
> give
> > > me.
> > > > > >
> > > > > > Best regards
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>|||Unfortunately there isn't one to my knowledge. The DB2 provider is only for
Enterprise. Not sure why this is though.
I found an article that gives you an example of how to add the .NET data
provider though.
http://msdn2.microsoft.com/en-us/library/bb326409.aspx
and
This article that talks about data providers more in depth.
http://msdn2.microsoft.com/en-us/library/ms159219.aspx
--
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--
> Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> thread-index: AcgME3y8WWy6aoDyQxmv6iFkPWLKRQ==> X-WBNR-Posting-Host: 207.46.193.207
> From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
<kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
<27152120-17C7-4C3C-8514-B778DF8C0267@.microsoft.com>
<8NOZs50CIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
<8A2566B0-4DBA-414F-A9A6-95D5B882A72A@.microsoft.com>
<$dmrTkADIHA.4200@.TK2MSFTNGHUB02.phx.gbl>
> Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> Date: Thu, 11 Oct 2007 07:32:01 -0700
> Lines: 157
> Chris,
> I am currently using the ODBC connection but I would like to get
> this issue resolved because I know there are many DB2 shops that would
like
> to use Reporting Services but they are having the same issue. Can I get
the
> Microsoft OLE DB Driver for DB2 for the Standard Edition of SQL
> Server 2005?
> Thanks!
>
> "Chris Alton [MSFT]" wrote:
> > There could be a lot of reasons why the DB2 UDB driver does not work
with
> > Reporting Services. The driver could deviate from the OleDB spec or
> > countless other things. Without delving further into your problem
(memory
> > dumps etc) I won't be able to give you much more information on it
though.
> > You can find connection strings for the AS/400 specific OleDB provider
here:
> > http://www.connectionstrings.com/?carrier=as400
> >
> > Since you got the ODBC connection working why not at least use that in
the
> > mean time while you try to get the OleDB working?
> >
> > I'd contact IBM and see if they can give you a hand or if you need this
> > done quicker you can always open up a support case with us and that
will
> > get your issue resolved much faster.
> > --
> > Chris Alton, Microsoft Corp.
> > SQL Server Developer Support Engineer
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > --
> > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > thread-index: AcgLUZfus8IJ/YLMRH2FGIETc13TfQ==> > > X-WBNR-Posting-Host: 207.46.19.168
> > > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> > >
> > > Chris, I have a better question. Why can't Microsoft make 2005 SQL
> > Reporting
> > > Services Work with the DB2 UDB Driver if Visual Studio 2005 works
fine
> > with
> > > the Driver? The Drivers are a part of IBM Client Access and I have
the
> > > latest version V5R4 and this driver is the specific AS400 OLEDB
Driver. I
> > did
> > > make the connection work with ODBC but as you know it is slower than
> > OLEDB.
> > > Can I get the Microsoft OLEDB Driver for the Standard Edition of SQL
> > Server
> > > 2005? If you have the name or a link to the AS/400 specific OleDB
driver
> > you
> > > are talking about that would be great.
> > > Steve!
> > >
> > > "Chris Alton [MSFT]" wrote:
> > >
> > > > Have you tried the AS/400 specific OleDB driver? Also, have you
tried
> > > > creating an ODBC DSN and using that for your connection?
> > > > --
> > > > Chris Alton, Microsoft Corp.
> > > > SQL Server Developer Support Engineer
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > > --
> > > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > > thread-index: AcgKrtWvPTYjJjAlScKsEj3MWa53hw==> > > > > X-WBNR-Posting-Host: 207.46.19.197
> > > > > From: =?Utf-8?B?c3RldmU=?= <steve@.discussions.microsoft.com>
> > > > > References: <8DC06CC6-C70E-40E9-A3D3-302FEC6E5F6E@.microsoft.com>
> > > > <kmqs4WSBIHA.5204@.TK2MSFTNGHUB02.phx.gbl>
> > > > > Subject: RE: IBM DB2 UDB for iSeries .NET data provider
> > > > > Date: Tue, 9 Oct 2007 12:59:00 -0700
> > > > > Chris, I am having the same issue. I cannot get the IBM DB2 UDB
OLE
> > DB
> > > > > Provider to work with Reporting Services. I downloaded the
DB2OLEDB
> > > > provider
> > > > > from Microsoft but it looks like it is only for the Enterprise
> > edition
> > > > which
> > > > > we do not have. I wrote a C# program and I used the IBM DB2 UDB
> > provider
> > > > and
> > > > > it worked fine. I keep getting an error "Object reference not set
to
> > an
> > > > > instance of an object.
> > > > >
> > > > >
> > > > > "Chris Alton [MSFT]" wrote:
> > > > >
> > > > > > You can use the OleDB provider instead of the .NET for DB2
and/or
> > > > DB/400.
> > > > > > The OleDB driver should come with your iSeries Access
installer.
> > The
> > > > IBM
> > > > > > DB2 UDB provider is not specific to DB/400 though whereas the
one
> > > > provided
> > > > > > with iSeries Access is. I've encounter a few oddities when
using
> > the
> > > > > > regular DB2 driver pointing to DB/400. You can also try the
> > Microsoft
> > > > DB2
> > > > > > OleDB provider which can be found here:
> > > > > >
> > > >
> >
http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f2
> > > > > > 69484/DB2OLEDB.exe
> > > > > >
> > > > > > If you don't use OleDB or ODBC as your connection provider you
will
> > > > have to
> > > > > > create a Reporting Services Data Extension to have the .NET DB2
> > > > Provider
> > > > > > show up in the list.
> > > > > >
> > > > > > Here are some links to example OleDB connection strings for DB2
/
> > > > DB/400
> > > > > > you can try:
> > > > > > http://www.connectionstrings.com/?carrier=ibmdb2
> > > > > >
> > > > > > http://www.connectionstrings.com/?carrier=as400
> > > > > >
> > > > > > The connection string for the Microsoft DB2 provider should be
> > included
> > > > in
> > > > > > the download.
> > > > > >
> > > > > > --
> > > > > > Chris Alton, Microsoft Corp.
> > > > > > SQL Server Developer Support Engineer
> > > > > > This posting is provided "AS IS" with no warranties, and
confers no
> > > > rights.
> > > > > > --
> > > > > > > Thread-Topic: IBM DB2 UDB for iSeries .NET data provider
> > > > > > > From: =?Utf-8?B?U3Rldmll?= <Stevie@.discussions.microsoft.com>
> > > > > > > Subject: IBM DB2 UDB for iSeries .NET data provider
> > > > > > > Date: Tue, 2 Oct 2007 10:50:02 -0700
> > > > > > >
> > > > > > > Hello:
> > > > > > >
> > > > > > > Is it possible to import "IBM DB2 UDB for iSeries .NET data
> > provider"
> > > > > > into
> > > > > > > Reporting Services 2005? I tried to do it but was
unsuccessful.
> > I'm
> > > > > > > attempting to access data on our IBM i-Series(AS/400) and I
need
> > to
> > > > pass
> > > > > > > parameters in my datasets. I appreciate any assistance you
can
> > give
> > > > me.
> > > > > > >
> > > > > > > Best regards
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>

Friday, March 23, 2012

i want to import a database from SQL Server to Oracle

hi
i am amit from india
i am new to this field
can you help to import a database from SQL Server to Oracle9i
Message posted via http://www.droptable.comUse DTS from SQL Server
"amit mota via droptable.com" wrote:

> hi
> i am amit from india
> i am new to this field
> can you help to import a database from SQL Server to Oracle9i
> --
> Message posted via http://www.droptable.com
>|||Hi,
There are many options
1. DTS
2. BCP OUT the data in sql server and use SQLLDR to load the data into
Oracle.
Thanks
Hari
SQL Server MVP
"Venu" <Venu@.discussions.microsoft.com> wrote in message
news:662F2701-F182-4783-8B7F-48C3EEC59280@.microsoft.com...[vbcol=seagreen]
> Use DTS from SQL Server
> "amit mota via droptable.com" wrote:
>|||thanks hari
its working by SQLLDR
Message posted via http://www.droptable.com

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagramssql

Wednesday, March 21, 2012

I want to make Store procedure

I want to make Store procedure. it has function for import data from foxpro.
but I want it can be flexible to set location data.
CREATE PROCEDURE #SP_Import_BC
@.Lokasidata varchar(100)='E:\agr_absen',
@.Tg1 smalldatetime,
@.Tg2 smalldatetime
AS
--
if exists (select 1 from sysobjects
where id = object_id('"TTEMP_BC"') and type = 'U')
DROP TABLE TTEMP_BC
--
CREATE TABLE TTEMP_BC (
RecID int IDENTITY (1, 1) Primary Key,
FDDATE smalldatetime NULL ,
FCTIME smalldatetime NULL ,
FCIDNUMBER nvarchar (6) NULL ,
FCSTATUS nvarchar (3) NULL ,
Bagian nvarchar (3) NULL ,
Oprt nvarchar (8) NULL ,
FNTRNUM smallint NULL ,
FNPROSES smallint NULL
)
insert into TTEMP_BC
SELECT * FROM
OpenDataSource('Microsoft.Jet.OLEDB.4.0',
'Data Source="'+@.Lokasidata+'";Extended properties=DBase III')...cardraw
where fctime is not null and fddate between @.Tg1 and @.Tg2
GO
But it cannot be compiled. How to make stored procedure that I want?You need to execute your query with EXECUTE('yourquery') to be able to conca
t
a variable to a query.
I suggest also to create a linked server.
Jonathan
"Bpk. Adi Wira Kusuma" wrote:

> I want to make Store procedure. it has function for import data from foxpr
o.
> but I want it can be flexible to set location data.
> CREATE PROCEDURE #SP_Import_BC
> @.Lokasidata varchar(100)='E:\agr_absen',
> @.Tg1 smalldatetime,
> @.Tg2 smalldatetime
> AS
> --
> if exists (select 1 from sysobjects
> where id = object_id('"TTEMP_BC"') and type = 'U')
> DROP TABLE TTEMP_BC
> --
> CREATE TABLE TTEMP_BC (
> RecID int IDENTITY (1, 1) Primary Key,
> FDDATE smalldatetime NULL ,
> FCTIME smalldatetime NULL ,
> FCIDNUMBER nvarchar (6) NULL ,
> FCSTATUS nvarchar (3) NULL ,
> Bagian nvarchar (3) NULL ,
> Oprt nvarchar (8) NULL ,
> FNTRNUM smallint NULL ,
> FNPROSES smallint NULL
> )
> insert into TTEMP_BC
> SELECT * FROM
> OpenDataSource('Microsoft.Jet.OLEDB.4.0',
> 'Data Source="'+@.Lokasidata+'";Extended properties=DBase III')...cardraw
> where fctime is not null and fddate between @.Tg1 and @.Tg2
> GO
> But it cannot be compiled. How to make stored procedure that I want?
>
>|||Please, I dont understand with your explaining. Can u give so detail?
"Jonathan" <Jonathan@.discussions.microsoft.com> wrote in message
news:939E0500-5A6B-4D19-AD18-03676F885598@.microsoft.com...
> You need to execute your query with EXECUTE('yourquery') to be able to
concat
> a variable to a query.
> I suggest also to create a linked server.
> Jonathan
> "Bpk. Adi Wira Kusuma" wrote:
>
foxpro.|||Do you have an error message ?
I think that you probably have one because I don't think that this query is
working fine.
Normally, when you concat a variable in a query, you need to execute them
with the EXECUTE fonction, like that.
EXECUTE('insert into TTEMP_BC
SELECT * FROM
OpenDataSource(Microsoft.Jet.OLEDB.4.0,
'Data Source='+@.Lokasidata+';Extended properties=DBase III)...cardraw
where fctime is not null and fddate between @.Tg1 and @.Tg2')
... if I understand ...
Jonathan
"Bpk. Adi Wira Kusuma" wrote:

> Please, I dont understand with your explaining. Can u give so detail?
>
> "Jonathan" <Jonathan@.discussions.microsoft.com> wrote in message
> news:939E0500-5A6B-4D19-AD18-03676F885598@.microsoft.com...
> concat
> foxpro.
>
>

i want to import a database from SQL Server to Oracle

hi
i am amit from india
i am new to this field
can you help to import a database from SQL Server to Oracle9i
Message posted via http://www.sqlmonster.com
Use DTS from SQL Server
"amit mota via SQLMonster.com" wrote:

> hi
> i am amit from india
> i am new to this field
> can you help to import a database from SQL Server to Oracle9i
> --
> Message posted via http://www.sqlmonster.com
>
|||Hi,
There are many options
1. DTS
2. BCP OUT the data in sql server and use SQLLDR to load the data into
Oracle.
Thanks
Hari
SQL Server MVP
"Venu" <Venu@.discussions.microsoft.com> wrote in message
news:662F2701-F182-4783-8B7F-48C3EEC59280@.microsoft.com...[vbcol=seagreen]
> Use DTS from SQL Server
> "amit mota via SQLMonster.com" wrote:
|||thanks hari
its working by SQLLDR
Message posted via http://www.sqlmonster.com

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagramssql

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagrams

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagrams

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagrams

I want to ''Copy'' 3 tables from an existing DB into a new DB on the same SqlServer instance

Is there a quick way in Management Studio to ... i don't know ... drag and drop or maybe copy and paste or import the 3 tables? (The 2 databases are on the same instance of SqlServer 2005)

-perplexed newbie

AFAIK .. there is no drag & drop or copy paste feature for this in SSMO. If u want only data u can use select *into DB1.DBo.ObjectName from DB1.dbo.Objectname. If you want with exact schema, then script it from DB1 run it in DB2 and then copy the data using insert into statement

Madhu

|||Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables|||

ggciubuc wrote:

Right click on first db->Tasks->Export data... and you will go in an easy way to copy your tables

this will cretae a table with only data not with all constraints. To create constratin u have to script it.

Madhu

|||Yes it is and is a normal situation because in a new database in many cases, there are not same relationships between tables. To the other part these constraints can be easy rebuild with Database Diagrams

Sunday, February 19, 2012

I need help using DTS Import/Export tool.

I am trying to use MS SQL Server 2000's Export/Import DTS tool to transfer an existing database on my pc to a remote web server. I am able to connect to the remote database that my web hosting package provided (and thanks to all of you who helped with with the connection issue). Now when I selected the option "Copy Tables and Views From Data Source" to do my transfer, the process completed successfully, but when I tried to do some queries, I get incorrect results. It seems like only the "table values" in my source database was copied. The data that describes how these tables are related (ie. constraints, primary keys, foreign keys, etc) seemed to have NOT been copied to the web database.

So I went back to do the transfer again, this time choosing the option "Copy Objects and Data Between SQL Servers". Now the transfer process proceeds smoothly for the first half (the first half seems to be the same as described above -- just copying the table values). But as it started to copy object data (around 59% done or so), it errored out with the following message:

"[Microsoft][ODBC SQL Server Driver][SQL Server]Only members of the sysadmin role or the database owner may set database options"

Then I went back to the options tab, and tried deselecting some of them. I tested a lot of various combinations, and finally I unchecked them ALL. But still I get the same error. Now, I dont know what "database options" it's referring to.

However, the odd thing is that even though the transfer process failed halfway through, my queries seem to be getting correct results now. I havent tested it much but the few that I tried out returned expected results.

My concern now is that why doesnt this tranfer process complete without errors? I'm worried that since there are still problems with the data transfer process, then there must still be (possibly hidden) problems with the "incomplete" copy of the database on the web server.

Can anyone pinpoint the cause of this?in my experience, when transferring multiple tables with DRI from one server to another, there are sometimes problems related to precedence. For example, when you tranfer relationships, keys, etc... the job might fail. What happens is that the process attempts to create the table with FK reference before the primary table. I havent seen the precise error that you are experiencing... but, would make sure that this is not happening to you...

Sometimes permissions are applied before the user has been created, resulting in an error...

you can also script the relationshipes, keys, etc... and apply them manually after all data has been copied.