Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Sql Help urgent

Author  Topic 

riteshsc
Starting Member

3 Posts

Posted - 2008-04-10 : 08:17:45
Hi,

Suppose i have 2 database .like pubs and master.
i am writing stored procedure in pubs and through that i am inserting data in table from master.

For this i need host name which i known.but i want to use host name abbrivation like in c we use #define.

So if host name is change then also i dont want to change Stored procedur.

how is it possible?

Thanks in advance!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-04-10 : 08:19:35
You can use synonyms.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

riteshsc
Starting Member

3 Posts

Posted - 2008-04-11 : 03:05:59
thanks
Go to Top of Page
   

- Advertisement -