Welcome Guest, Not a member yet? Register   Sign In
connection SQL Server
#1

(This post was last modified: 03-25-2022, 04:53 AM by Engenharia 2.)

I have a problem connecting to the server  SQL SERVER, with pdo and without codeigniter it works perfectly but when we use codeigniter version4.1.9 the error: Main connection [SQLSRV]: Login timeout expired TCP Provider: Error code 0x2749 appers.
Database SQL Server version 2012 ODBC version 17
Php version 7.4.3
Codeigniter 4.1.9
Reply
#2

(03-24-2022, 01:47 PM)Engenharia 2 Wrote: I have a problem connecting to the server  SQL SERVER, with pdo and without codeigniter it works perfectly but when we use codeigniter version4.1.9 the error: Main connection [SQLSRV]: Login timeout expired TCP Provider: Error code 0x2749 appers.
Database SQL Server version 2012 ODBC version 17
Php version 7.4.3
Codeigniter 4.1.9
I have no problems to connect to a mssqlserver the free one.
I use the settings as below:

database.default.hostname = 192.36.247.5\SQLEXPRESS   You see I use the direct ip-adres of the server
database.default.database = Your database name
database.default.username = your username
database.default.password = your password
database.default.DBDriver = SQLSRV
database.default.port = 1433
database.default.DBPrefix
=
Reply
#3
Photo 

My connection is as shown in the image. with the same data I normally connect to the database through heidiSQL
[Image: error2.png?1648580379][Image: error.png?1648580568]
Reply
#4

(03-29-2022, 12:03 PM)Engenharia 2 Wrote: My connection is as shown in the image. with the same data I normally connect to the database through heidiSQL
[Image: error2.png?1648580379][Image: error.png?1648580568]

Why do you use port: 391?
Standard MsSqlserver uses port: 1433
Reply
#5

the port used in my database is 391, so it is 391
Reply




Theme © iAndrew 2016 - Forum software by © MyBB