How to use SQLConnect or SQLDriverConnect

后端 未结 1 1308
鱼传尺愫
鱼传尺愫 2020-12-17 06:57

I am trying to connect to a MS-SQL server on the internet. What should I put on the ServerName parameter of SQLConnect?

I\'ve tried this, but it fails:



        
相关标签:
1条回答
  • 2020-12-17 07:26

    Here is a trick with SQL Server Connection Strings. Create a file on you desktop called test.udl. Once created, double click and open the file. You will be prompted to set up the Database Connection. Configure the connection as needed. When Finished, test the connection. Finally close the wizard. Then right click the test.udl file and open with notepad. You will see the connection string you created.

    0 讨论(0)
提交回复
热议问题