If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 and Microsoft SQL(urgent!!!)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-09, 07:37
bahar.h bahar.h is offline
Registered User
 
Join Date: Apr 2009
Posts: 5
DB2 and Microsoft SQL(urgent!!!)

hi,i'm developing a website which i'm using asp.net and db2 for that,for creating my provider to build login and register of my website i used sqlmembership provider,but my data will go to micrsoft sql tables and i need to pool data from there into db2,so how can i connect to ms sql from db2?
tanx in advance
Reply With Quote
  #2 (permalink)  
Old 04-27-09, 08:39
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if you install federation server with relational wrappers you can define nicknames for sql tables in db2 - see infocenter for detail
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 04-27-09, 08:50
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
If you only need to "push" data from Microsoft SQL Server into DB2, you can use their replication tools easily. If the data flow needs to be two way, you MAY be able to do that too, but it is both more complicated and more restrictive.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #4 (permalink)  
Old 04-27-09, 09:04
bahar.h bahar.h is offline
Registered User
 
Join Date: Apr 2009
Posts: 5
hi,tanx for your reply
actually i just need to take data from ms sql to db2 not in both ways ,so could u please explain how should i do with replication to take data?
ok let me explain how is the look of table:

MS sql table:
aspnet_users(
UserID uniqueidentifier
.
.
.
.)

DB2 table:
create table USER_PROFILE(
UserName varchar(50) Not NUll,
Full_Name varchar(100),
Mobile_Number varchar(20),
password varchar(10),
nationality varchar(15),
Faculty varchar(50),
Academic_Status varchar(20),
Master_ProgName varchar(50),
PRIMARY KEY (UserName));

I want UserId be foreign key in my user_profile table,what should i do?tanx
Reply With Quote
  #5 (permalink)  
Old 04-27-09, 09:09
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
as indicated before - federation server is what you need
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #6 (permalink)  
Old 04-27-09, 09:25
bahar.h bahar.h is offline
Registered User
 
Join Date: Apr 2009
Posts: 5
sorry actually i'm novice in db2,could u guide me regarding federation server?
thanks
Reply With Quote
  #7 (permalink)  
Old 04-27-09, 12:06
bahar.h bahar.h is offline
Registered User
 
Join Date: Apr 2009
Posts: 5
ok i already found federated databse and wrappers,after that what should i do?
Reply With Quote
  #8 (permalink)  
Old 04-28-09, 03:53
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
goto
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows
and search for federated setup microsoft : this will show all todo
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On