M
Mark
Hi
i have 2 tables on seperate DBs (lets say localDB and
NotLocalDB, seperate servers!)
I want to cycle through the BookingRef Field in LocalDB
and query NotLocalDB with the bookingRefs
Then i want to return the IDs from NotLocalDB where they
match
what I need to know is efficency, and how i should do it
Should I just query the NotLocalDB one by one
or should i collate all the bookingRefs in LocalDb and
then chuck them all at the NotLocalDB ?
would i need a stored proc on the notLocalDB to do this
because and i cant do that
any direction appreciated
Also a tutorial on create a db connection and returning
results to variable would be great!
thanks
Mark
i have 2 tables on seperate DBs (lets say localDB and
NotLocalDB, seperate servers!)
I want to cycle through the BookingRef Field in LocalDB
and query NotLocalDB with the bookingRefs
Then i want to return the IDs from NotLocalDB where they
match
what I need to know is efficency, and how i should do it
Should I just query the NotLocalDB one by one
or should i collate all the bookingRefs in LocalDb and
then chuck them all at the NotLocalDB ?
would i need a stored proc on the notLocalDB to do this
because and i cant do that
any direction appreciated
Also a tutorial on create a db connection and returning
results to variable would be great!
thanks
Mark