Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Monday, March 12, 2012

Problem dropping replication support

I am working on establishing a merge replication process between SQL Server 2005 and SQL Mobile 2005. I started with a new SQL Server 2005 instance and went through the Sample for SQL Mobile merge replication. So far so good.

Today, I tried to drop all support for replication on my current SQL 2005 test instance, so that I can start from a fresh instance and do another. I used Management Studio to drop all publisher and distribution settings and had several errors occur, where some roles were not allowed to be dropped because they had membership in them.

I dropped all the users that I added to the SQL logins and tried again.

Now I am trying to run the following script:

use AdventureWorks
exec sp_replicationdboption @.dbname = N'AdventureWorks', @.optname = N'merge publish', @.value = N'false', @.ignore_distributor = 'true'

-- Dropping the distribution publishers
exec sp_dropdistpublisher @.publisher = N'XP-MIKED-LAPTOP'
GO

-- Dropping the distribution databases
use master
exec sp_dropdistributiondb @.database = N'distribution'
GO

/****** Uninstalling the server XP-MIKED-LAPTOP as a Distributor. Script Date: 1/14/2006 2:16:29 PM ******/

use master
exec sp_dropdistributor @.no_checks = 1, @.ignore_distributor = 1
GO

The error I am getting from the first batch (sp_replicationdboption) is this:

Msg 208, Level 16, State 1, Procedure sp_MSmergepublishdb, Line 103
Invalid object name 'dbo.sysmergesubscriptions'.

To me it looks like all the publication objects have been already removed from AdventureWorks, but in sysdatabases, the category column still says 4 (merge publication). Since I can't just do this anymore:

UPDATE MASTER.DBO.SYSDATABASES
set category = 0
where dbid=8

I just don't know what I can do at this point. I can't even create a new publication in AdventureWorks because it thinks there is a sysmergepublications table in there and fails when there isn't.

try sp_removedbreplication.

|||

Greg Yvkoff wrote:

try sp_removedbreplication.

Yes, that was exactly it. I got to the end of the KB article 324401 and found that stored proc. It worked like a charm.

Friday, March 9, 2012

Problem deploying reports

Hi,

I have an application that involves 3 components one of which is
Reports.
My system's configuration:
SQL 2000 - Default instance
SQL 2005 - Named instance (Instance1).

I provide the user with an option of selecting the SQL Server instance.
If the user chooses Instance1, then I need to deply the reports in SQL
2005.
The exceptions encountered during installation are logged in the Event
log.
When I do the installation for the in a machine, I always
get the following error in the event log:
Could not connect to the Report Server Database
http://<MachineName>/ReportingServices.asmx.
I tried giving the rs.exe options from commandline. I got an error like:

Error in DetermineReportUrlSecurity().

I don't have the exact error with me now.

Note that I do not get this error when I do the installation in a
machine where both default and named instances are SQL 2005.

Can anyone tell me why this happens?

Thanks,

Sandhya

Are you installing RS2005 on the same machine as RS 2000? If so you should be prompted to do a files only install, is that the case? If it is then I am not sure when you are seeing this error. During configuration? If you could provide the error message and a better description of exactly what you are doing, perhaps I can offer some help.|||

Hi,

I am deploying my reports during the time of installation of my application i.e., throwugh an msi. I deploy the reports using rs.exe command and any error encountered would be logged in event log.

While installing SQL 2005. I selected the option 'Install and configure' for Reporting Services component. I also verified that I am able to browse to the Reports page. So there is no problem with the configuration. Someone had a similar problem which I saw in another forum. There a solution was given as to disable the firewall/create exceptions for report server. But in my system the firewall is already disabled.

I am deploying my reports from the installer by giving the rs.exe command wherein I get the following error:
Could not connect to the Report Server Database
http://<MachineName>/ReportingServices.asmx.

I tried giving the rs.exe from the command line with -t parameter to trace the error.
Folowing is the exact error that I am getting:
Microsoft.ReportingServices.ScriptHost.ScriptHost.DetermineServerUrlSecuri
ty()
at Microsoft.ReportingServices.ScriptHost.ScriptHost.InstanceMain()
at Microsoft.ReportingServices.BaseCmdLine.CommandLineMain(String[] args,
BaseCmdLine instance)

