Viewing 3 posts - 61 through 63 (of 63 total)
Hi,
I think you could try this;
DECLARE @DataBaseName varchar(10)
SELECT @DataBaseName = 'DataBase_A'
EXEC ('SELECT * FROM ' + @DataBaseName + '..tablename')
You could make the table a variable as well.
Hope this helps.
Jon
April 28, 2005 at 6:17 am
#555492
Ok I might have missed the point, I'll try to clarify what I mean if it still doesnt make sense then maybe I dont understand what you want.
I set up...
April 21, 2005 at 10:06 am
#554129
You can have a different user name to that of your login, although not that advisable as it can cause confusion.
The Login Name relates to the actual login name and...
April 21, 2005 at 9:32 am
#554115