Ansluta till M$ SQL 2000

Databaser & SQL

1 svar · 218 visningar · startad av Macce

Medlem sedan apr. 2001425 inlägg
Trådstart#1

försöker att via ASP ansluta till sql 2000...
jag har skrivit som LarsG beskriver en .udl-fil som connectar utmärkt:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=pp;Data Source=ILS-DELL

men när jag använder den till mitt ASP-script kommer detta felmeddelnade:

Feltyp:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'ILS-DELL\IUSR_ILS-DELL'.
/inc_databas_open.asp, line 3

nån som vet vad jag gör för fel ???

Medlem sedan apr. 2001425 inlägg
#2

Det löste sig...

Windows NT Authentication
The computer running SQL Server enables access to its data through Windows NT accounts. To enable Windows NT authentication, through the Internet Information Server (IIS) computer, Basic authentication must be enabled for the Web application. To do this, perform the following:

1. Start the Internet Services Manager.

2. Browse to the Web site, right-click the Web site, and then click Properties .

3. Click the Directory Security tab, click Edit under Anonymous access and authentication control, and then select the Basic authentication (password is sent in clear text) option.

'tack till LarsG' :)

255 ms totalt · 4 externa anrop · v20260731065814-full.d34c6d5a
124 ms — deklarationer (db)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)
118 ms — ändringar (db)