Why do I get this error?


Thanks,
Sandhya

|||

You need to connect to http://machinename/ReportServer/ReportingServices.asmx.

I hope this help.s

|||Hi,
I am connecting to http://machinename/ReportServer/ReportingServices.asmx.
Still I get the error. Any clues as to why I face this problem?
Thanks,
Sandhya|||According to the error the report server does not exist. Does the report server come up if you browse to http://machinename/reportserver? Does http://machinename/reports work?|||

Hi,

For Yukon, the default configuration for the Report page would be:

Default instance - http://<machinename>/reports

Named Instance - http://<machinename>/reports$<InstanceName>

In my case, I have Yukon in the named instance(Instance1). Hence I need to connect to http://<machinename>/reports$Instance1 and I verified that I am able to browse to this page. I get the Reports homepage.

When I browse to http://machinename/reportserver$Instance1, I get the following displayed in the page:

chnshl13423/ReportServer$Instance1 - /



Microsoft SQL Server Reporting Services Version 9.00.1399.00

So what might be the problem?

Thanks,

Sandhya

|||you should pass in -s http://machinename/reportserver$Instance1 to rs.exe.|||

Hi,

I am already giving the following:

rs.exe -i "C:\Pr\DCMReports For Yukon\DeploymentScript\PublishDCMReports.rss" -s "http://chnshl13423/reportserver$Instance1" -v parentFolder="DCM Reports For Yukon" -v reportLocation="C:\Pr\DCMReports For Yukon\DeploymentScript\PublishDCMReports.rss" -v serverName="chnshl13423\Instance1" -v databaseName="DCMSolution"

Thanks,

Sandhya

|||Any suggestions?|||

Hmm, It looks like you are doing everything that you should be. All the script host does at this point is call the soap method ListSecureMethods, using the ReportService2005.asmx endpoint. Your command looks correct and the server is up and running. I really don't know what would be causing this error.

The only thing I can think of is if the user you are running rs.exe as can not be authenticated with RS or RS is setup to use forms or basic auth. You could try using a different user, or if you are using basic auth, pass in the username and password options.

Problem deploying reports

Hi,

I have an application that involves 3 components one of which is
Reports.
My system's configuration:
SQL 2000 - Default instance
SQL 2005 - Named instance (Instance1).

I provide the user with an option of selecting the SQL Server instance.
If the user chooses Instance1, then I need to deply the reports in SQL
2005.
The exceptions encountered during installation are logged in the Event
log.
When I do the installation for the in a machine, I always
get the following error in the event log:
Could not connect to the Report Server Database
http://<MachineName>/ReportingServices.asmx.
I tried giving the rs.exe options from commandline. I got an error like:

Error in DetermineReportUrlSecurity().

I don't have the exact error with me now.

Note that I do not get this error when I do the installation in a
machine where both default and named instances are SQL 2005.

Can anyone tell me why this happens?

Thanks,

Sandhya

Are you installing RS2005 on the same machine as RS 2000? If so you should be prompted to do a files only install, is that the case? If it is then I am not sure when you are seeing this error. During configuration? If you could provide the error message and a better description of exactly what you are doing, perhaps I can offer some help.|||

Hi,

I am deploying my reports during the time of installation of my application i.e., throwugh an msi. I deploy the reports using rs.exe command and any error encountered would be logged in event log.

While installing SQL 2005. I selected the option 'Install and configure' for Reporting Services component. I also verified that I am able to browse to the Reports page. So there is no problem with the configuration. Someone had a similar problem which I saw in another forum. There a solution was given as to disable the firewall/create exceptions for report server. But in my system the firewall is already disabled.

I am deploying my reports from the installer by giving the rs.exe command wherein I get the following error:
Could not connect to the Report Server Database
http://<MachineName>/ReportingServices.asmx.

I tried giving the rs.exe from the command line with -t parameter to trace the error.
Folowing is the exact error that I am getting:
Microsoft.ReportingServices.ScriptHost.ScriptHost.DetermineServerUrlSecuri
ty()
at Microsoft.ReportingServices.ScriptHost.ScriptHost.InstanceMain()
at Microsoft.ReportingServices.BaseCmdLine.CommandLineMain(String[] args,
BaseCmdLine instance)

Why do I get this error?


Thanks,
Sandhya

|||

You need to connect to http://machinename/ReportServer/ReportingServices.asmx.

I hope this help.s

|||Hi,
I am connecting to http://machinename/ReportServer/ReportingServices.asmx.
Still I get the error. Any clues as to why I face this problem?
Thanks,
Sandhya|||According to the error the report server does not exist. Does the report server come up if you browse to http://machinename/reportserver? Does http://machinename/reports work?|||

Hi,

For Yukon, the default configuration for the Report page would be:

Default instance - http://<machinename>/reports

Named Instance - http://<machinename>/reports$<InstanceName>

In my case, I have Yukon in the named instance(Instance1). Hence I need to connect to http://<machinename>/reports$Instance1 and I verified that I am able to browse to this page. I get the Reports homepage.

When I browse to http://machinename/reportserver$Instance1, I get the following displayed in the page:

chnshl13423/ReportServer$Instance1 - /



Microsoft SQL Server Reporting Services Version 9.00.1399.00

So what might be the problem?

Thanks,

Sandhya

|||you should pass in -s http://machinename/reportserver$Instance1 to rs.exe.|||

Hi,

I am already giving the following:

rs.exe -i "C:\Pr\DCMReports For Yukon\DeploymentScript\PublishDCMReports.rss" -s "http://chnshl13423/reportserver$Instance1" -v parentFolder="DCM Reports For Yukon" -v reportLocation="C:\Pr\DCMReports For Yukon\DeploymentScript\PublishDCMReports.rss" -v serverName="chnshl13423\Instance1" -v databaseName="DCMSolution"

Thanks,

Sandhya

|||Any suggestions?|||

Hmm, It looks like you are doing everything that you should be. All the script host does at this point is call the soap method ListSecureMethods, using the ReportService2005.asmx endpoint. Your command looks correct and the server is up and running. I really don't know what would be causing this error.

The only thing I can think of is if the user you are running rs.exe as can not be authenticated with RS or RS is setup to use forms or basic auth. You could try using a different user, or if you are using basic auth, pass in the username and password options.

Saturday, February 25, 2012

problem copying database from sql server 2000 to sql server 2005

Hi,

I have right now sql server 2000 instance installed on a server (serverone) which is accessed on all nodes through an ODBC connection.

Now we have upgraded our server to windows server 2005 which will be on other machine servertwo. I have right now installed sql server 2005 in servertwo. Wish to copy the database from serverone to servertwo. Once it is copied and everything is working fine. I want to uninstal sql server 2000 from serverone.

What is the best way to do this? I am trying different things like tried running code Advisor on serverone which is not recognising the sql server 2005 instance of servertwo. It's giving message as since the sql server is installed on default settings it can't be accessed remotely. I see that SQL server 2000 database is accessible on all nodes including servertwo. Why is it that servertwo sql server is no where accessible?

What it is that I am missing?

Kindly help me.

Thanks, regards.

Shobha

You're really asking two questions, I think.

1. Why is servertwo not accessible?

With SQL Server 2005, we disabled a number of features by default to provide better security. You can easily adjust the settings at any time by using the Surface Area Configuration tool, available from the Start menu.

2. How do I move my databases over to servertwo?

There are several ways to do this. One way is to use sp_detach_db on serverone, then copy mdf and ldf files to servertwo and use sp_attach_db.

Paul

|||

Thanks for the reply Paul.

Is it that the datatbase should be exclusively available when doing sp_detach_db?

thanks

Shobha

|||

Hmm, good question, and a glance at BOL didn't pop the answer.

