Showing posts with label pro. Show all posts
Showing posts with label pro. Show all posts

Thursday, March 22, 2012

Cannot Deploy Report - Please Help

I am trying to set up Reporting Services. I am using SQL Server 2005 on Win XP Pro.

I installed service pack 2 for SQL Server 2005. The database looks to be set up in the configuration manager. When I try to deploy the report I get the following message:

A connection could not be made to the report server http://localhost/ReportServer

When trying to open the ReportServer folder in IIS I get another message:

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Exception has been thrown by the target of an invocation.
Could not load file or assembly 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.


I am not sure what SharePoint is and why I need it. I am just trying to set up simple reports on a local host SQL database and IIS on a standalone PC.

Any help appreciated.

Thanks

Hi Troy23

I don't know if this will help but change the http://localhost/reportserver to http://ipaddresss/reportserver or http://servername/reportserver.

Hope it helps,

Kind Regards,

Joos Nieuwoudt

|||

What is the value for "Server Mode" in the RS Config. tool's "Database Setup" tab?

thanx,
Prash

|||

Prash

Many thanks for your reply. I had the check box for 'SharePoint' ticked. I unticked it and set a few permissions and it worked.

I would like to ask the difference between writing a simple report with report builder and using the report model. I presume there is more to it than the fact it can be utilised on a web server.

Thanks

|||Hi, Your IIS is telling you, or certainly think you have sharepoint installed and you installation of Reportsserver is no longer valid, we sometimes get corruption sin installs, your best bet is remove all instances of Sharepoint, If you can find it? if not dont worry just go to SQL install and remove all instances of report server and then re-install from scratch, this will sort out your issues, Make sure you do a proper reboot in between remove and re-install.

Andy|||Report Builder reports must be written against a report model. You cannot use Report Builder directly against a SQL database (for example). You must create a model for the database. You can do so in Report Manager, in Business Intelligence Development Studio or in Management Studio. Hope this answers your question.

Cannot Deploy Report - Please Help

I am trying to set up Reporting Services. I am using SQL Server 2005 on Win XP Pro.

I installed service pack 2 for SQL Server 2005. The database looks to be set up in the configuration manager. When I try to deploy the report I get the following message:

A connection could not be made to the report server http://localhost/ReportServer

When trying to open the ReportServer folder in IIS I get another message:

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Exception has been thrown by the target of an invocation.
Could not load file or assembly 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.


I am not sure what SharePoint is and why I need it. I am just trying to set up simple reports on a local host SQL database and IIS on a standalone PC.

Any help appreciated.

Thanks

Hi Troy23

I don't know if this will help but change the http://localhost/reportserver to http://ipaddresss/reportserver or http://servername/reportserver.

Hope it helps,

Kind Regards,

Joos Nieuwoudt

|||

What is the value for "Server Mode" in the RS Config. tool's "Database Setup" tab?

thanx,
Prash

|||

Prash

Many thanks for your reply. I had the check box for 'SharePoint' ticked. I unticked it and set a few permissions and it worked.

I would like to ask the difference between writing a simple report with report builder and using the report model. I presume there is more to it than the fact it can be utilised on a web server.

Thanks

|||Hi, Your IIS is telling you, or certainly think you have sharepoint installed and you installation of Reportsserver is no longer valid, we sometimes get corruption sin installs, your best bet is remove all instances of Sharepoint, If you can find it? if not dont worry just go to SQL install and remove all instances of report server and then re-install from scratch, this will sort out your issues, Make sure you do a proper reboot in between remove and re-install.

Andy|||Report Builder reports must be written against a report model. You cannot use Report Builder directly against a SQL database (for example). You must create a model for the database. You can do so in Report Manager, in Business Intelligence Development Studio or in Management Studio. Hope this answers your question.

Tuesday, March 20, 2012

Cannot Debug SQL 2005 Stored Procedures in VS 2005

I am having trouble in consistently debugging T-SQL stored procedures in SQL
2005 using VS 2005 Pro. I have enabled debugging on the connection in the
Server Explorer and enable CLR Integration in the Surface Area Configuration
tool. At one point I could step into the sproc but now I cannot. What has
gone wrong. How can I be able to consistently debug T-SQL sprocs?
Any input would be appreciated."=?Utf-8?B? RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==
?="
<EagleRedHighFlyingBirdscom@.discussions.microsoft.com> wrote in
news:2EC86A08-79A4-44CC-ABDF-72DAE46D1BF0@.microsoft.com:

> I am having trouble in consistently debugging T-SQL stored procedures
> in SQL 2005 using VS 2005 Pro. I have enabled debugging on the
> connection in the Server Explorer and enable CLR Integration in the
> Surface Area Configuration tool. At one point I could step into the
> sproc but now I cannot. What has gone wrong. How can I be able to
> consistently debug T-SQL sprocs?
>
Hmm, in order to debug T-SQL proc's you should not have to do any
enabling at all.
1. Open VS 2005
2. Open Server Explorer
3. Create a connection to the database the proc is in
4. Expand the database and drill down to Stored Procedures, expand.
5. Right click on the proc and choose "Step Into Stored Procedure".
6. Debug
What happens for you when you try the above?
Niels
****************************************
**********
* Niels Berglund
* http://staff.develop.com/nielsb
* nielsb@.no-spam.develop.com
* "A First Look at SQL Server 2005 for Developers"
* http://www.awprofessional.com/title/0321180593
****************************************
**********|||The debugger starts but when I either step into or step to the next statemen
t
in the proc the proc runs to completion. I have set a breakpoint in the pro
c
only to have it disabled when debugging starts.
"EagleRed@.HighFlyingBirds.com" wrote:

> I am having trouble in consistently debugging T-SQL stored procedures in S
QL
> 2005 using VS 2005 Pro. I have enabled debugging on the connection in the
> Server Explorer and enable CLR Integration in the Surface Area Configurati
on
> tool. At one point I could step into the sproc but now I cannot. What ha
s
> gone wrong. How can I be able to consistently debug T-SQL sprocs?
> Any input would be appreciated.|||Here's some additional information. The disabled breakpoint displays a
tooltip that says the breakpoint will not be hit because the object
containing the breakpoint has not been loaded. What's going on? I have bee
n
able to debug and hit breakpoints, but I cannot do it consistently and right
now it simply isn't working.
"Niels Berglund" wrote:

> "=?Utf-8?B? RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==
?="
> <EagleRedHighFlyingBirdscom@.discussions.microsoft.com> wrote in
> news:2EC86A08-79A4-44CC-ABDF-72DAE46D1BF0@.microsoft.com:
>
> Hmm, in order to debug T-SQL proc's you should not have to do any
> enabling at all.
> 1. Open VS 2005
> 2. Open Server Explorer
> 3. Create a connection to the database the proc is in
> 4. Expand the database and drill down to Stored Procedures, expand.
> 5. Right click on the proc and choose "Step Into Stored Procedure".
> 6. Debug
> What happens for you when you try the above?
> Niels
> --
> ****************************************
**********
> * Niels Berglund
> * http://staff.develop.com/nielsb
> * nielsb@.no-spam.develop.com
> * "A First Look at SQL Server 2005 for Developers"
> * http://www.awprofessional.com/title/0321180593
> ****************************************
**********
>

Monday, March 19, 2012

Cannot create new SQL database.....

I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted.
But, when I right click on "Data Connections" in the Server Explorer and
choose "Create New SQL Server Database..." and attempt to create a new
database on the local PC, I get the following error "An error has occurred
while establishing a connection to the server. When connecting to SQL
Server 2005, this failure may be caused by the fact that under default
settings SQL Server does not allow remote connections. (provider:
NamedPipes Provider, error:40 - Could not open a connection to SQL Server)".
Any idea what this is?You might get some information by looking in the latest error log in the
c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It looks
like your connection is trying to use named pipes to connect and named pipes
are disabled by default in SQL Express so you might try enabling named pipes
with the SQL Server Configuration Manager.(network configuration/protocols)
You may also have to allow SQL Server to open connections through the XP
firewall but that's usually not necessary.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"wally" <wally@.mart.com> wrote in message
news:7PDpg.16987$7K2.406@.bignews2.bellsouth.net...
>I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted.
>But, when I right click on "Data Connections" in the Server Explorer and
>choose "Create New SQL Server Database..." and attempt to create a new
>database on the local PC, I get the following error "An error has occurred
>while establishing a connection to the server. When connecting to SQL
>Server 2005, this failure may be caused by the fact that under default
>settings SQL Server does not allow remote connections. (provider:
>NamedPipes Provider, error:40 - Could not open a connection to SQL
>Server)".
> Any idea what this is?
>|||Thanks for the pointers.....but no luck.
To make sure that my installation of SQL Express was good, I uninstalled SE
and deleted the directory it leaves behind.
I restarted the dev box, downloaded SE Basic from
http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
with the client tools selected.
I tried again....same error.
I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
same error.
I disabled the Windows firewall and tried again....same error.
At this point, I am at a loss as to what the problem could be.
"Roger Wolter[MSFT]" <rwolter@.online.microsoft.com> wrote in message
news:uHhVVQXnGHA.4452@.TK2MSFTNGP05.phx.gbl...
> You might get some information by looking in the latest error log in the
> c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory. It
> looks like your connection is trying to use named pipes to connect and
> named pipes are disabled by default in SQL Express so you might try
> enabling named pipes with the SQL Server Configuration Manager.(network
> configuration/protocols) You may also have to allow SQL Server to open
> connections through the XP firewall but that's usually not necessary.

> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "wally" <wally@.mart.com> wrote in message
> news:7PDpg.16987$7K2.406@.bignews2.bellsouth.net...
>|||@.!#@.#!@.$!@.......The answer is that you CANNOT connect to SQL Express using
the machine name (nevermind that is what is shown in the drop down for the
connection and SQL Express is running as a service that could be queried).
You must manually add "\SQLExpress" (i.e. "machineName\SQLExpress") to be
able to connect to it.
Now just why didn't those brilliant Microsoft minds code that OR AT LEAST
LET US KNOW ABOUT IT?
"wally" <wally@.mart.com> wrote in message
news:eFHpg.81373$qd2.64435@.bignews6.bellsouth.net...
> Thanks for the pointers.....but no luck.
> To make sure that my installation of SQL Express was good, I uninstalled
> SE and deleted the directory it leaves behind.
> I restarted the dev box, downloaded SE Basic from
> http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
> with the client tools selected.
> I tried again....same error.
> I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
> same error.
> I disabled the Windows firewall and tried again....same error.
> At this point, I am at a loss as to what the problem could be.
>
> "Roger Wolter[MSFT]" <rwolter@.online.microsoft.com> wrote in message
> news:uHhVVQXnGHA.4452@.TK2MSFTNGP05.phx.gbl...
>
>
>
>|||Wally,
Have you installed in past some Beta SQL server products, than you have to
look in the mydocuments folders, it is possible that there are than some
orphaned files. Set those temportaly an other place and try to install
SQLExpress again.
Cor
"wally" <wally@.mart.com> schreef in bericht
news:eFHpg.81373$qd2.64435@.bignews6.bellsouth.net...
> Thanks for the pointers.....but no luck.
> To make sure that my installation of SQL Express was good, I uninstalled
> SE and deleted the directory it leaves behind.
> I restarted the dev box, downloaded SE Basic from
> http://msdn.microsoft.com/vstudio/express/sql/download/ and reinstalled it
> with the client tools selected.
> I tried again....same error.
> I enabled both TCP/IP and Named Pipes, restarted the dev box and got the
> same error.
> I disabled the Windows firewall and tried again....same error.
> At this point, I am at a loss as to what the problem could be.
>
> "Roger Wolter[MSFT]" <rwolter@.online.microsoft.com> wrote in message
> news:uHhVVQXnGHA.4452@.TK2MSFTNGP05.phx.gbl...
>
>
>
>|||Thanks for the help Cor, but the name thing was the issue.
"Cor Ligthert [MVP]" <notmyfirstname@.planet.nl> wrote in message
news:uAUuyfZnGHA.4172@.TK2MSFTNGP03.phx.gbl...
> Wally,
> Have you installed in past some Beta SQL server products, than you have to
> look in the mydocuments folders, it is possible that there are than some
> orphaned files. Set those temportaly an other place and try to install
> SQLExpress again.
> Cor
> "wally" <wally@.mart.com> schreef in bericht
> news:eFHpg.81373$qd2.64435@.bignews6.bellsouth.net...
>|||Wally,
Sorry I did not look well to your follow up. AFAIK does a dot this as well.
Cor
"wally" <wally@.mart.com> schreef in bericht
news:uYIpg.81378$qd2.31318@.bignews6.bellsouth.net...
> Thanks for the help Cor, but the name thing was the issue.
>
> "Cor Ligthert [MVP]" <notmyfirstname@.planet.nl> wrote in message
> news:uAUuyfZnGHA.4172@.TK2MSFTNGP03.phx.gbl...
>|||On Sun, 2 Jul 2006 01:12:26 -0400, "wally" <wally@.mart.com> wrote:

>@.!#@.#!@.$!@.......The answer is that you CANNOT connect to SQL Express using
>the machine name (nevermind that is what is shown in the drop down for the
>connection and SQL Express is running as a service that could be queried).
>You must manually add "\SQLExpress" (i.e. "machineName\SQLExpress") to be
>able to connect to it.
>Now just why didn't those brilliant Microsoft minds code that OR AT LEAST
>LET US KNOW ABOUT IT?
Wally,
The machineName\instanceName thing is well documented in assorted
places. But there is just so much information around that it may not
be easy to find, particularly if you don't know that you need to look
for it.
Andrew Watt MVP

Cannot create Linked Server.

Hello.
Can you help me?
I need create Linked server for Visual Fox Pro, but I can not create it.
For DBase no problem, but for VFP, no.
May be anyone have script?
Thank you very much.Try...
exec sp_addlinkedserver
'myVFP',
'',
'MSDASQL',
null,
null,
'Driver=Microsoft Visual Foxpro Driver;
DBQ=;
SourceType=DBF;
SourceDB=x:\VFP'
exec sp_addlinkedsrvlogin 'myVFP',false,null,null,null
-oj
Rac v2.2 & QALite!
http://www.rac4sql.net
"Yuriy B. Belyaev" <jurijb@.mail.ru> wrote in message
news:%23LT5fylhDHA.2536@.TK2MSFTNGP10.phx.gbl...
> Hello.
> Can you help me?
> I need create Linked server for Visual Fox Pro, but I can not create it.
> For DBase no problem, but for VFP, no.
> May be anyone have script?
> Thank you very much.
>
>|||I try
select count(*) from myVFP...goodsfox ("goodsfox" is a table name)
this is message from SQL Server:
Server: Msg 7313, Level 16, State 1, Line 1
Invalid schema or catalog specified for provider 'MSDASQL'.
"oj" <nospam_ojngo@.home.com> wrote in message
news:O9tzICmhDHA.3276@.tk2msftngp13.phx.gbl...
> Try...
> exec sp_addlinkedserver
> 'myVFP',
> '',
> 'MSDASQL',
> null,
> null,
> 'Driver=Microsoft Visual Foxpro Driver;
> DBQ=;
> SourceType=DBF;
> SourceDB=x:\VFP'
> exec sp_addlinkedsrvlogin 'myVFP',false,null,null,null
>
> --
> -oj
> Rac v2.2 & QALite!
> http://www.rac4sql.net
>
> "Yuriy B. Belyaev" <jurijb@.mail.ru> wrote in message
> news:%23LT5fylhDHA.2536@.TK2MSFTNGP10.phx.gbl...
> > Hello.
> >
> > Can you help me?
> > I need create Linked server for Visual Fox Pro, but I can not create it.
> > For DBase no problem, but for VFP, no.
> >
> > May be anyone have script?
> > Thank you very much.
> >
> >
> >
>|||do:
select *
from openquery(myVFP,'select count(*) from goodsfox')
-oj
RAC v2.2 & QALite!
http://www.rac4sql.net
"Yuriy B. Belyaev" <jurijb@.mail.ru> wrote in message
news:e17ZsHmhDHA.3784@.tk2msftngp13.phx.gbl...
> I try
> select count(*) from myVFP...goodsfox ("goodsfox" is a table name)
> this is message from SQL Server:
> Server: Msg 7313, Level 16, State 1, Line 1
> Invalid schema or catalog specified for provider 'MSDASQL'.
>
> "oj" <nospam_ojngo@.home.com> wrote in message
> news:O9tzICmhDHA.3276@.tk2msftngp13.phx.gbl...
> > Try...
> >
> > exec sp_addlinkedserver
> > 'myVFP',
> > '',
> > 'MSDASQL',
> > null,
> > null,
> > 'Driver=Microsoft Visual Foxpro Driver;
> > DBQ=;
> > SourceType=DBF;
> > SourceDB=x:\VFP'
> >
> > exec sp_addlinkedsrvlogin 'myVFP',false,null,null,null
> >
> >
> > --
> > -oj
> > Rac v2.2 & QALite!
> > http://www.rac4sql.net
> >
> >
> > "Yuriy B. Belyaev" <jurijb@.mail.ru> wrote in message
> > news:%23LT5fylhDHA.2536@.TK2MSFTNGP10.phx.gbl...
> > > Hello.
> > >
> > > Can you help me?
> > > I need create Linked server for Visual Fox Pro, but I can not create
it.
> > > For DBase no problem, but for VFP, no.
> > >
> > > May be anyone have script?
> > > Thank you very much.
> > >
> > >
> > >
> >
> >
>

Friday, February 24, 2012

Cannot connect to Sql Server 2005 Express. Any idea why ?

Hi everybody
I have a system with :
WinXP Pro, MSDE 2000, Framework 2.0 beta. On top of it i installed SqlServer
2005 Beta with Mixed Mode. I am using Query Analyzer and Enterperise Manager
from SQLServer 2000 to connect to it (manual says I can) but with no
success. I tried to log on with windows authentication as well as with Sql
authentication . I tried the following names to connect :
(local)\SQLEXPRESS; COMP_NAME\SQLEXPRESS; SQLEXPRESS; MSSQL$SQLEXPRESS and
so on but never got connected. It always say that the
SQL Server does not exist or Access denied.
I checked in the services where it is set to automatic and is running. I
also stopped and restarted but with no success. What i am missing ?
At the end I uninstalled everything and reinstalled only Framework 2.0 and
Sql Server 2005 Beta but having the same problem.
Anyone know how to fix this ?
Thanks in advance
Raja
hi, Raja,
"Ing. Rajesh Kumar" <iambad(Without This)@.post.cz> ha scritto nel messaggio
news:OFSx33CcEHA.2908@.TK2MSFTNGP10.phx.gbl...
> Hi everybody
> I have a system with :
> WinXP Pro, MSDE 2000, Framework 2.0 beta. On top of it i installed
SqlServer
> 2005 Beta with Mixed Mode. I am using Query Analyzer and Enterperise
Manager
> from SQLServer 2000 to connect to it (manual says I can) but with no
> success. I tried to log on with windows authentication as well as with Sql
> authentication . I tried the following names to connect :
> (local)\SQLEXPRESS; COMP_NAME\SQLEXPRESS; SQLEXPRESS; MSSQL$SQLEXPRESS and
> so on but never got connected. It always say that the
> SQL Server does not exist or Access denied.
> I checked in the services where it is set to automatic and is running. I
> also stopped and restarted but with no success. What i am missing ?
> At the end I uninstalled everything and reinstalled only Framework 2.0 and
> Sql Server 2005 Beta but having the same problem.
frorm microsoft.private.sqlserver2005.express newsgroup:
1. Enable Protocols
a. Launch SQL Computer Manager
b. Expand "Server Network Configuration"
c. Expand Protocols for "SQLEXPRESS"
d. Enable Np (for local access)
e. Enable TCP (for remote access)
2. Restart SQL Express
a. can be done from either SQL Computer Manager, Services applet, or
command line
3. Start SQL Browser service from Service applet or command line
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.8.0 - DbaMgr ver 0.54.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Sunday, February 19, 2012

Cannot Connect to SQL Server 2000 using Windows XP Pro account login info

