| Profil de Dinesh Asanka.:: Dinesh Asanka ::.BlogListesSkyDrive | Aide |
|
30 octobre Connecting to a Database without Entering Parameters Every time from SSMSIf you are using SSMS regularly, you know that you have supply database name every time. You can avoid this by supplying a default database for a user. However this is not recommended because in case that database is dropped or renamed, user will not be able to login to SQL Server and will receive this error. Cannot open user default database. Login failed. SQL Server Management Studio is executed from a exe called SSMS which resides by default at "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" For this you can supply server name and database name as following. "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" -S Dinesh-PC -D AdventureWorks2008 You can create a short cut with above values and when ever you click the short cut SSMS will database as AdventureWorks2008. However, problem with this is that, Object Explorer will not load objects unless you use conventional connect dialog box. Commentaires (1)Pour ajouter un commentaire, connectez-vous avec votre identifiant Windows Live ID (si vous utilisez Messenger ou Xbox LIVE, vous avez un identifiant Windows Live ID). Connectez-vous Vous n'avez pas d'identifiant Windows Live ID ? Inscrivez-vous
RétroliensL'URL de rétrolien de ce billet est : http://dineshasanka.spaces.live.com/blog/cns!22A79FCE82651673!946.trak Blogs Web qui font référence à ce billet
|
|
|