I don't believe you need exclusive access; I assume the operation is transactional so it'll wait for open transactions to complete before executing. But as I said above, the documentation of sp_detach_db doesn't make this clear. The documentation does list a few other requirements (e.g., if the database is replicated, it must be unpublished).

|||

Thanks Paul for that answer.

If you don't mind can I have sample code or instruction list on how to use the sp_deattach_db and sp_attach_db commands, this will be the first time that I will be using these commands since earlier I was working only with MSAccess database.

will be greatful if you can give me directions.

thanks

Monday, February 20, 2012

Problem connecting to SS2K5 named instance using client tools

Hi,

The problem I have is this:

I have installed SQL Server 2005 Enterprise Edition on a W2K3 server that already has a SQL Server 2000 default instance installed. The installation appears to be a success. The problem is that having installed the client tools, and trying to connect, I get the following error message in a dialog:

"Cannot connect server SERVERNAME\INSTANCENAME
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 the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)(Microsoft SQL Server)"

The funny thing is that I can connect to the SQL Server 2000 default instance that is on that server.
So it's obviously not a connection problem per se at my end i.e. bad dns etc which might stop me resolving the server name.

Googling for this error text gives the following advice on various web sites:

1. Check that the remote server allows connections.

It does, as other colleagues in my team have successfully installed the tools and can connect with no problems.

2. Check that the SQL Browser service is running.

It is, as without this running, my colleagues would not be able to connect either.

3. Open SQL Server Configuration Manager. Select "SQL Server 2005 Network Configuration | Protocols for MSSQLSERVER" then enable the protocols you need.

The required protocol (TCP/IP) is enabled. Named pipes is also enabled, although I don't think that we're using that. And shared memory is also enabled by default.

4. Open the firewall and add exceptions for sqlbrowser.exe or UDP port
1434

There is no firewall running at either end of the connection and as mentioned I can connect to the SS2K default instance.

5. Make sure that the server machine is reachable.

I can connect to the SS2K default instance so it must be reachable. I can't see that I would need to change any configuration settings as my colleagues are using exactly the same default settings for their connections and they work fine.

The only thing that I have done differently is that I originally installed the client tools using someone else's privileged account as I didn't have admin rights on my box. The client tools didn't work, so I got admin rights to my box, uninstalled the client tools and then reinstalled them using my account. Still no luck. Not sure if something is still hanging around after the uninstallation that would cause me a problem.

To help, I've also filled out the following questionnaire:

[1] Client side:

> What is the connection string in you app or DSN?

There isn't one. I'm trying to connect from the SQL Server Management Studio | 'Connect to Server' dialog.

> If client fails to connect, what is the client error messages?

"Cannot connect server Y\Z
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 the default settings SQL Server does not
allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)(Microsoft SQL Server)"

Is the client remote or local to the SQL server machine? Remote

Can you ping your server? YES

Can you telnet to your SQL Server? YES

What is your client database provider? [SNAC | MDAC | ADO.NET1.0 | ADO.NET2.0| other (please specify] N/A
What is your client application? SQL Management Studio
Is your client computer in the same domain as the Server computer? Different domains
What protocol the client enabled? [Shared Memory | TCPIP | Named Pipes]. All 3 protocols are enabled
Do you have aliases configured that match the server name portion of your connection string? No
Do you select force encryption on server and/or client? No

[2] Server side:

What is the MS SQL version? SQL Server 2005
What is the SKU of MS SQL? Enterprise
What is the SQL Server Protocol enabled? [Shared Memory | TCPIP | Named Pipes ]. All 3
Does the server start successfully? YES. Other people can connect to the same instance.
If SQL Server is a named instance, is the SQL browser enabled? YES
What is the account that the SQL Server is running under? Domain Account
Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider? N/A. Firewall not running.
Do you make firewall exception for SQL Browser UDP port 1434? N/A. Firewall not running.
What tool or Application are you using to connect to SQL Server SQL Server Management Studio


[3] Platform:

What is the OS version? Windows 2003 (Server side), Windows XP Pro Version 2002 SP 2
Do you have third party antivirus, anti-spareware software installed? Symantec AntiVirus

[4] Misc:

If you have certificate configuration issue: N/A

Has anybody else come across this problem, as I've run out of ideas.

Many thanks,

Hi,

I've fixed the problem.
One of my colleagues who can log onto the SS2005 named instance from his workplace came to my workplace today and found that he also couldn't connect from there. That ruled out my installation. So we played with SQLCMD trying to connect and found that we could if we specified the TCP port (1776). So then it was just a question of working out
what the syntax was to specify the port in the Connection dialog. Turns out that server-name\,1776 works and allows us to connect.

Thanks.

Problem Connecting to SQL Server Non-default Named Instance

I am having a problem connecting to a SQL Server named [non-default] instanc
e
using the Server "alias" name. Connecting, through Enterprise Manager with
the IP\instance name or server name\instance name works fine. Connecting to
the default instance using the alias also works fine.
I have confirmed that when connecting to the non-default instance, using
either the IP or server name, the connecting is made through the correct [no
t
1433] port.
We have a developer network, with some workstations being able to use the
"alias"\instance name, and other workstations not, when conencting to the
non-default instance. So, there is something particular to some workstations
that is preventing access to non-default SQL instances using the alias.
The developer workstations are all built identically, so could it be an XP
service pack that may only have been applied to some workstations, that coul
d
be causing the problem? Or is there another reason.
Thanks!
dcnDeveloper.Canada.Net wrote:
> I am having a problem connecting to a SQL Server named [non-default]
> instance using the Server "alias" name. Connecting, through
> Enterprise Manager with the IP\instance name or server name\instance
> name works fine. Connecting to the default instance using the alias
> also works fine.
> I have confirmed that when connecting to the non-default instance,
> using either the IP or server name, the connecting is made through
> the correct [not 1433] port.
> We have a developer network, with some workstations being able to use
> the "alias"\instance name, and other workstations not, when
> conencting to the non-default instance. So, there is something
> particular to some workstations that is preventing access to
> non-default SQL instances using the alias.
> The developer workstations are all built identically, so could it be
> an XP service pack that may only have been applied to some
> workstations, that could be causing the problem? Or is there another
> reason.
> Thanks!
> dcn
SP2 does have some issues connecting to MSDE. IUf you define an alias,
you use just the alias name to connect, not alias\instance.
Are you defining the alias in the SQL Server Client Network Utility?
David Gugick
Imceda Software
www.imceda.com|||I must use the instance name, as we have about 10 instances on the same
server, all using different ports.
I have not defined the alias in the client utility, although I know this
works. It is just puzzling why I cannot use the alias\instance name when
connecting to the database, whereas other computers can. There is somthing
different between half the PCs in our development group, and the
rest...although not sure what.
We will likely not spin our wheels any further on this, and just live with
an alias setting in the client utility as a workaround for the affected PCs.
Thanks!
dcn
"David Gugick" wrote:

> Developer.Canada.Net wrote:
> SP2 does have some issues connecting to MSDE. IUf you define an alias,
> you use just the alias name to connect, not alias\instance.
> Are you defining the alias in the SQL Server Client Network Utility?
> --
> David Gugick
> Imceda Software
> www.imceda.com
>|||I'm sure they were all built the same. That doesn't really mean they are
necessarily the same now if they are developer machines though (unless your
developers are MUCH different than any I ever met). Have you tried having
them upgrade the MDAC on the machines that don'e work just for kicks and
grins? You can find the latest at www.microsoft.com/data
"Developer.Canada.Net" <Developer.Canada.Net@.discussions.microsoft.com>
wrote in message news:7974ACEC-FE12-4250-B122-8865CFE44C10@.microsoft.com...
> I must use the instance name, as we have about 10 instances on the same
> server, all using different ports.
> I have not defined the alias in the client utility, although I know this
> works. It is just puzzling why I cannot use the alias\instance name when
> connecting to the database, whereas other computers can. There is somthing
> different between half the PCs in our development group, and the
> rest...although not sure what.
> We will likely not spin our wheels any further on this, and just live with
> an alias setting in the client utility as a workaround for the affected
PCs.
> Thanks!
> dcn
>
> "David Gugick" wrote:
>|||Developer.Canada.Net wrote:
> I must use the instance name, as we have about 10 instances on the
> same server, all using different ports.
> I have not defined the alias in the client utility, although I know
> this works. It is just puzzling why I cannot use the alias\instance
> name when connecting to the database, whereas other computers can.
> There is somthing different between half the PCs in our development
> group, and the rest...although not sure what.
> We will likely not spin our wheels any further on this, and just live
> with an alias setting in the client utility as a workaround for the
> affected PCs. Thanks!
> dcn
>
> "David Gugick" wrote:
>
Try turning off the Windows Firewall and see what happens.
David Gugick
Imceda Software
www.imceda.com|||On Thu, 10 Mar 2005 15:56:17 -0500, "David Gugick"
<davidg-nospam@.imceda.com> wrote:
in <#6n6bObJFHA.3428@.tk2msftngp13.phx.gbl>

>SP2 does have some issues connecting to MSDE. IUf you define an alias,
>you use just the alias name to connect, not alias\instance.
As far as I can tell the only issues have to do with implementing
the ridiculous excuse for a firewall that SP2 provides. SP2 has
no issues connecting to MSDE if a real firewall like KERIO is
used. My apologies, but this is deliberately meant to sound
inflammatory.
Stefan Berglund|||Stefan Berglund wrote:
> On Thu, 10 Mar 2005 15:56:17 -0500, "David Gugick"
> As far as I can tell the only issues have to do with implementing
> the ridiculous excuse for a firewall that SP2 provides. SP2 has
> no issues connecting to MSDE if a real firewall like KERIO is
> used. My apologies, but this is deliberately meant to sound
> inflammatory.
I assume you mean inflammatory to Microsoft, no?
David G.|||On Sat, 12 Mar 2005 12:51:21 -0500, "David Gugick"
<davidg-nospam@.imceda.com> wrote:
in <#qyVYwyJFHA.336@.TK2MSFTNGP09.phx.gbl>

>Stefan Berglund wrote:
>I assume you mean inflammatory to Microsoft, no?
Yes, of course.
Stefan Berglund|||I agree it's not a full-featured firewall, but is much improved in SP2
and as I understand it will examine incoming and outgoing packets to
some degree. For end users who until recently probably didn't keep their
virus definitions up to date, the firewall can help. Most end-users who
are on some sort of broadband have their PCs hooked directly to the
cable/DSL modem, further exposing them to attack. For businesses, this
is generally not a problem, but it does cause headaches for many
end-users, headaches aside.
David G.|||On Sun, 13 Mar 2005 21:29:57 -0500, "David Gugick"
<davidg-nospam@.imceda.com> wrote:
in <OueRz2DKFHA.732@.TK2MSFTNGP12.phx.gbl>

>I agree it's not a full-featured firewall, but is much improved in SP2
>and as I understand it will examine incoming and outgoing packets to
>some degree. For end users who until recently probably didn't keep their
>virus definitions up to date, the firewall can help. Most end-users who
>are on some sort of broadband have their PCs hooked directly to the
>cable/DSL modem, further exposing them to attack. For businesses, this
>is generally not a problem, but it does cause headaches for many
>end-users, headaches aside.
I can only suppose that by improved you mean turned on by
default. I was not aware that it did any stateful inspection of
packets or that it even looked at outgoing traffic. Obviously
the ~Windows firewall~ is better than nothing, but I prefer and
insist that all my clients operate from behind a hardware
firewall in addition to having Kerio, AVG, Ad-Aware, and Spybot
S&D on every box. I run all that even on my server which also
runs SQL and it goes without saying that they all get along
together fabulously.
Kerio can be a bit overwhelming for the novice, but once it's set
up it's a breeze. I've even used it to reclaim a client's laptop
that had been taken over by the Dark Angel trojan. This thing
was so insidious that on every reboot it took out ZoneAlarm and
Norton. Norton was able to detect its attempts at phoning home
but wasn't able to cope otherwise. It was at this point that I
removed Norton and ZoneAlarm from my boxes and went with tools
that are comparatively more lightweight and that do the job
expected of them.
Stefan Berglund

Problem connecting to SQL Server 2005 database instance

I have an old ASP app that I have had to migrate to use SQL Server 2005. I have two pages that are virtually identical (one is edit only the other makes provision for adding new records - I didn't write these apps but I am responsible for making them work now). One page connect successfully to the SQL Server Instance and the other does not. They are using EXACTLY the same connect string.

The only weird thing that has transpired is that we migrated to Active Directory recently. The ASP app that connects successfully was already on the web server prior to AD migration. The one that does not connect successfully was migrated after AD migration.

Further, the app that does not connect correctly when it is installed on my production web server does connect correctly when I am running it under IIS on my local development machine.

Anyone have any ideas about what could be wrong here? I'm suspecting that some credentialing issue is the problem as the big difference on the production web server is that the app that connects correctly from there was there pre AD migration and the app that does not connect correctly was not.

several questions:
1) Can you post your connection string here?
2) Did you get any error message?
3) Is you IIS server on the same box as your SQL Server?

Thanks.

|||

The SQL Server instance is running behind a firewall on a fairly beefy Win 2003 server. The IIS server is a separate machine on WIN 2003 Server behind the same firewall.

The error message I get is as follows:

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

/jblol/od_sheets_edit/Od_sheets.asp, line 32

Here is the connection string section that will not connect (of course uid and pwd are changed to protect the guilty).

<%@. Language=VBScript %>

<!--#Include File = "Resources/adovbs.inc"-->
<script LANGUAGE="vbscript">
<!--
Sub button2_onclick
if FORM1.selORGANIZATION.value = "" then
msgbox "You must first select a location"
Exit Sub
End If

if FORM1.txtPart.value = "" then
msgbox "You must provide an Item Number"
Exit Sub
End If

FORM1.action = "QueryPart.asp"
FORM1.submit
End Sub

-->
</script>
<html>
<%

Dim rst, conn, strDeptText, strOperation
'Here's Where we will Customize Which Group of Data we are Querying........
strOperation = Request.QueryString("txtOperation")
Set conn = Server.CreateObject("ADODB.Connection")
Set rst = server.CreateObject("ADODB.Recordset")
conn.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=XXXXXX;Password=XXXXXX;Initial Catalog=OD_Sheets;Data Source=TSD0N1D01/TSDSQL200501"
conn.Open

