473,516 Members | 3,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pitfalls Developing now with VS2005 and SQL Server 2005


Hi all,

I have a ASP.NET app that uses SQL Server 2000 to access the data over the
internet
and everything works fine . However, I just installed SQL server 2005, and
wanted to test
the remote connectivity of this app with the same connection string, but
just changing the target
database (to AdventureWorks).

Since I still have a default instance of sql server 2000 running
concurrently with a named
instance of 2005, and to simulate a remote connection to SQL Server 2005, I
defined a different
port number than the default 1433 in the TCP/IP network configuration for my
test box, restarted the DB engine, and
defined the port forwarding on my router for the sql server 2005 service.
I did also defined the same security settings (i.e. the same UID, and
Password for the
AdventureWorks DB).

I, then commented out my working connection string, and compiled anew to
activate the new connection string, and the connection could not open..
This is kind of how it looks like:

//this.sqlConnection1.ConnectionString =
"Server=xxx.xx.xx.xx;Database=myDB;User
ID=myUID;Password=myPWD;Trusted_Connection=False";

this.sqlConnection1.ConnectionString =
"Server=xxx.xx.xx.xx,<port>;Database=AdventureWork s;User
ID=myUID;Password=myPWD;Trusted_Connection=True";

Since I still have my instance of SQL server 2000 running concurrently with
my new named instance of SQL server 2005

I can switch back and forth by uncommenting my working connection string,
and commenting the bad one, and recompiling

and notice that it still works. However, I have not been able to find the
root cause of the problem.

Any help will be grealy appreciated.

Thanks in advance,

Carlos


Nov 19 '05 #1
1 1453

"Carlos" <ch*****@earthlink.net> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...

Hi all,

I have a ASP.NET app that uses SQL Server 2000 to access the data over the
internet
and everything works fine . However, I just installed SQL server 2005, and
wanted to test
the remote connectivity of this app with the same connection string, but
just changing the target
database (to AdventureWorks).

Since I still have a default instance of sql server 2000 running
concurrently with a named
instance of 2005, and to simulate a remote connection to SQL Server 2005,
I defined a different
port number than the default 1433 in the TCP/IP network configuration for
my test box, restarted the DB engine, and
defined the port forwarding on my router for the sql server 2005 service.
I did also defined the same security settings (i.e. the same UID, and
Password for the
AdventureWorks DB).

I, then commented out my working connection string, and compiled anew to
activate the new connection string, and the connection could not open..
This is kind of how it looks like:

//this.sqlConnection1.ConnectionString =
"Server=xxx.xx.xx.xx;Database=myDB;User
ID=myUID;Password=myPWD;Trusted_Connection=False";

this.sqlConnection1.ConnectionString =
"Server=xxx.xx.xx.xx,<port>;Database=AdventureWork s;User
ID=myUID;Password=myPWD;Trusted_Connection=True";

Since I still have my instance of SQL server 2000 running concurrently
with my new named instance of SQL server 2005

I can switch back and forth by uncommenting my working connection string,
and commenting the bad one, and recompiling

and notice that it still works. However, I have not been able to find the
root cause of the problem.

Any help will be grealy appreciated.

Thanks in advance,

Carlos

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1350
by: sinisa.stokic | last post by:
I would like some suggestions about a particular developer's environment problem I'm having. I have a developer who has VS2003 installed on his "primary" machine. (A descision has been made by the development group not to load VS2003 and VS2005 concurrently on a machine. I personally have tried this and found no ill effects. Has anybody...
2
1262
by: יוני גולדברג | last post by:
Hi, I have visual studio 2005 on client machine and another server machine (with sql server 2000 and IIS). Also i have .sln (visual studio solution) file with some asp.net project i have to change and upgrade. Where should i put the .sln file (visual studio solution)? How do i connect with VS to the server machine to change and debug the...
7
2731
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at below). Please help me get through this!!! I'm having some serious problems attaching a .mdf file and accessing it. I have a WroxUntied.mdf that I...
1
2628
by: Jeff | last post by:
Hey IDE: VS .NET 2005 #1 I want to start developing web parts in visual studio 2005 and are wondering where is the latest version of the web part templates. I did find this download (the link below), but the file is from 2004 and I don't think the file is meant to be used in visual studio 2005.... (2 years old) There must be something...
3
2368
by: Paul Lennon | last post by:
Hi, I hope I have selected the right group for this question, I am looking for assistance with using VS2005 to create a simple website on my ISP. Using VS2005 I have created a Website project using the file system. I am not trying to do any server side programming, for now simple HTML is sufficient. My site seems to be working fine...
5
3257
by: BK-Chicago | last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0. While i have fixed most of the compile time errors, i do have quite a linker error that i have not been able to resolve. The error i get is Error 100 error LNK2001: unresolved external symbol "public: virtual void __thiscall CWnd::PostNcDestroy(void)"...
14
3001
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can anyone please help me with this as I want to install SQL server and also wouold be grateful, if you can suggest me any workaround to dealwith this...
0
1508
by: fred64 | last post by:
Hello , I fought very hard and succeed to do a remote debug from a client with VS2003 on XP HOME to a Server with XP PRO. This is on a Workgroup : I created same user/pwd with admin rights for client & Server. Also modified the DCOM security to allow remote access to Anonymous login and - finally- on the SERVER (client is XP home and...
6
1857
by: Author | last post by:
I have VS 2005 professional. Here is the version info: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) &copy; 2005 Microsoft Corporation. All rights reserved. When I try to create a new project, I don't have a web application project option. In the New Project window, I select Visual C# under Project types, and on...
0
7276
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7548
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5714
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3267
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3259
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
825
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.