Primal Cortex’s Weblog

Amnesia sets in…

Posts Tagged ‘SQL’

Restoring SQL backups from one server into another

Posted by primalcortex on February 21, 2008

Well as you may know I’m amnesiac… So this post is for me to remember how to relink an database user into the database server again.

The stored procedure of SQL Server that does that is: sp_change_users_login…

Check out this MS page: http://msdn2.microsoft.com/en-us/library/ms174378.aspx

Posted in Geral, Micro$oft | Tagged: , | Leave a Comment »

SQL Server: Connecting Windows Process to SQL SPID’S

Posted by primalcortex on November 15, 2007

Just a quick note:

The SQL Server command select * from master..sysprocesses shows the linkage between the Windows Process and SQL Server Process (SPID).

This useful if you want to kill the SQL command without kiling the Windows process.

By the way, the column is hostprocess for the Windows process id.

Posted in Micro$oft | Tagged: , , , | 1 Comment »