Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. sqlsrv_connect('DANIEL-PCSQLEXPRESS', array(
  2. 'UID' => 'sa',
  3. 'PWD' => '123456',
  4. 'Database' => 'CTe'
  5. ));
  6. var_dump(sqlsrv_errors());
  7.  
  8. array
  9. 0 =>
  10. array
  11. 0 => string '28000' (length=5)
  12. 'SQLSTATE' => string '28000' (length=5)
  13. 1 => int 18456
  14. 'code' => int 18456
  15. 2 => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Falha de logon do usuário 'sa'.' (length=85)
  16. 'message' => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Falha de logon do usuário 'sa'.' (length=85)
  17. 1 =>
  18. array
  19. 0 => string '42000' (length=5)
  20. 'SQLSTATE' => string '42000' (length=5)
  21. 1 => int 4060
  22. 'code' => int 4060
  23. 2 => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Não é possível abrir o banco de dados "Phoros_CTe" solicitado pelo logon. Falha de logon.' (length=143)
  24. 'message' => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Não é possível abrir o banco de dados "Phoros_CTe" solicitado pelo logon. Falha de logon.' (length=143)
  25. 2 =>
  26. array
  27. 0 => string '28000' (length=5)
  28. 'SQLSTATE' => string '28000' (length=5)
  29. 1 => int 18456
  30. 'code' => int 18456
  31. 2 => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Falha de logon do usuário 'sa'.' (length=85)
  32. 'message' => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Falha de logon do usuário 'sa'.' (length=85)
  33. 3 =>
  34. array
  35. 0 => string '42000' (length=5)
  36. 'SQLSTATE' => string '42000' (length=5)
  37. 1 => int 4060
  38. 'code' => int 4060
  39. 2 => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Não é possível abrir o banco de dados "CTe" solicitado pelo logon. Falha de logon.' (length=143)
  40. 'message' => string '[Microsoft][SQL Server Native Client 11.0][SQL Server]Não é possível abrir o banco de dados "CTe" solicitado pelo logon. Falha de logon.' (length=143)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement