Question : UPDATE another database from stored procedure

I am running a stored procedure and need to updata a value in a seperate database on the same sql server.
I will refer to the seperate database as databasename.dbo.tablename

Can I do this... see below.

or is there a better way?
Code Snippet:
1:
2:
3:
UPDATE databasename.dbo.tablename
	 SET COLUMN = @_Number
    WHERE VALUE = @_iValue
Open in New Window Select All

Answer : UPDATE another database from stored procedure

that is the best way
Random Solutions  
 
programming4us programming4us