When I try to create a System DSN connection to our SQL Server 2000
database that is installed on a Windows 2000 machine, I keep on
getting the following error:
Connection failed:
SQLState: '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection.
We do not have IIS or any web server installed on the database server
machine or the Windows XP Professional machine that is trying to
connect to the Windows 2000 machine. The machines can all see each
other, and we are actually have the machines networked via the
Workgroup setting, not using the Domain setting. Anyone have any ideas
as to what can be the issue?
Thanks,
Jay
(patel@.cs.utk.edu)
Hi Patel,
Since you're not in a domain, Windows Authentication works very
differently. Windows Authentication is commonly used while you're in a
domain and the client has been authenticated on the domain. The error
message "null" indicates that we're unable to "impersonate" the client in
order to make a Windows Authenticated connection.
You have two optioins.
1. Duplicate the nt username & password on both machines and Use Named
Pipes to Connect.
2. Use SQL Standard Security instead of using Windows Authentication.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.
|||Kevin,
How do I create a named pipe? I am not sure as to how to do that.
-Jay
(patel@.cs.utk.edu)
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Named pipes are not created, but rather enabled - with both the
Client and Server Network Utilities.
For the Client Network Utility, start it by Start>Run>cliconfg.exe.
The left pane shows disabled protocols. The right pane shows enabled
protocols. In the left pane, click on Named Pipes and then use the
Enable button between the two panes.
For the Server Network Utility (at least for an MSDE version) find the
file SVRNETCN.EXE. Double click to start and the perform the same
actions as in the Client Network Utility, but for the server instance
in question. If you have installed the server as the default instance,
it will have no name, so its just the computer name that will appear
in the server name pull-down list.
If you have a firewall installed on the machines in question, please
say so, since there will be rules to create to open ports if you have
not done so already.
You should also see the article:
Potential causes of the "SQL Server does not exist or access denied"
error message
http://support.microsoft.com/default...06&Product=sql
Lou Arnold
Ottawa, Canada.
On Wed, 21 Jul 2004 21:15:32 -0700, Jay Patel <patel@.cs.utk.edu>
wrote:

>Kevin,
> How do I create a named pipe? I am not sure as to how to do that.
>-Jay
>(patel@.cs.utk.edu)
>*** Sent via Developersdex http://www.codecomments.com ***
>Don't just participate in USENET...get rewarded for it!
|||Kevin,
Your option 1 below implies that you need Named pipes if you have no
domain controller and want Windows Authentication mode. Is that
correct? If so, is this requirement documented somewhere?
Lou Arnold
On Thu, 22 Jul 2004 00:31:06 GMT, kevmc@.online.microsoft.com (Kevin
McDonnell [MSFT]) wrote:

>Hi Patel,
> Since you're not in a domain, Windows Authentication works very
>differently. Windows Authentication is commonly used while you're in a
>domain and the client has been authenticated on the domain. The error
>message "null" indicates that we're unable to "impersonate" the client in
>order to make a Windows Authenticated connection.
>You have two optioins.
>1. Duplicate the nt username & password on both machines and Use Named
>Pipes to Connect.
>2. Use SQL Standard Security instead of using Windows Authentication.
>Thanks,
>Kevin McDonnell
>Microsoft Corporation
>This posting is provided AS IS with no warranties, and confers no rights.
>
>
|||Hey There,
When I try to connect using the Named Pipes, I have pipes enabled on
both the client and server end, with the server pipe being
"\\.\pipe\sql\query" and trying to keep the client pipe the same as
above. When I try to connect, I get this error:
Attempting connection
[Microsoft][ODBC SQL Server Driver][Named Pipes]SQL Server does not
exist or access denied.
TESTS FAILED!
I have added the user and password that I am logged into now on XP Pro
onto the Windows 2000 Server machine. What do you think I am missing?
-Jay
(patel@.cs.utk.edu)
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Hey There,
I have tried the procedure that was suggested. I have added the user name
and password that I am logged in as on my Windows XP Pro machine to the
Windows 2000 Server machine that has SQL Server 2000 installed on it. I have
also created the same username and password on SQL Server 2000 as a valid
user. I have enabled pipes on the server and client with the server pipe
being the default pipe: "\\.\pipe\sql\query" and I have set the client pipe
to the same value. Now I get this error when I try to do a test connection:
Attempting connection
[Microsoft][ODBC SQL Server Driver][Named Pipes]SQL Server does not exist or
access denied.
TESTS FAILED!
What else could I be missing?
-Jay
(jay@.doityourself.com)
Lou_Arnold@.nospam.com (Lou Arnold) wrote in message news:<40ff4f17.8220370@.nntp.flfrd.phub.net.cable.r ogers.com>...[vbcol=seagreen]
> Kevin,
> Your option 1 below implies that you need Named pipes if you have no
> domain controller and want Windows Authentication mode. Is that
> correct? If so, is this requirement documented somewhere?
> Lou Arnold
> On Thu, 22 Jul 2004 00:31:06 GMT, kevmc@.online.microsoft.com (Kevin
> McDonnell [MSFT]) wrote:
|||Jay...
I can't help you further with your problem, sorry. However at least
you have an error messge. Perhaps Kevin can help.
I am slowly coming to the conclusion that Windows Authentication
doesn't work unless you operate a domain controller. If your situation
permits, you may want to try connecting those two computers into a
network with a domain controller.
My only other suggestion is that you try this same test with the sql
server in mixed or SQL Server mode (the alternatives to Windows
Authentication) and see what happens . I'm not sure how to change the
mode after installation.
Lou.
PS Whatever happens, please let us know. It would be of great value to
me to have the information.
On Thu, 22 Jul 2004 00:31:06 GMT, kevmc@.online.microsoft.com (Kevin
McDonnell [MSFT]) wrote:

>Hi Patel,
> Since you're not in a domain, Windows Authentication works very
>differently. Windows Authentication is commonly used while you're in a
>domain and the client has been authenticated on the domain. The error
>message "null" indicates that we're unable to "impersonate" the client in
>order to make a Windows Authenticated connection.
>You have two optioins.
>1. Duplicate the nt username & password on both machines and Use Named
>Pipes to Connect.
>2. Use SQL Standard Security instead of using Windows Authentication.
>Thanks,
>Kevin McDonnell
>Microsoft Corporation
>This posting is provided AS IS with no warranties, and confers no rights.
>
>
|||Lou,
Thanks for the advice. The reason I would really like to use Windows
Authentication is that when I use the SQL Server Authentication, with
some of the machines, it will prompt you to input the password every
single time you select a database table, or click a form button. It
seems that every move that is made requires that SQL needs to have the
password input.
-Jay
(patel@.cs.utk.edu)
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Hi Patel,
Let's try to get a better error message. Try to make the Named Pipe
connection using a Test ODBC Data Source.
When you create a new ODBC DSN, the wizard will walk you through and
generate a much better error message if it fails.
What we need is the OS Error number.
Example: OS Error 53 == Network name not found
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Cannot Connect to SQL Server 2000 using Windows XP Pro account login info

When I try to create a System DSN connection to our SQL Server 2000
database that is installed on a Windows 2000 machine, I keep on
getting the following error:
Connection failed:
SQLState: '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for
user
'(null)'. Reason: Not associated with a trusted SQL Server connection.
We do not have IIS or any web server installed on the database server
machine or the Windows XP Professional machine that is trying to
connect to the Windows 2000 machine. The machines can all see each
other, and we are actually have the machines networked via the
Workgroup setting, not using the Domain setting. Anyone have any ideas
as to what can be the issue?
Thanks,
Jay
(patel@.cs.utk.edu)Hi Patel,
Since you're not in a domain, Windows Authentication works very
differently. Windows Authentication is commonly used while you're in a
domain and the client has been authenticated on the domain. The error
message "null" indicates that we're unable to "impersonate" the client in
order to make a Windows Authenticated connection.
You have two optioins.
1. Duplicate the nt username & password on both machines and Use Named
Pipes to Connect.
2. Use SQL Standard Security instead of using Windows Authentication.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Kevin,
How do I create a named pipe? I am not sure as to how to do that.
-Jay
(patel@.cs.utk.edu)
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!|||Named pipes are not created, but rather enabled - with both the
Client and Server Network Utilities.
For the Client Network Utility, start it by Start>Run>cliconfg.exe.
The left pane shows disabled protocols. The right pane shows enabled
protocols. In the left pane, click on Named Pipes and then use the
Enable button between the two panes.
For the Server Network Utility (at least for an MSDE version) find the
file SVRNETCN.EXE. Double click to start and the perform the same
actions as in the Client Network Utility, but for the server instance
in question. If you have installed the server as the default instance,
it will have no name, so its just the computer name that will appear
in the server name pull-down list.
If you have a firewall installed on the machines in question, please
say so, since there will be rules to create to open ports if you have
not done so already.
You should also see the article:
Potential causes of the "SQL Server does not exist or access denied"
error message
http://support.microsoft.com/defaul...306&Product=sql
Lou Arnold
Ottawa, Canada.
On Wed, 21 Jul 2004 21:15:32 -0700, Jay Patel <patel@.cs.utk.edu>
wrote:

>Kevin,
> How do I create a named pipe? I am not sure as to how to do that.
>-Jay
>(patel@.cs.utk.edu)
>*** Sent via Developersdex http://www.codecomments.com ***
>Don't just participate in USENET...get rewarded for it!|||Kevin,
Your option 1 below implies that you need Named pipes if you have no
domain controller and want Windows Authentication mode. Is that
correct' If so, is this requirement documented somewhere?
Lou Arnold
On Thu, 22 Jul 2004 00:31:06 GMT, kevmc@.online.microsoft.com (Kevin
McDonnell [MSFT]) wrote:

>Hi Patel,
> Since you're not in a domain, Windows Authentication works very
>differently. Windows Authentication is commonly used while you're in a
>domain and the client has been authenticated on the domain. The error
>message "null" indicates that we're unable to "impersonate" the client in
>order to make a Windows Authenticated connection.
>You have two optioins.
>1. Duplicate the nt username & password on both machines and Use Named
>Pipes to Connect.
>2. Use SQL Standard Security instead of using Windows Authentication.
>Thanks,
>Kevin McDonnell
>Microsoft Corporation
>This posting is provided AS IS with no warranties, and confers no rights.
>
>

Cannot connect to SQL Server

I have an SQL Server 2005 installed on one partition (G:). Visual Studio 2005 with C# is on C: The OS on C:\ is Win2K Pro, OS on G: is WinServ2003.

I've created a database on G: in SQL Management Studio. Its name is "endPoint_forMe" The Server (default) as I can see is ALEX-*** data source is "strongUpdate" which is one of the tables in the database "endPoint..."

I cannot establish connection. What am I doing wrong?

I checked in the Control Panel-->>Management Tools-->>IIS on C:. Only one server is registered there: My computer name. There is no way to add another server.

string myConnString = "Persist Security Info=False;Integrated Security=SSPI;database=endPoint_forMe;server=ALEX-OPLHOFP92;data source=strongUpdate";

SqlConnection myConnection = new SqlConnection(myConnString);

myConnection.Open();

The last statement does not connect. I get an error report while debugging. What shall I do?

// Can you try the following:

private String GetConnectionString(

String SqlInstanceName,

String DataBaseName)

{

System.Text.StringBuilder sb = new System.Text.StringBuilder();

sb.Append("data source=") ;

sb.Append(SqlInstanceName);

sb.Append(";initial catalog=") ;

sb.Append(DataBaseName);

sb.Append(";integrated security=SSPI;") ;

sb.Append("persist security info=False;") ;

sb.Append("workstation id=") ;

sb.Append(System.Environment.MachineName) ;

sb.Append(";packet size=4096") ;

return(sb.ToString());

}


private void button2_Click(object sender, EventArgs e)

{

String cs = GetConnectionString(".", "model");

System.Data.SqlClient.SqlConnection cn =

new System.Data.SqlClient.SqlConnection(cs);

cn.Open();

if (cn.State == ConnectionState.Open)

System.Windows.Forms.MessageBox.Show("success");

else

System.Windows.Forms.MessageBox.Show("fail");

cn.Close();

}
// the "." is the default instance on the current computer, "model" is the catalog...

|||

I've tried this string.

string myConnString = "Data Source=(local);Initial Catalog=endPoint_forMe;Integrated Security=SSPI;";

The debug shows that the system runs out of time trying to make the connection. I increased the time parameter from 30 to 130 sec in Tools-->Options-->database-->queries.

I don't think it helped. The same exception with the same error message.

Pl help.

Thanks.

|||Hello

> server=ALEX-OPLHOFP92

I had a comparable problem with the new security (TCP/IP turned off by default). Have you used "SQL Server Surface Area Configuration" or "SQL Server Configuration Manager" to enable TCP/IP?|||Many thanks.

Sure, mine was disabled! I just enabled it and am rushing to test the connection.

God bless newsgroups friendly help.

Thanks.|||Thank you very much. It is very interesting. I will try it and report the outcome. I feel it should work.|||It turns out not only TCP/IP was disabled but the MSSQLSERVER is stopped! SQL Server Agent is stopped also!

The trouble is I cannot get them started.

This is a part of the error log resulting from my attempt to start the Server. I quote error messages only:

2005-10-30 15:35:44.79 Server Error: 17182, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server TDSSNIClient initialization failed with error 0xd, status code 0x36.
2005-10-30 15:35:44.79 Server Error: 17182, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server TDSSNIClient initialization failed with error 0xd, status code 0x1.
2005-10-30 15:35:44.79 Server Error: 17826, Severity: 18, State: 3.
2005-10-30 15:35:44.79 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2005-10-30 15:35:44.79 Server Error: 17120, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

What shall I do about the "network library" which is apparently corrupted?

Thanks.|||

Try checking what network protocols are enabled for SQL Server in the SQL Computer Manager application. If the VIA protocol is enabled disable it and then try starting the SQL Server service again.

Hope this helps,
Vaughn

|||You were right. I enabled it along with TCP/IP. After disabling VIA the server got started.

Thanks a lot.|||Eduardo hi,

All my attempts to enable a connection so far have failed. I cannot achieve it either programmatically as you suggested or via the GUI at VS where a special pane exists for attached databases. I am wondering if a prerequisite for a healthy connection is SQL Server.2005 up and running? In my current setting it is next to impossible to accomplish. My SQL Server.2005 is on a partition under the OS WinSer2003 but the Visual Studio with C# and all other stuff (the client, the recepient of the connection) is on C: under Win2K Pro. Thus I am trying to connect to an inactive database which exists in a directory. It seems to me that the notion of the Server instance is inapplicable here. Am I wrong? And the Server Instance is a component of the connection string!

If this is the case then I have to somehow set VS with C# up on the other partition with the server. The SQL Server does have a VS variant supporting the SQL Server but it is not furnished with C# compiler, I understand.

Typical error message I get when I run a program trying to make connection is that the timeout expired or the SQL Server is not responding.

Please comment on this.

Thanks.|||I just made connection with GUI but only when I invoked the VS on the same partition where SQL Server resides. It was a snap job, very elementary. The SQL Server was not even running at all. It is just important to have it on the same partition under the same OS.

My troubles are not over yet. It is a stip down version of VS I have here. Now I may try to install the full version on this partition and see how it goes. I need access to C# compiler and debugger. It is not a part of the VS that comes with SQL Server as I can see.

Thanks.|||

Got the problem solved by your helps by disabling the VIA protocol. Do you know what's the reason to cause the problem?

Cannot connect to SQL Server

I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
The two servers are indentical, but if the two clients can connect S1, they
cant' connect to S2 ""Access denied or SQL Server does not exist" (but S2
can connect S1).
- I have checked the Server Network Utility and ClientNetwork Utility : all
is correct
- I have tried with the firewall unactivated : no change...
- The version of SQL 2000 on the two servers are the same.
- The network is a wire LAN.
Can anyone tell me where else to look or what else to try?
Many thanks in advance
Henri (Paris)
So you can connect:
C1 -> S1
C2 -> S1
S2 -> S1
but cannot connect:
C1 -> S2
C2 -> S2
Some things to check:
Can you connect from S2 to S2? If this fails, I suspect the SQL Server is
not started, or you have the name wrong because it's a named instance such
as S2\MSDN, or it is not accepting any connections on the protocol you are
using.
If you can connect from S2 to S2, then I would double-check the firewall. I
see that you said you tried turning off the firewall, but the Windows
firewall that is turned on in SP2 causes most of these problems.
What protocol are you using? If TCP/IP, try connecting using the TCP address
and port number, such as 120.24.118.17,1433. It's possible you have a
problem resolving the computer name. That would cause this error.
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Henri" <foucauld@.wanadoo.fr> wrote in message
news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
>S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
> The two servers are indentical, but if the two clients can connect S1,
> they cant' connect to S2 ""Access denied or SQL Server does not exist"
> (but S2 can connect S1).
> - I have checked the Server Network Utility and ClientNetwork Utility :
> all is correct
> - I have tried with the firewall unactivated : no change...
> - The version of SQL 2000 on the two servers are the same.
> - The network is a wire LAN.
> Can anyone tell me where else to look or what else to try?
> Many thanks in advance
> Henri (Paris)
>
|||Is the Browser service running on S2?
Did you see the whitepaper on my blog?
http://betav.com/blog/billva/2006/06/getting_and_staying_connected.html
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
www.hitchhikerguides.net
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
------
"Henri" <foucauld@.wanadoo.fr> wrote in message
news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
>S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
> The two servers are indentical, but if the two clients can connect S1,
> they cant' connect to S2 ""Access denied or SQL Server does not exist"
> (but S2 can connect S1).
> - I have checked the Server Network Utility and ClientNetwork Utility :
> all is correct
> - I have tried with the firewall unactivated : no change...
> - The version of SQL 2000 on the two servers are the same.
> - The network is a wire LAN.
> Can anyone tell me where else to look or what else to try?
> Many thanks in advance
> Henri (Paris)
>
|||Is the SQL Browser service running on S2?
Did you read
http://betav.com/blog/billva/2006/06/getting_and_staying_connected.html ?
hth
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
www.hitchhikerguides.net
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
------
"Rick Byham, (MSFT)" <rickbyh@.REDMOND.CORP.MICROSOFT.COM> wrote in message
news:7F6297AB-2D3D-41FF-932D-A0971C0188F4@.microsoft.com...
> So you can connect:
> C1 -> S1
> C2 -> S1
> S2 -> S1
> but cannot connect:
> C1 -> S2
> C2 -> S2
> Some things to check:
> Can you connect from S2 to S2? If this fails, I suspect the SQL Server is
> not started, or you have the name wrong because it's a named instance such
> as S2\MSDN, or it is not accepting any connections on the protocol you are
> using.
> If you can connect from S2 to S2, then I would double-check the firewall.
> I see that you said you tried turning off the firewall, but the Windows
> firewall that is turned on in SP2 causes most of these problems.
> What protocol are you using? If TCP/IP, try connecting using the TCP
> address and port number, such as 120.24.118.17,1433. It's possible you
> have a problem resolving the computer name. That would cause this error.
> --
> Rick Byham (MSFT)
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Henri" <foucauld@.wanadoo.fr> wrote in message
> news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>

Cannot connect to SQL Server

I have an SQL Server 2005 installed on one partition (G:). Visual Studio 2005 with C# is on C: The OS on C:\ is Win2K Pro, OS on G: is WinServ2003.

I've created a database on G: in SQL Management Studio. Its name is "endPoint_forMe" The Server (default) as I can see is ALEX-*** data source is "strongUpdate" which is one of the tables in the database "endPoint..."

I cannot establish connection. What am I doing wrong?

I checked in the Control Panel-->>Management Tools-->>IIS on C:. Only one server is registered there: My computer name. There is no way to add another server.

string myConnString = "Persist Security Info=False;Integrated Security=SSPI;database=endPoint_forMe;server=ALEX-OPLHOFP92;data source=strongUpdate";

SqlConnection myConnection = new SqlConnection(myConnString);

myConnection.Open();

The last statement does not connect. I get an error report while debugging. What shall I do?

// Can you try the following:

private String GetConnectionString(

String SqlInstanceName,

String DataBaseName)

{

System.Text.StringBuilder sb = new System.Text.StringBuilder();

sb.Append("data source=") ;

sb.Append(SqlInstanceName);

sb.Append(";initial catalog=") ;

sb.Append(DataBaseName);

sb.Append(";integrated security=SSPI;") ;

sb.Append("persist security info=False;") ;

sb.Append("workstation id=") ;

sb.Append(System.Environment.MachineName) ;

sb.Append(";packet size=4096") ;

return(sb.ToString());

}


private void button2_Click(object sender, EventArgs e)

{

String cs = GetConnectionString(".", "model");

System.Data.SqlClient.SqlConnection cn =

new System.Data.SqlClient.SqlConnection(cs);

cn.Open();

if (cn.State == ConnectionState.Open)

System.Windows.Forms.MessageBox.Show("success");

else

System.Windows.Forms.MessageBox.Show("fail");

cn.Close();

}
// the "." is the default instance on the current computer, "model" is the catalog...

|||

I've tried this string.

string myConnString = "Data Source=(local);Initial Catalog=endPoint_forMe;Integrated Security=SSPI;";

The debug shows that the system runs out of time trying to make the connection. I increased the time parameter from 30 to 130 sec in Tools-->Options-->database-->queries.

I don't think it helped. The same exception with the same error message.

Pl help.

Thanks.

|||Hello

> server=ALEX-OPLHOFP92

I had a comparable problem with the new security (TCP/IP turned off by default). Have you used "SQL Server Surface Area Configuration" or "SQL Server Configuration Manager" to enable TCP/IP?|||Many thanks.

Sure, mine was disabled! I just enabled it and am rushing to test the connection.

God bless newsgroups friendly help.

Thanks.|||Thank you very much. It is very interesting. I will try it and report the outcome. I feel it should work.|||It turns out not only TCP/IP was disabled but the MSSQLSERVER is stopped! SQL Server Agent is stopped also!

The trouble is I cannot get them started.

This is a part of the error log resulting from my attempt to start the Server. I quote error messages only:

2005-10-30 15:35:44.79 Server Error: 17182, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server TDSSNIClient initialization failed with error 0xd, status code 0x36.
2005-10-30 15:35:44.79 Server Error: 17182, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server TDSSNIClient initialization failed with error 0xd, status code 0x1.
2005-10-30 15:35:44.79 Server Error: 17826, Severity: 18, State: 3.
2005-10-30 15:35:44.79 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2005-10-30 15:35:44.79 Server Error: 17120, Severity: 16, State: 1.
2005-10-30 15:35:44.79 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

What shall I do about the "network library" which is apparently corrupted?

Thanks.|||

Try checking what network protocols are enabled for SQL Server in the SQL Computer Manager application. If the VIA protocol is enabled disable it and then try starting the SQL Server service again.

Hope this helps,
Vaughn

|||You were right. I enabled it along with TCP/IP. After disabling VIA the server got started.

Thanks a lot.|||Eduardo hi,

All my attempts to enable a connection so far have failed. I cannot achieve it either programmatically as you suggested or via the GUI at VS where a special pane exists for attached databases. I am wondering if a prerequisite for a healthy connection is SQL Server.2005 up and running? In my current setting it is next to impossible to accomplish. My SQL Server.2005 is on a partition under the OS WinSer2003 but the Visual Studio with C# and all other stuff (the client, the recepient of the connection) is on C: under Win2K Pro. Thus I am trying to connect to an inactive database which exists in a directory. It seems to me that the notion of the Server instance is inapplicable here. Am I wrong? And the Server Instance is a component of the connection string!

If this is the case then I have to somehow set VS with C# up on the other partition with the server. The SQL Server does have a VS variant supporting the SQL Server but it is not furnished with C# compiler, I understand.

Typical error message I get when I run a program trying to make connection is that the timeout expired or the SQL Server is not responding.

Please comment on this.

Thanks.|||I just made connection with GUI but only when I invoked the VS on the same partition where SQL Server resides. It was a snap job, very elementary. The SQL Server was not even running at all. It is just important to have it on the same partition under the same OS.

My troubles are not over yet. It is a stip down version of VS I have here. Now I may try to install the full version on this partition and see how it goes. I need access to C# compiler and debugger. It is not a part of the VS that comes with SQL Server as I can see.

Thanks.|||

Got the problem solved by your helps by disabling the VIA protocol. Do you know what's the reason to cause the problem?

Cannot connect to SQL Server

I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
The two servers are indentical, but if the two clients can connect S1, they
cant' connect to S2 ""Access denied or SQL Server does not exist" (but S2
can connect S1).
- I have checked the Server Network Utility and ClientNetwork Utility : all
is correct
- I have tried with the firewall unactivated : no change...
- The version of SQL 2000 on the two servers are the same.
- The network is a wire LAN.
Can anyone tell me where else to look or what else to try?
Many thanks in advance
Henri (Paris)So you can connect:
C1 -> S1
C2 -> S1
S2 -> S1
but cannot connect:
C1 -> S2
C2 -> S2
Some things to check:
Can you connect from S2 to S2? If this fails, I suspect the SQL Server is
not started, or you have the name wrong because it's a named instance such
as S2\MSDN, or it is not accepting any connections on the protocol you are
using.
If you can connect from S2 to S2, then I would double-check the firewall. I
see that you said you tried turning off the firewall, but the Windows
firewall that is turned on in SP2 causes most of these problems.
What protocol are you using? If TCP/IP, try connecting using the TCP address
and port number, such as 120.24.118.17,1433. It's possible you have a
problem resolving the computer name. That would cause this error.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Henri" <foucauld@.wanadoo.fr> wrote in message
news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
>S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
> The two servers are indentical, but if the two clients can connect S1,
> they cant' connect to S2 ""Access denied or SQL Server does not exist"
> (but S2 can connect S1).
> - I have checked the Server Network Utility and ClientNetwork Utility :
> all is correct
> - I have tried with the firewall unactivated : no change...
> - The version of SQL 2000 on the two servers are the same.
> - The network is a wire LAN.
> Can anyone tell me where else to look or what else to try?
> Many thanks in advance
> Henri (Paris)
>|||Is the Browser service running on S2?
Did you see the whitepaper on my blog?
http://betav.com/blog/billva/2006/0..._connected.html
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
www.hitchhikerguides.net
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
----
---
"Henri" <foucauld@.wanadoo.fr> wrote in message
news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>I have almost the same problem than Clive (cf 18/07). I have 2 servers S1,
>S2 (windows XP Pro, SP2), and 2 clients C1 and C2 (Windows XP Pro, SP2).
> The two servers are indentical, but if the two clients can connect S1,
> they cant' connect to S2 ""Access denied or SQL Server does not exist"
> (but S2 can connect S1).
> - I have checked the Server Network Utility and ClientNetwork Utility :
> all is correct
> - I have tried with the firewall unactivated : no change...
> - The version of SQL 2000 on the two servers are the same.
> - The network is a wire LAN.
> Can anyone tell me where else to look or what else to try?
> Many thanks in advance
> Henri (Paris)
>|||Is the SQL Browser service running on S2?
Did you read
http://betav.com/blog/billva/2006/0..._connected.html ?
hth
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
www.hitchhikerguides.net
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
----
---
"Rick Byham, (MSFT)" <rickbyh@.REDMOND.CORP.MICROSOFT.COM> wrote in message
news:7F6297AB-2D3D-41FF-932D-A0971C0188F4@.microsoft.com...
> So you can connect:
> C1 -> S1
> C2 -> S1
> S2 -> S1
> but cannot connect:
> C1 -> S2
> C2 -> S2
> Some things to check:
> Can you connect from S2 to S2? If this fails, I suspect the SQL Server is
> not started, or you have the name wrong because it's a named instance such
> as S2\MSDN, or it is not accepting any connections on the protocol you are
> using.
> If you can connect from S2 to S2, then I would double-check the firewall.
> I see that you said you tried turning off the firewall, but the Windows
> firewall that is turned on in SP2 causes most of these problems.
> What protocol are you using? If TCP/IP, try connecting using the TCP
> address and port number, such as 120.24.118.17,1433. It's possible you
> have a problem resolving the computer name. That would cause this error.
> --
> Rick Byham (MSFT)
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Henri" <foucauld@.wanadoo.fr> wrote in message
> news:%23ZoxT3gyHHA.1188@.TK2MSFTNGP04.phx.gbl...
>

Tuesday, February 14, 2012

Cannot connect to named analysis service

