Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

status of the database after sp_attach

Status
Not open for further replies.

eja2000

Programmer
Nov 30, 2003
209
NG
is there a success code after sp_attach?
or is there any way i can know if the attach was successful..

thanks
 
Just try to query it, if you get a login failed/permission denied to the database it wasn't successfull.

try:
Code:
select * from mydb..sysobjects



[bandito] [blue]DBomrrsm[/blue] [bandito]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top