Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Peoblem in the queries!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-03, 13:42
RaedT RaedT is offline
Registered User
 
Join Date: Jul 2003
Posts: 55
Unhappy Peoblem in the queries!!

Hi all,
I have two databases (DB_FD, DB_TS) each database on a different server, a windows service is accessing DB_FD only, the service must update, insert, delete records from both databases, DB_FD can access the DB_TS database through a linked server. For each table in the DB_TS database there exists a simple view (select * from <linked_server_name>.<owner_name>.<table_name>) in the DB_FD database.
Now when I need to insert new records into the DB_TS database, my windows service in doing the insert statement through the views found in the DB_FD database.
The problem is that, some times, when I select records from the view in the DB_FD database and compare them with the data exist in the base table of that view I discovered that they are not the same!!
Besides, when executing an insert SQL statement against the view, it returns an error for primary key violation, while executing the same statement against the base table goes successfully. To solve the problem temporarily I used to drop and recreate the views, then the problem disappears for a limited time and then comes back again.
I will be so grateful to any of you guys to tell me what the problem exactly is.
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

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