I am trying to use SQL Server Management Studio to connect to a named analysis service running on a local machine (XP Pro). The studio can see the analysis service because the dialogbox of "Browse for Servers" shows the correct analysis service name, but it just cannot connect to it. I stopped and restarted the service, rebooted the machine, uninstalled and reinstalled the analysis service. Nothing works so far. I can connect the database engine server or reporting service on the same machine without any problem. Could anyone offer any type of hint for me to address this problem?

Thanks in advance!

H

Here are the error message and technical details:

TITLE: Connect to Server

Cannot connect to HP-AMD64\ANALYSIS.


ADDITIONAL INFORMATION:

A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient)

No connection could be made because the target machine actively refused it (System)


BUTTONS:

OK

===================================

Cannot connect to HP-AMD64\ANALYSIS.

===================================

A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient)


Program Location:

at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla()
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

===================================

No connection could be made because the target machine actively refused it (System)


Program Location:

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPAddress address, Int32 port)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClientByAddress(String hostName, Int32 port)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)

Out of frustration, I have just installed another analysis service on my machine, but a default one (i.e. not a named instance). Now I can connect to this instance without any problem.

I am going to uninstall every component of SQL 2005 on my machine and reinstall them again to see if there is any chance for named instances to work.

I have all kinds of connection issues with SQL 2005 that have made the migration from SQL2000 to SQL2005 to be very painful so far. I do not remember I ever had any type of connection issue with SQL2000.

H

|||

I have a variation of hipswich's problem

I am running MsSQL2005 and AS on a server .I have built cubes in server .Have had great difficulty in browsing the cube from any remote machine .

Initial problems were associated with the AS server not being able to authenticate the client .

I then put the server and client into the same domain .

I registered an existing user in the domain , into the server users , as member of the various sql groups (olap and other ) .

I also granted this domain user login to the sqlserver .

The client is now able to connect to the sqlserver and the Analysis server , using "windows authentication" with one catch .(Previously the cliebnt could connect to the sqlserver using username -pwd authentication .

There are no AS databases listed , no cubes shown etc . The client also has no authority to create a new database in the analysis server .

I am just wondering , what are all the prerequisites to get the client to be able to view the analysis service cubes ?

How can one verify that you have correctly setup the windows authentication required for AS , while you are logged into the server and sql manager ?

What is the correct setting for datasource property ?

Sorry for making such a long story .

any comments appreciated

|||

This looks like the same problem as was posted in "SQL2005 AS Named instance - SQL Browser issue?" a couple of months back. Unfortunately in that case the conclusion was that it resulted from a known bug.

Try reading that posting and see if it helps.

Regards,

Richard

(p.s. I have no idea why this post is in different font sizes and in bold, and it won't let me change it!)

Cannot connect to named analysis service

I am trying to use SQL Server Management Studio to connect to a named analysis service running on a local machine (XP Pro). The studio can see the analysis service because the dialogbox of "Browse for Servers" shows the correct analysis service name, but it just cannot connect to it. I stopped and restarted the service, rebooted the machine, uninstalled and reinstalled the analysis service. Nothing works so far. I can connect the database engine server or reporting service on the same machine without any problem. Could anyone offer any type of hint for me to address this problem?

Thanks in advance!

H

Here are the error message and technical details:

TITLE: Connect to Server

Cannot connect to HP-AMD64\ANALYSIS.


ADDITIONAL INFORMATION:

A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient)

No connection could be made because the target machine actively refused it (System)


BUTTONS:

OK

===================================

Cannot connect to HP-AMD64\ANALYSIS.

===================================

A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient)


Program Location:

at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla()
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

===================================

No connection could be made because the target machine actively refused it (System)


Program Location:

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPAddress address, Int32 port)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClientByAddress(String hostName, Int32 port)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)

Out of frustration, I have just installed another analysis service on my machine, but a default one (i.e. not a named instance). Now I can connect to this instance without any problem.

I am going to uninstall every component of SQL 2005 on my machine and reinstall them again to see if there is any chance for named instances to work.

I have all kinds of connection issues with SQL 2005 that have made the migration from SQL2000 to SQL2005 to be very painful so far. I do not remember I ever had any type of connection issue with SQL2000.

H

|||

I have a variation of hipswich's problem

I am running MsSQL2005 and AS on a server .I have built cubes in server .Have had great difficulty in browsing the cube from any remote machine .

Initial problems were associated with the AS server not being able to authenticate the client .

I then put the server and client into the same domain .

I registered an existing user in the domain , into the server users , as member of the various sql groups (olap and other ) .

I also granted this domain user login to the sqlserver .

The client is now able to connect to the sqlserver and the Analysis server , using "windows authentication" with one catch .(Previously the cliebnt could connect to the sqlserver using username -pwd authentication .

There are no AS databases listed , no cubes shown etc . The client also has no authority to create a new database in the analysis server .

I am just wondering , what are all the prerequisites to get the client to be able to view the analysis service cubes ?

How can one verify that you have correctly setup the windows authentication required for AS , while you are logged into the server and sql manager ?

What is the correct setting for datasource property ?

Sorry for making such a long story .

any comments appreciated

|||

This looks like the same problem as was posted in "SQL2005 AS Named instance - SQL Browser issue?" a couple of months back. Unfortunately in that case the conclusion was that it resulted from a known bug.

Try reading that posting and see if it helps.

Regards,

Richard

(p.s. I have no idea why this post is in different font sizes and in bold, and it won't let me change it!)

Friday, February 10, 2012

Cannot connect SQL server 2005 Express with VWD 2005

I have installed MS Visual Web Developer 2005 Express Edition on my Notebook (WinXP Pro SP2). And it's working fine. Then I tried installed SQL Server 2005 Express Edition SP1. There is no error during installation and it seems to be working as I can see the SQL Server (MSSQLServer) service is running. As SQL server configulation manager., the protocal shared memory , named Pipes and TCP/IP are enabled.

But when I want to add connection using VWD 2005 by pointing to datasource (MS SQL Server database file and selecing file from .mdf file from SQL sample database file. Then test connection, I got a error that
"An error has occurred while establishing a conneciton to the server. when connecting to SQL server 2005, this failure may be casued the the fact that under the default settings SQL server does not allow remote connections. (provider: SQL Interfaces, error: 26- Error locating server/instance specified)

Can you please advise what the missing part of my configulation ?

Thanks

hi,

did you elect to enable User Instances at SQLExpress install time?

you can enable them at later time "configuring" the instance via the apposite
EXEC sp_configure
statement

regards

|||

This is most likely caused by having the wrong Instance name configured in VWD. You wrote that your could see MSSQLSERVER, which the name of the Default Instance for SQL Server. Normally SQL Express installs to a Named Instance rather than the Default Instance. Did you specifically chose to install the Default Instance when you installed SQL Express?

If so, your problem is that VWD is configured to use a Named Instance of SQLEXPRESS by default. You will need to go into the Tools | Options dialog and look at the Data options. (You may need to show all options to see this.) Once there, you will see a text box where you can set the instance of SQL Express to be used, it will likely say "SQLEXPRESS" and you need to change it to the actual name of your instance.

Mike

|||

Mike,

You are correct.

Big Thanks for advise.

Pitak