Showing posts with label authentication. Show all posts
Showing posts with label authentication. Show all posts

Sunday, March 25, 2012

Can not connect to SQL Server 2005 Developer edition remotely

I setup a SQL Server 2005 Developer edition, which is bundled with Visual Studio .NET 2005 Professional edition. The SQL Server authentication mode is enabled in this database server. But when I try to connect it from another PC using SQL Server authentication, it failed. Is it a limitation on the developer edition?

Hi,

although you didn′t post the erro rmessage, I assume that remote connectivity is not enabled, change the remote flag which can be see in this screen:

http://www.sqlserver2005.de/SharedFiles/Remoteconnection.jpg

HTH, jens suessmeyer.

http://www.sqlserver2005.de

|||

Hi,

I still can't login remotely to the server, the error message is:

Cannot connect to 137.xxx.xx.xx\STD2005
error: 26 - Error Locating Sever/Instance Specified

I setup a MSSQL Server 2005 Standard edition on a remote computer 137.xxx.xx.xx (I'm sure the network has no any problem, since this remote computer has a SQL2000 server that I can use the Enterprise Manager in my PC to connect to it), and the named instance called STD2005. I try to connect to it through the Management Studio in my PC, using the sa account and one acccount that I created before, both not work. Any idea?

|||Hi,

so you are usinga named instance. I assume you didn′t put the named instance on the defaulport, which is as a default used to connect to a sql server instance. If the named instances has another port you have to specify it with the syntax:

Servername\InstanceName,Portnumber

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||Also: Can we rule out a firewall problem? Is the SQL Browser service running on the server machine?

Best,
Nils Loeber
|||

In SQL 2005 Developer Edition TCP\IP is disabled by default. You can go to Server Configuration and enable it. I hope that helps.

JB

Thursday, March 22, 2012

Can not connect to SQL server 2000 on windows authentication mode

Hello everyone,

We have SQL server 2000 on windows 2000. From our desktop MS Access was connected to database through ODBC. Since yesterday (after our consultant had updated another asp application in the same server) we are getting “SQL Server Error: 18452. ….. Login failed for user ‘(null)’. Reason: not associated with a trusted SQL Server connection. “

The consultant saying he did not touch any settings on server (?). And the problem is even server’s security property shows it has mixed mode authentication. But I cannot connect to server even through my SQL server enterprise manager in windows authentication mode. I can connect if I use SQL server authentication. Through ODBC I can connect also and test fine, if I use SQL authentication. But the Access application wouldn’t connect using SQL authentication in ODBC.

So, can any one help me to find out what else could be done to make sure that the server is going to accept windows authentication. I’m thinking any other settings or registry change … etc. Please help.

Thanks

You are getting the error during the communication with the Web Servcie, right ? Then you probably changed the Security of the ASP application to not allow Integrated authentication. Are you using an asp or an ASP.nET application ?

HTH, jens K. Suessmeyer.

http://www.sqlserver2005.de|||

Hi Jens,

No our web service is fine. We are trying to connect through ODBC and SQL enterprise manager.

|||

Hi Taposh,

Did any of the security settings on the SQL Server itself changed? (ie. was some Windows user account access removed from SQL security settings?) You can verify this by using Enterprise manager and login using "sa" and expand the server; expand Security, and then click Logins.

Unfortunately, there are a few scenarios in which you will receive an 18452 error back from the server. Some of the typical scenarios include; missing login rights for Windows users; client and server on different domains (Kerberos trust issue).

Please have a look at http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx

I would also recommend searching on the web using the error message as the key phrase.

HTH,
Jimmy

Can not connect to MS SQL server

Hi I have problems with connecting to MS SQL server.

SQL server is configured to log in with Windows Authentication mode.

The only thing I need is to configure the web.config.

My configuration in web.config-file is as follow:

<appSettings>

<addkey="forumDSN"value="server=localhost;uid=;pwd=;database=forum"/>

</appSettings>

I get the following message afte running my ASP page:

Exception Details:System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.

HELP please.


Is the SQL Server on the same machine as the Web server? In the real Web.Config, to you provide an actual uid and password?|||

Hey hi,

1st u check out wheter the sql server whichs running has got any name...coz, some times the local host is not taken as the default instead, its named with some name.

to check that, just open the sql server service manager, there u can C Server :"........"

that name should be used.

also for further details go through the following link

http://www.functionx.com/sqlserver/Lesson01.htm

also the this one for the security issues

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetch12.asp

hope this helps

all the best

|||

yes, It is in the same machine running WindowsXP

thanks

sql

Monday, March 19, 2012

Can no longer connect to SQL Server 2000 using ADO after XP SP2

I can no longer connect to SQL Server 2000 using ADO after installing XP SP2.
I receive authentication error. I have even turned off all firewalls.
I also installed SQL Server Service Pack 4.
I also added the SQL Server data source(ODBC). I am using Windows
Authentication. When I test the ODBC data source it connects successfully.
I just can not access it via ADO.
The receive the error message when I try to open the connection in my program.
Conn.Open
"SQL Server does not exist or access denied."
Can anyone tell me what else I need to do?
RonRon wrote:
> I can no longer connect to SQL Server 2000 using ADO after installing
> XP SP2. I receive authentication error. I have even turned off all
> firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program. Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
Can you tell us what your server name is and what connection string you
are passing to the ADO connection object?
--
David Gugick
Quest Software
www.imceda.com
www.quest.com|||The server name is: S002542194
Conn.Provider = "SQLOLEDB"
Conn.Properties("Data Source").Value = "S002542194"
Conn.Properties("Initial Catalog").Value = dbstring
Conn.Properties("User ID").Value = user
Conn.Properties("Password").Value = pswd
"David Gugick" wrote:
> Ron wrote:
> > I can no longer connect to SQL Server 2000 using ADO after installing
> > XP SP2. I receive authentication error. I have even turned off all
> > firewalls.
> > I also installed SQL Server Service Pack 4.
> > I also added the SQL Server data source(ODBC). I am using Windows
> > Authentication. When I test the ODBC data source it connects
> > successfully.
> > I just can not access it via ADO.
> > The receive the error message when I try to open the connection in my
> > program. Conn.Open
> > "SQL Server does not exist or access denied."
> > Can anyone tell me what else I need to do?
> > Ron
> Can you tell us what your server name is and what connection string you
> are passing to the ADO connection object?
> --
> David Gugick
> Quest Software
> www.imceda.com
> www.quest.com
>|||FAQ: How Windows XP Service Pack 2 (SP2) Affects SQL Server and MSDE
http://www.microsoft.com/sql/techinfo/administration/2000/security/winxpsp2faq.asp
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Ron" <Ron@.discussions.microsoft.com> wrote in message
news:E8DD2341-1928-4D7E-975A-A53294AA05E8@.microsoft.com...
>I can no longer connect to SQL Server 2000 using ADO after installing XP
>SP2.
> I receive authentication error. I have even turned off all firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program.
> Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
>
>|||These are the links I have already been to and told me to install SQL Server
SP4.
I did that and it still doesn't work.
What else can I do?
"Mike Epprecht (SQL MVP)" wrote:
> FAQ: How Windows XP Service Pack 2 (SP2) Affects SQL Server and MSDE
> http://www.microsoft.com/sql/techinfo/administration/2000/security/winxpsp2faq.asp
>
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Ron" <Ron@.discussions.microsoft.com> wrote in message
> news:E8DD2341-1928-4D7E-975A-A53294AA05E8@.microsoft.com...
> >I can no longer connect to SQL Server 2000 using ADO after installing XP
> >SP2.
> > I receive authentication error. I have even turned off all firewalls.
> > I also installed SQL Server Service Pack 4.
> > I also added the SQL Server data source(ODBC). I am using Windows
> > Authentication. When I test the ODBC data source it connects
> > successfully.
> > I just can not access it via ADO.
> > The receive the error message when I try to open the connection in my
> > program.
> > Conn.Open
> > "SQL Server does not exist or access denied."
> > Can anyone tell me what else I need to do?
> > Ron
> >
> >
> >
>
>|||Ron wrote:
> The server name is: S002542194
> Conn.Provider = "SQLOLEDB"
> Conn.Properties("Data Source").Value = "S002542194"
> Conn.Properties("Initial Catalog").Value = dbstring
> Conn.Properties("User ID").Value = user
> Conn.Properties("Password").Value = pswd
Make sure there isn't an ODBC data source on the PC with the same name.
If all else fails, try and create an alias from the SQL Server Client
Network Utility using the desire protocol and see if that helps.
--
David Gugick
Quest Software
www.imceda.com
www.quest.com|||David
There is no other ODBC data source on the PC with the same name.
Can you explain how to create an alias from the SQL Server Client
Network Utility using the desire protocol?
"David Gugick" wrote:
> Ron wrote:
> > The server name is: S002542194
> > Conn.Provider = "SQLOLEDB"
> > Conn.Properties("Data Source").Value = "S002542194"
> > Conn.Properties("Initial Catalog").Value = dbstring
> > Conn.Properties("User ID").Value = user
> > Conn.Properties("Password").Value = pswd
> Make sure there isn't an ODBC data source on the PC with the same name.
> If all else fails, try and create an alias from the SQL Server Client
> Network Utility using the desire protocol and see if that helps.
> --
> David Gugick
> Quest Software
> www.imceda.com
> www.quest.com
>|||Ron wrote:
> David
> There is no other ODBC data source on the PC with the same name.
> Can you explain how to create an alias from the SQL Server Client
> Network Utility using the desire protocol?
Sure. Try both named piped and tcp-ip and use the alias name in the
connection string to see if that works. If it does, it won't address the
problem, but will let you know that you can see the server from that
client.
Snipped from the Coefficient online help...
1.. Run the SQL Server Client Network Utility. You should find this
item under your Start Menu and then under the SQL Server program group.
2.. Click the Alias tab
3.. Click the Add button to add a new alias
4.. Select the Network Library you want to use with the alias. We
recommend you use TCP/IP whenever possible.
5.. Type in the name for the alias in the Server Alias entry field.
This can be any name, but it should not conflict with the real name of
any server or any other alias defined on the client.
6.. Enter the real server name in the Server Name entry field. For a
default instance of SQL Server, specify the server name as it is defined
by the server. For a named instance of SQL Server 2000+, use the
SERVER_NAME\INSTANCE_NAME format.
7.. For TCP/IP, you should elect to Dynamically Determine Port if your
SQL Server is defined on the default port (normally 1433). For a custom
port number, uncheck this option and enter the correct TCP/IP port
number.
8.. For Named Pipes, you will see the default pipe name, which is
normally the correct one. For custom pipe names, enter the correct name
in the Pipe Name entry field.
9.. Press OK twice to exit the Client Network Utility
10.. When you register the server in Coefficient, use the alias name
instead of the real server name.
David Gugick
Quest Software
www.imceda.com
www.quest.com

Can no longer connect to SQL Server 2000 using ADO after XP SP2

I can no longer connect to SQL Server 2000 using ADO after installing XP SP2
.
I receive authentication error. I have even turned off all firewalls.
I also installed SQL Server Service Pack 4.
I also added the SQL Server data source(ODBC). I am using Windows
Authentication. When I test the ODBC data source it connects successfully.
I just can not access it via ADO.
The receive the error message when I try to open the connection in my progra
m.
Conn.Open
"SQL Server does not exist or access denied."
Can anyone tell me what else I need to do?
RonRon wrote:
> I can no longer connect to SQL Server 2000 using ADO after installing
> XP SP2. I receive authentication error. I have even turned off all
> firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program. Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
Can you tell us what your server name is and what connection string you
are passing to the ADO connection object?
David Gugick
Quest Software
www.imceda.com
www.quest.com|||FAQ: How Windows XP Service Pack 2 (SP2) Affects SQL Server and MSDE
http://www.microsoft.com/sql/techin...faq.asp

--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Ron" <Ron@.discussions.microsoft.com> wrote in message
news:E8DD2341-1928-4D7E-975A-A53294AA05E8@.microsoft.com...
>I can no longer connect to SQL Server 2000 using ADO after installing XP
>SP2.
> I receive authentication error. I have even turned off all firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program.
> Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
>
>

Can no longer connect to SQL Server 2000 using ADO after XP SP2

I can no longer connect to SQL Server 2000 using ADO after installing XP SP2.
I receive authentication error. I have even turned off all firewalls.
I also installed SQL Server Service Pack 4.
I also added the SQL Server data source(ODBC). I am using Windows
Authentication. When I test the ODBC data source it connects successfully.
I just can not access it via ADO.
The receive the error message when I try to open the connection in my program.
Conn.Open
"SQL Server does not exist or access denied."
Can anyone tell me what else I need to do?
Ron
Ron wrote:
> I can no longer connect to SQL Server 2000 using ADO after installing
> XP SP2. I receive authentication error. I have even turned off all
> firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program. Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
Can you tell us what your server name is and what connection string you
are passing to the ADO connection object?
David Gugick
Quest Software
www.imceda.com
www.quest.com
|||FAQ: How Windows XP Service Pack 2 (SP2) Affects SQL Server and MSDE
http://www.microsoft.com/sql/techinf...inxpsp2faq.asp
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Ron" <Ron@.discussions.microsoft.com> wrote in message
news:E8DD2341-1928-4D7E-975A-A53294AA05E8@.microsoft.com...
>I can no longer connect to SQL Server 2000 using ADO after installing XP
>SP2.
> I receive authentication error. I have even turned off all firewalls.
> I also installed SQL Server Service Pack 4.
> I also added the SQL Server data source(ODBC). I am using Windows
> Authentication. When I test the ODBC data source it connects
> successfully.
> I just can not access it via ADO.
> The receive the error message when I try to open the connection in my
> program.
> Conn.Open
> "SQL Server does not exist or access denied."
> Can anyone tell me what else I need to do?
> Ron
>
>

Saturday, February 25, 2012

Can I use Forms Authentication with reporting services?

Hello, In my application I can configure if the user need to use forms or activde direcory, there may be customers that dont have active directory so Must make a login form, the question is how can I integrate forms authentication with reporting services?Yes, see the link below for a sample: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql2k/html/ufairs.asp

Thanks
Tudor