Re: New database user / denying access / view / odbc

From: Michael Vardnghus (mivar@wmdata.com)
Date: 08/31/02


From: "Michael Vardnghus" <mivar@wmdata.com>
Date: Sat, 31 Aug 2002 11:58:58 -0700


Thanks for the quick answer

In the odbc data source administrator i chose "with sql
server authentication...." instead of windows nt
authentication.

And I entered then new databaser user in "login id"

However...i am running on a laptop where i have installed
an sql-server and i'm connecting to this through odbc on
the same machine ...could this have any influence ... does
it only work in a true client / server environment ?

Can it be a bug in microsoft query that comes with excel ?
When i select a table in the graphical userinterface i am
allowed to (despite of the fact that i shouldn't be...)
but when i in the same tool choose to select data by
writing an sql-statement i am not allowed...

\Michael V.

>-----Original Message-----
>Michael,
>
>I know this isn't a lot of help, but Query Analyzer
connects to SQL Server
>via ODBC, so I doubt very much whether this is an ODBC
issue.
>
>My best guess, is that your application ODBC connection
string is using
>Windows Authentication, and so is connecting as you, and
your permissions,
>rather than that of the user that you are trying to
impersonate.
>
>-------------------------------------------
>BP Margolin
>Please reply only to the newsgroups.
>When posting, inclusion of SQL (CREATE TABLE ...,
INSERT ..., etc.) which
>can be cut and pasted into Query Analyzer is appreciated.
>
>"Michael Vardinghus" <mivar@wmdata.com> wrote in message
>news:aaec01c2511d$e6fa9b00$35ef2ecf@TKMSFTNGXA11...
>> Hello
>>
>> I have a problem. I have created a new database role to
>> wich I have created a new user - this user has only been
>> granted access to a view that I have created.
>>
>> When I try to select something from query analyzer with
>> the new user it works perfectly - i can select something
>> from the tables that the user has no rights to -
>> however....
>>
>> When I connect through odbc to the database with the new
>> database user i can select from the tables that the user
>> has no rights to ?
>>
>> Why doesn't it work with the odbc connection.
>
>
>.
>



Relevant Pages

  • RE: Invalid cursor state when using PRINT in MSSQL
    ... Interesting article but I seriously doubt you are using the ODBC 2.0 MS SQL ... DBD::ODBC does call SQLError immediately after SQLExecute returns ... I was unable to reproduce this with the ODBC 3 MS SQL Server driver ...
    (perl.dbi.users)
  • Re: DTC Fehler
    ... Lege im SQL Server einen Linked Server für die AS/400 an. ... Einstellungen für den Providerstring - vergleiche auch Angaben zum ODBC ... Die Verbindung zur AS/400 wird über den IBM Client Access ...
    (microsoft.public.de.sqlserver)
  • Re: MS Access database to gradually become a server based database - which one ?
    ... Server 2008 Express Edition. ... SQL server is indeed a high performance system, and also a system that can ... Before Microsoft started "really" selling sql server, they rated JET could ... (this ONLY applies to odbc to sql server...you CAN and are FREE to do this ...
    (microsoft.public.access.gettingstarted)
  • ODBC-Verbindung zu {SQL Native Client}(schulelb002) fehlgeschlagen.
    ... Muss ich etwa einen ODBC Driver am Server oder am Client installieren? ... OleDb ist nicht etwa besser oder so... ... den kriegst Du indem Du {SQL Server} durch ersetzt. ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • Re: DTC Fehler
    ... Auf dem Windows Server ist SQL Server 2000 SP3a und ... wird der Barcode im SQL ... Server abgespeichert und der Trigger ausgelöst (After ... Access Express ODBC to a R510 or later OS/400 system. ...
    (microsoft.public.de.sqlserver)