Click here to Skip to main content
15,896,348 members
Home / Discussions / Database
   

Database

 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Ashfield9-Jan-09 8:27
Ashfield9-Jan-09 8:27 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius9-Jan-09 8:51
mentorWendelius9-Jan-09 8:51 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Mycroft Holmes9-Jan-09 23:07
professionalMycroft Holmes9-Jan-09 23:07 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius10-Jan-09 1:07
mentorWendelius10-Jan-09 1:07 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Mycroft Holmes10-Jan-09 2:37
professionalMycroft Holmes10-Jan-09 2:37 
GeneralRe: Insert sum of two columns to third column in sqlserver Pin
Wendelius10-Jan-09 3:05
mentorWendelius10-Jan-09 3:05 
Questioninsert record in two database Pin
Amit Agarrwal9-Jan-09 1:22
Amit Agarrwal9-Jan-09 1:22 
AnswerRe: insert record in two database Pin
Wendelius9-Jan-09 2:37
mentorWendelius9-Jan-09 2:37 
Amit Agarrwal wrote:
want to insert record in both database but the major concern is that if any one failed its transaction then it should rollback both trasaction in both databases


This is called distributed transaction where you have a special coordinator which takes care of the transactions. The transactions themselves are ended using two-phase commit.

You could start here: http://msdn.microsoft.com/en-us/library/ms191440.aspx[^]

A slightly different variation is using Linked Servers.

Amit Agarrwal wrote:
i have two database in sql server 2005


Just wondering what that actually means. If you have two different SQL Server instances, then you need to distribute the transaction (one way or another), but if you have two different databases inside a single SQL Server instance, you can use normal transactions.

The need to optimize rises from a bad design.My articles[^]

QuestionWhat Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
BobClarkSQL8-Jan-09 10:50
BobClarkSQL8-Jan-09 10:50 
AnswerRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
Wendelius8-Jan-09 11:19
mentorWendelius8-Jan-09 11:19 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
BobClarkSQL8-Jan-09 11:34
BobClarkSQL8-Jan-09 11:34 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
Wendelius8-Jan-09 11:45
mentorWendelius8-Jan-09 11:45 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
BobClarkSQL8-Jan-09 11:59
BobClarkSQL8-Jan-09 11:59 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
BobClarkSQL8-Jan-09 12:01
BobClarkSQL8-Jan-09 12:01 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
Wendelius8-Jan-09 12:06
mentorWendelius8-Jan-09 12:06 
GeneralRe: What Free Database Software supports Multiple Platform PC Databases with Network Hub Update Exchanging for Records? Pin
BobClarkSQL8-Jan-09 12:18
BobClarkSQL8-Jan-09 12:18 
QuestionHow do I Setup Multiple Servers using SQL Server Express 2008 Pin
BobClarkSQL8-Jan-09 10:35
BobClarkSQL8-Jan-09 10:35 
AnswerRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
Wendelius8-Jan-09 10:40
mentorWendelius8-Jan-09 10:40 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
BobClarkSQL8-Jan-09 11:05
BobClarkSQL8-Jan-09 11:05 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
Wendelius8-Jan-09 11:15
mentorWendelius8-Jan-09 11:15 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
BobClarkSQL8-Jan-09 11:23
BobClarkSQL8-Jan-09 11:23 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
Wendelius8-Jan-09 11:31
mentorWendelius8-Jan-09 11:31 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
ColinM1238-Jan-09 11:54
ColinM1238-Jan-09 11:54 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
BobClarkSQL8-Jan-09 12:05
BobClarkSQL8-Jan-09 12:05 
GeneralRe: How do I Setup Multiple Servers using SQL Server Express 2008 Pin
BobClarkSQL8-Jan-09 12:10
BobClarkSQL8-Jan-09 12:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.