Click here to Skip to main content
15,887,386 members
Home / Discussions / Database
   

Database

 
Questionmy problem with ado.net Pin
da vinci coder12-Nov-05 13:07
da vinci coder12-Nov-05 13:07 
AnswerRe: my problem with ado.net Pin
Colin Angus Mackay12-Nov-05 22:38
Colin Angus Mackay12-Nov-05 22:38 
QuestionSQL 2005 & 2000 Pin
Tad McClellan12-Nov-05 3:45
professionalTad McClellan12-Nov-05 3:45 
AnswerRe: SQL 2005 & 2000 Pin
Colin Angus Mackay12-Nov-05 5:18
Colin Angus Mackay12-Nov-05 5:18 
GeneralRe: SQL 2005 & 2000 Pin
Mike Dimmick14-Nov-05 2:26
Mike Dimmick14-Nov-05 2:26 
QuestionWork with two dataBase with different username and password. Pin
goliii12-Nov-05 1:45
goliii12-Nov-05 1:45 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:15
Colin Angus Mackay12-Nov-05 3:15 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:19
Colin Angus Mackay12-Nov-05 3:19 
Oops sorry, you were talking about stored procedures.

Well, if you have a stored procedure on database1 you can use a table on database2 like this

CREATE PROCEDURE dbo.myStoredProc
AS
    SELECT * FROM database2.dbo.myTable
GO


When you use a table name you can qualify it fully like this
[server].[database].[schema].[table name]

You can obviously miss the bits that are not needed. For example, in normal circumstanced you would only give the table name because everything is on the same server, in the same database, in the same schema.

Does this help?


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


QuestionSQL int question (Probably an easy answer too) Pin
Tad McClellan11-Nov-05 15:03
professionalTad McClellan11-Nov-05 15:03 
AnswerRe: SQL int question (Probably an easy answer too) Pin
Colin Angus Mackay11-Nov-05 23:40
Colin Angus Mackay11-Nov-05 23:40 
GeneralRe: SQL int question (Probably an easy answer too) Pin
Tad McClellan12-Nov-05 4:41
professionalTad McClellan12-Nov-05 4:41 
Questionremove a datatable from a dataset Pin
webx1011-Nov-05 10:34
webx1011-Nov-05 10:34 
Questionconnection problem Pin
ashee200011-Nov-05 9:04
ashee200011-Nov-05 9:04 
AnswerRe: connection problem Pin
Colin Angus Mackay11-Nov-05 12:01
Colin Angus Mackay11-Nov-05 12:01 
GeneralRe: connection problem Pin
ashee200014-Nov-05 7:16
ashee200014-Nov-05 7:16 
AnswerRe: connection problem Pin
ricardojb14-Nov-05 17:25
ricardojb14-Nov-05 17:25 
QuestionPassing parameter to Oracle Pin
softty11-Nov-05 8:42
softty11-Nov-05 8:42 
AnswerRe: Passing parameter to Oracle Pin
anandss11-Nov-05 9:18
anandss11-Nov-05 9:18 
QuestionSQL SPLIT INSERT AND JOIN.... Pin
ModuleKev11-Nov-05 2:13
ModuleKev11-Nov-05 2:13 
QuestionHow to get RelationShip Between SQL Functions? Pin
pubududilena11-Nov-05 1:56
pubududilena11-Nov-05 1:56 
AnswerRe: How to get RelationShip Between SQL Functions? Pin
Colin Angus Mackay11-Nov-05 4:37
Colin Angus Mackay11-Nov-05 4:37 
Questionupdate in the same table Pin
Goodway10-Nov-05 20:18
Goodway10-Nov-05 20:18 
AnswerRe: update in the same table Pin
softty11-Nov-05 8:54
softty11-Nov-05 8:54 
GeneralRe: update in the same table Pin
anandss11-Nov-05 12:55
anandss11-Nov-05 12:55 
GeneralRe: update in the same table Pin
Goodway14-Nov-05 20:48
Goodway14-Nov-05 20:48 

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.