Based on your setup, you may need to revert to mssql_connect
and related functions. This works great with mssql 2008, and you usually do not lose significant functionality.
Here is an example of setting up a database connection. Depending on your configuration, you may need to add port information, etc.
$hostname = "server.domain.com"; $database = "DatabaseName"; $username = "LocalSQLUserName"; $password = " P@ssw0rd "; $Connection = mssql_connect($hostname, $username, $password);
If you work in the XAMP environment, this will mean that you are doing everything locally. In this case, your server will be localhost
or 127.0.0.1
, and you can define your own accounts in SQL. As I said, I donβt use Windows accounts myself, but you can add an NT account to your βserverβ and then set it in the SQL Server management tool so that the user has access to the database you are using. Then you set up an account and password and know what they are. If you are having problems with your user account, you can try computerName\userName
.
If you are not an administrator, you need to get relevant information from them.
source share