Solved

MS SQL 2005 :: WorkGroup connection

Posted on 2008-06-10
13
369 Views
Last Modified: 2013-11-23
Dear Experts,

I am trying to publish my software on a customers network with a workgroup configuration.
Using Delphi 7 and SQL 2005.

I have set the SQL Server to Mixed Mode Authentication and have also change it to allow remote connection.

My application will not connect to the server unless I right click on it and select the "Run As" administrator options. Where is the problem? I have change settings on SQL but no success.
I am wondering if the security issues is not on Windows itself.

Please!
0
Comment
Question by:Marius0188
  • 6
  • 5
  • 2
13 Comments
 
LVL 21

Expert Comment

by:developmentguru
ID: 21751682
SQL Server communicates on port 1433 through TCP/IP using sockets.  Check to see if the port is being blocked by a firewall or something similar.

http://support.microsoft.com/kb/287932
0
 
LVL 11

Expert Comment

by:Salim Fayad
ID: 21752349
Try to create a Sql user and use it to connect to the Sql server. I guess it is a security problem.
0
 

Author Comment

by:Marius0188
ID: 21754442
But I am using the sa user and it has all the rights and access to the db.
What else can I check for?

Ports is open and all firewalls been disabled, server & client.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 11

Expert Comment

by:Salim Fayad
ID: 21757003
I have couple of questions:
1. Are you impersonating your application to one user?
2. Are you using the "sa" user in your connection string to the database, or are you setting "SSPI = true"?
0
 

Author Comment

by:Marius0188
ID: 21758759
I am using the sa user in connection string.
Did originally tried Windows Authentication but when it failed I tried "sa" login.
I have create several "Logins" with full rights, did not work.
I have create several "Users" on the relevant db with full rights, did not work.

I have checked the port 1433 is open.
I can connect with SQL Studio Express from the Client to Server with both options:
1. WIndows Authentication
2. Mixed Mode, using any of all the different users and logins I've created.

But interesting, given all the above. I can not connect with telnet to the server on port 1433 but I then used Arez Port Scanner software and it only reported 1 port as closed, port 192.

How can this possible be right?

Can someone please give me the connection string using the following values:
ServerName = "nvsp"
UserID = "sa"
Password = "12345"

as I am thinking that I am going mad and maybe have the connection string totally wrong.
NB: I won't use Windows Authentication.


Pleeeeeeeeassssse Help. :)
0
 
LVL 21

Expert Comment

by:developmentguru
ID: 21761615
 I think the server name is your issue.  If they are not on your domain then they will not get DNS lookup for a server name.  You may need to set up a VPN as this would make them part of your network then, instead using the IP address of your server instad of it's name (removing the need for DNS).  A good test for this is to see if you can ping your database server by name or IP address.
0
 
LVL 11

Expert Comment

by:Salim Fayad
ID: 21763931
Here is the connection string: (where is your DB?)
Data Source=nvsp; Initial Catalog=DatabaseName;uid=sa;pwd=12345;

Open in new window

0
 

Author Comment

by:Marius0188
ID: 21810424
My database is on the server, NVSP.
0
 

Author Comment

by:Marius0188
ID: 21810440
BTW: It is on a workgroup not domain.
But with SQL Management Studio Express I can connect to server db from client using Windows or Mixed mode. Why can;t my application do that?
0
 
LVL 11

Expert Comment

by:Salim Fayad
ID: 21812993
I need to know the following:
- Server Name
- Connection String
0
 

Author Comment

by:Marius0188
ID: 21828943
Server Name: NVSP
Database Name: NVS

ConnectionString :=

Provider=SQLOLEDB.1;
Password=mvt0188;
Persist Security Info=True;
User ID=sa;
Initial Catalog=NvS;
Data Source=NVSP
0
 
LVL 11

Accepted Solution

by:
Salim Fayad earned 500 total points
ID: 21829237
Try to change your connection string to the following:

Provider=SQLOLEDB;
Data Source = NVSP;
Initial Catalog=NVS;
Integrated Security=SSPI

For more information about how to write your connection string:
http://www.connectionstrings.com/
0
 

Author Comment

by:Marius0188
ID: 21830831
I have tried that as well, except for the "SQLOLEDB".
Only used "SQLOLEDB.1".

What is the difference?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sql Permission 6 59
MS SQL page split per second is high 19 92
Delphi...Split view - idea? 1 67
Delphi: sending SMS on android platform 1 17
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now