![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
but for hours, i cannot establish a working connection, i cannot login to the ms sql server from the asp scripts. i try and try, nothing works. i always get [note: this is my own translation from german, not the actual english error msg] 'error when logging in user bla. this user isn't assigned to any trusted sql connection.' i am absolutely new to ms sql and asp. i myself actually develop in php/apache/mysql. i don't have time to go deeper - i just want to run this project, for viewing only. *please can anyone tell me what and where exactly i have to set in ms sql server management studio 9.0* ???!!! what i did so far: - set the auth mode to "sql server and win"; (however the manager is connected through win auth because of that very error) - my conn string currently is PROVIDER=SQLOLEDB;DATA SOURCE=DANIEL; Initial Catalog=dbo; User ID=bla;Password=fasel; (dbo is the database name, DANIEL is the mssql server name) - in managemnet studio, in security>auth (?, anmeldungen), where sa etc is, i created bla, with password=fasel; and in databases>dbo i added bla to users (i hope so/it looks like). |
#4
| |||
| |||
|
|
In Management Studio, in the Object Explorer, right-click the server itself, and select Properties. Find Security to the left. On the top of this page, you have two choices for Server authentication. Select SQL Server and Windows Authentication mode, the second option. You need to restart the server for it to take effect. Once you've done this, use the connect string with User ID and Password. |
#5
| |||
| |||
|
|
i also tried uid instead of user id and pwd instead of password, which i assume are just aliases?, that is, i now use the same structure as in the original project, the objects mentioned in the connstring seem to exist, the sql auth seems to work since now the server manager after restart logs in with sql auth, using u/p = u1/p1 -- but, it still doesnt work. but, the problem appearance slightly differs now: still, ie takes 5 minutes to "load" the page - but then, no error message at all appears anymore, nor does the page itself - just a blank screen. whats up?? i guess, only error logs could still help me out? where to find them? where to get more details? thanx again!!!! |
#6
| |||
| |||
|
|
If you get blank page in your browser, I would suspect that there is a problem with the HTML sent to the broweser. For help to debug that part, you may be better of in an ASP forum. |
|
If it takes five minutes before you get that far, I would guess this is because it takes five minutes to run the query. You can verify in Mgmt Studio that you are connected by running sp_who2. |
|
to identify your process. |
#7
| |||
| |||
|
|
It's rather the five minutes, and *then* blank screen. the asp is simply the 3 connect lines. |
|
sorry for my stupid question: *where* to run sp_who2 and how? =) |
![]() |
| Thread Tools | |
| Display Modes | |
| |