Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 28th, 2004, 01:49 AM
Rahul Kate Rahul Kate is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Rahul Kate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Stuck Up while Working With SQL Server and SQLDMO

Hi Guys!!
Need Some Help,I am working on an Application using VB 6.0. where in I need to alter tables of one database comparing with the tables with another one. In other words.
I have one database db1 and another database db2
In db1 i have table table1 and in db2 I have the same table table2. Now in case if any changes are done to table1 in db1. I want to make those changes in the table table1 of db2. I want to alter the table accordingly. I am using SQLDMO for this but could not really achieve this.
Another problem is.
I want to insert records from few tables from db1 to the similar tables in db2. I have tried using BCP but it doesnot work . Export works properly but Import doesnt. Then I tried writing Stored Procedure where i pass the insert into command as a parameter and execute the query. But in case if the Identity property for any field is set to true. It gives me error. If I try to use "Set IDENTITY_INSERT "TABLE NAME" ON" it doesnot allow me to pass the table name as a parameter.
Please Help
Its Urgent
Email: rahulk@easypack.bz
Regards
Rahul.

Last edited by Rahul Kate : May 28th, 2004 at 02:03 AM. Reason: Change in Subject

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Stuck Up while Working With SQL Server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway