Get SQL Server database server address -


i installing app , @ point supposed provide server details. installed sql server express , installed sql server management studio.

this screenshot:

enter image description here

i did execute command

select @@servername 

but got response:

enter image description here

i running on local machine. how can find database server address , server password?.

ps: not remember setting password when installing sql server.

thanks.

when executed command select @@servername, how connected server? running command required knowing servername , authentication of kind. i'm guessing connected desktop-kojlcif\sqlexpress or .\sqlexpress using windows authentication.

when installed sql express, there option windows authentication or sql server + windows (aka mixed mode) authentication. if chose windows authentication (which default if recall), not have sql server usernames or passwords.

the app installing appears required sql auth, need pick mixed mode in setup (which allows both windows auth , sql auth). can find setting in recent versions of sql server management studio right-clicking database server in object explorer, going properties, , looking @ security page. older versions of sql require going tool included in installation folders-- server configuration or such, name escapes me. change authentication "sql server , windows authentication mode". believe sql server restart required after doing this.

you can create sql logins username , passwords , appropriate permissions using gui in ssms (expand security folder under server , @ logins sub folder) or via create login t-sql command.

there fixed sql login called 'sa' exist if sql auth enabled. right click login, go properties, , change password. careful giving out sa credentials app, can control entire server.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -