Click here to Skip to main content
15,884,425 members
Home / Discussions / Database
   

Database

 
AnswerRe: Timeout expired Pin
Nic Rowan29-Oct-07 23:57
Nic Rowan29-Oct-07 23:57 
GeneralRe: Timeout expired Pin
Senu Gandhi30-Oct-07 0:23
Senu Gandhi30-Oct-07 0:23 
GeneralRe: Timeout expired Pin
Nic Rowan30-Oct-07 0:29
Nic Rowan30-Oct-07 0:29 
AnswerRe: Timeout expired Pin
r a j u u30-Oct-07 0:08
r a j u u30-Oct-07 0:08 
GeneralRe: Timeout expired Pin
r a j u u30-Oct-07 0:10
r a j u u30-Oct-07 0:10 
GeneralRe: Timeout expired Pin
Senu Gandhi30-Oct-07 0:26
Senu Gandhi30-Oct-07 0:26 
AnswerRe: Timeout expired Pin
GuyThiebaut30-Oct-07 3:36
professionalGuyThiebaut30-Oct-07 3:36 
QuestionSQL UDF Remoting Pin
Nic Rowan29-Oct-07 23:02
Nic Rowan29-Oct-07 23:02 
Hi there,

I have a two SQL server databases (one 2000 and the other 2005) linked to each other.

I need to run a stored procedure on the 2005 DB that will access data from both databases and UNION them into one table. I can select data from the 2000 DB's tables from the 2005 machine so I know the linking is correct. I've also sorted out collations and enabled RPC calls on both DB's.

The problem is I cant seem to call a udf on the 2000 machine from the 2005 machine. Here's a section of the stored proc. (I've changed the database name in this sample to LINKEDDB)

SELECT 
	QueueGroupName COLLATE Latin1_General_CI_AS,
	dbo.udfQueueGroupAnsweredCalls(@StartDate, @EndDate, QueueGroupName) AS AnsweredCalls,
	dbo.udfQueueGroupLostCalls(@StartDate, @EndDate, QueueGroupName) AS LostCalls
FROM
	QueueGroup 

UNION

SELECT 
	QueueGroupName COLLATE Latin1_General_CI_AS,
	LINKEDDB.idb.dbo.udfQueueGroupAnsweredCalls(@StartDate, @EndDate, QueueGroupName) AS AnsweredCalls,
	LINKEDDB.idb.dbo.udfQueueGroupLostCalls(@StartDate, @EndDate, QueueGroupName) AS LostCalls
FROM
	LINKEDDB.idb.dbo.QueueGroup
ORDER BY 
	QueueGroupName COLLATE Latin1_General_CI_AS


It's giving me the error: Invalid column name 'LINKEDDB' when I try call the UDF. Anybody got any ideas?




Dad always thought laughter was the best medicine, which I guess is why several of us died of tuberculosis.

I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it.




AnswerRe: SQL UDF Remoting Pin
andyharman30-Oct-07 7:15
professionalandyharman30-Oct-07 7:15 
QuestionCursor_sql server 2005 Pin
r a j u u29-Oct-07 21:51
r a j u u29-Oct-07 21:51 
AnswerRe: Cursor_sql server 2005 Pin
neeraj_indianic29-Oct-07 22:33
neeraj_indianic29-Oct-07 22:33 
GeneralRe: Cursor_sql server 2005 Pin
r a j u u29-Oct-07 23:30
r a j u u29-Oct-07 23:30 
GeneralRe: Cursor_sql server 2005 Pin
Navdeep Bhardwaj30-Oct-07 0:10
Navdeep Bhardwaj30-Oct-07 0:10 
GeneralRe: Cursor_sql server 2005 Pin
r a j u u30-Oct-07 0:30
r a j u u30-Oct-07 0:30 
Questioninsert more than 50,000 records Pin
ganeshMohan29-Oct-07 20:45
ganeshMohan29-Oct-07 20:45 
AnswerRe: insert more than 50,000 records Pin
_Damian S_29-Oct-07 21:04
professional_Damian S_29-Oct-07 21:04 
Generalwant to know about BCP Pin
ganeshMohan30-Oct-07 5:17
ganeshMohan30-Oct-07 5:17 
GeneralRe: want to know about BCP Pin
andyharman30-Oct-07 9:52
professionalandyharman30-Oct-07 9:52 
QuestionSQL Broker Services Pin
Prashant C29-Oct-07 17:53
Prashant C29-Oct-07 17:53 
AnswerRe: SQL Broker Services Pin
Hesham Amin29-Oct-07 19:37
Hesham Amin29-Oct-07 19:37 
QuestionMultiple requests to a view? Pin
deostroll29-Oct-07 17:30
deostroll29-Oct-07 17:30 
AnswerRe: Multiple requests to a view? Pin
QPun29-Oct-07 17:50
QPun29-Oct-07 17:50 
GeneralRe: Multiple requests to a view? Pin
deostroll29-Oct-07 18:41
deostroll29-Oct-07 18:41 
QuestionMS Access Versions Pin
myNameIsRon29-Oct-07 14:41
myNameIsRon29-Oct-07 14:41 
AnswerRe: MS Access Versions Pin
Paul Conrad29-Oct-07 17:18
professionalPaul Conrad29-Oct-07 17:18 

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.