Re: Here's a rather broad question...
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Wed, 21 Jun 2006 13:47:56 +0100
I'm familiar enough with using ADO with VBScript/Javascript in ASP pages,now)
having developed this particular system (and used it for several years
on XP 32-bit / SQL Server 2000 (and then migrated to SQL Server 2005 lastthe
year shortly after it came out). I'm now at a stage where I use XP 64-bit
as my primary OS, so it's only natural that I'd want to migrate this to
64-bit version of SQL Server 2005.
I agree with the naturalness, thats my thoughts too. It is the way it will
go.
The only question is whether it is premature. It seems to me that not all
the 64-bit support is in place.
Given time, it will be.
The other question here is : Will Microsoft fix problems or keep running
for technology that in their terms is legacy for new platforms? An example
is ADO. It is clear to me that Microsoft are putting all their efforts into
ADO.NET and not its predecessor, will they fix any ADO problems that arise?
It may be the answer is "yes" as they might be willing to keep non-.NET
technology running on 64-bit Windows. MDAC 2.8 was fixes for 64-bit
Windowss.
On XP 32-bit it was pretty straightforward--I set up a system data sourceassign
with the ODBC control panel applet, and my ASP code simply used
"DSN=[whatever]" as its connection string--that's it, and I had no
authentication or permission issues with SQL Server 2000. When I made the
move to SQL Server 2005 (but still on XP 32-bit) I remember having to
specific permissions to grant the anonymous IIS user access to thedatabase.
Right.
The only thing I would say is that Microsoft have frozen development on ODBC
stuff and they have removed distributing the OLEDBODBC provider from MDAC
(you can still download it though).
That provider allowed ADO to connect to databases that only came with an
ODBC driver, efectively it is piggy-backing. ODBC is now 2 legacy
technologies ago (if you count ADO as 1 legacy technology ago).
The problem I'm now seeing seems to be twofold: (a) I'm told by thesystem
the data source name doesn't exist despite recreating it with the controlI'm
applet and (b) if I try to use a "real" connection string right in the ASP
code (trying the various examples provided at www.connectionstrings.com)
running into authentication problems just trying to connect. I suspect myknowledge
problem stems more from my lack of SQL Server 2005 user/permission
than ADO itself. As far as I can tell, I suspect the default (anonymous)can
IIS user doesn't have the proper permissions to access the database, and I
just can't figure out the right permissions. The changes I need to make
very well be in SQL or IIS (or both), but I figured since ADO is where the
link between the two is made, it would make sense to ask in an ADO
(*classic* ADO) newsgroup...
My gut feeling in trying to solve this would be to cut out ODBC and just use
pure OLEDB/ADO. For the SQL Server provider, there are 2 authentication
methods: SQL Server (UserID/Password required) or Windows NT
Authentification (No UserID/Password required). I have managed to get both
going in the past with one of our applications and ADO. With NT
Authentication the connection string has
";Integrated Security=SSPI" appended.
I don't know if that can be done with IIS
My general connection string is
"Provider=sqloledb;Data Source=yourserver;Initial Catalogue=yourdatabase"
with UserID & Password passed in
pConnection->Open(bstrConnection, bstrUserID, bstrPassword, 0L);
with bstrUserID, bstrPassword set to "" if the clause ";Integrated
Security=SSPI" is appended
Any good?
Stephen Howe
.
- Follow-Ups:
- Re: Here's a rather broad question...
- From: Homer J. Simpson
- Re: Here's a rather broad question...
- References:
- Here's a rather broad question...
- From: Homer J. Simpson
- Re: Here's a rather broad question...
- From: Stephen Howe
- Re: Here's a rather broad question...
- From: Homer J. Simpson
- Re: Here's a rather broad question...
- From: Stephen Howe
- Re: Here's a rather broad question...
- From: Homer J. Simpson
- Here's a rather broad question...
- Prev by Date: Re: Trasaction and Dataset
- Next by Date: Re: Here's a rather broad question...
- Previous by thread: Re: Here's a rather broad question...
- Next by thread: Re: Here's a rather broad question...
- Index(es):
Relevant Pages
|
Loading