can't connect sql server if the port is't 1433
Posted: Tue 29 Mar 2011 10:57
if the SQL Server's port isn't 1433.
the code didn't connected
but this code is ok
the code didn't connected
Code: Select all
with UniConnection1 do
begin
Connected := False;
database:=ServerDB;
Username:=ServerUser;
port:=ServerPort;
Password:=ServerPass;
Server:=ServerIP;
Connected := True;
end;
Code: Select all
with UniConnection1 do
begin
Connected := False;
database:=ServerDB;
Username:=ServerUser;
// port:=ServerPort;
Password:=ServerPass;
Server:=ServerIP+','+ServerPort;
Connected := True;
end;