Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Connectivity issue on LAN 1

Status
Not open for further replies.

Qamar Zaman

Programmer
Aug 9, 2019
7
PK
Hi Programmers,

i have very small knowledge about SQL Server. i have a application created in VFP9 back-end using SQL Server 2017. Application run successfully on local system.
using following string
nHandle = SQLStringConnect("Driver={SQL Server};Server=DESKTOP-494255d;Database=QAMAR;Uid=;Pwd=;")

now i want to run application on local area network (LAN). how to connect SQL Server Database on an other PC (workstation).

please suggest me with VFP code.

Thanks in advance.
 
The connection stays that way as it already has the server name and not "(local)" in the Server option. What you need to change to allow non-local connections and you do that in the SQL Server configuration manager. There's a bit more to do, here's a comprehensive walkthrough:


Bye, Olaf.

Olaf Doschke Software Engineering
 
Olaf

Thank you soooooo much.

you are so much genius man. Always you help me in many problem.
Thanks Again.

Bye, Qamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top