In my online database I take the database in offline and close the SQL Server.
Now my database shows an error
login failed
but login Id and password are correct and not connect to database
Please help me to connect to it again, I use SQL Server 2005.
You won't be able to connect to the database itself when it's offline, but should still be able to connect to the master database. The question isn't clear on how you're trying to access it but for example:
USE [master]
GO
ALTER DATABASE [MyDB] SET ONLINE
GO
Or from SQL Server Management Studio you should still be able to connect to the database server itself and execute the second command under the context of the master database.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.