Here is the section of pretty identical code that does connect properly.

<!--#Include File = "Resources/adovbs.inc"-->
<script LANGUAGE="vbscript">
<!--
Sub button2_onclick
if FORM1.selORGANIZATION.value = "" then
msgbox "You must first select a location"
Exit Sub
End If

if FORM1.txtPart.value = "" then
msgbox "You must provide a Item Number"
Exit Sub
End If

FORM1.action = "QueryPart.asp"
FORM1.submit
End Sub

-->
</script>
<html>
<%

Dim rst, conn, strDeptText, strOperation
'Here's Where we will Customize Which Group of Data we are Querying........
strOperation = Request.QueryString("txtOperation")
Set conn = Server.CreateObject("ADODB.Connection")
Set rst = server.CreateObject("ADODB.Recordset")
conn.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=XXXXXX;Password=XXXXXX;Initial Catalog=OD_Sheets;Data Source=TSD0N1D01\TSDSQL200501"
conn.Open

%>

|||You know, it looks to me as if this must somehow be trying to execute an older version of this page that is perhaps in a cache or something. These things are identical and it makes no sense that one would connect just fine and one would not. I'm going to pursue that idea and see if it goes anywhere.|||

for the first one: should be:
--Data Source=TSD0N1D01\TSDSQL200501--

rather then:
--Data Source=TSD0N1D01/TSDSQL200501--

Please confirm if this fix your problem.

Thanks,

|||

Duh, how stupid am I. That was the problem.

Steve Wells - the stupidest programmer who manages to still stay employed despite it