Re: Qualifier und Owner ermitteln



Hi Elmar,

vielen Dank für die Links. Ich schaue es mir an.

Grüße
Christian

"Elmar Boye" wrote:


Hallo Christian,

ChristianH schrieb:
beim dynamischen Generieren von SQL soll vor dem Tabellennamen ein Qualifier
und ein Owner stehen. Z.B:

SELECT * FROM [qualifier].[owner].[TableName]

[owner] wird z.B. der dbo sein. Hierbei müsste es sich um Schema handeln,
> da ich beim Abruf von Metadaten über
> myOdbcConnection.GetSchema( OdbcMetaDataCollectionNames.Tables);
die Informationen zum Tabellenschema (dbo) erhalte.

Hättest Du im gestrigen Threads die Links aufmerksam gelesen,
brauchtest Du die Frage nicht zu stellen.
Da es gestern aber über der Identifier Problematik untergegangen
sein kann, noch mal einige Links:

<URL:http://books.google.de/books?id=F4dzMjYmLRIC&pg=PA21&lpg=PA21#v=onepage&q=&f=false>

Soweit es den SQL Server betrifft:
<URL:http://msdn.microsoft.com/de-de/library/ms190387.aspx>
"Trennung von Benutzer und Schema"

(d.h. Owner war gestern, heute reden wir von Schema)

führt zu
<URL:http://msdn.microsoft.com/de-de/library/ms175874.aspx>
"Bezeichner"

ADO.NET respektive ODBC wiederum bildet über seine Informationsfunktionen
ähnliches ab wie die INFORMATION_SCHEMA Sichten (ANSI-SQL):
<URL:http://msdn.microsoft.com/de-de/library/ms186778.aspx>

ein vierteiliger Name wie ihn der SQL Server kennt ist dort
nicht vorgesehen (und wird nur von wenigen RDBMS unterstützt
- siehe erster Link).

Gruß Elmar

.



Relevant Pages

  • Re: SQL Connection String
    ... I want to access a database which has a different owner. ... If this is SQL Server 2000, then I can guarantee you mean owner. ... Server 2005 or greater, you probably mean schema. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Permissions
    ... Do the objects have the same owner ... I have a table, myTable, in a schema named Schema1. ... The permissions on Schema1.myTable are left unchanged (no ... This is Sql Server 2005 Standard, ...
    (microsoft.public.sqlserver.server)
  • Re: No access at sql 2000 DB after restore on an other sql server
    ... i've create ^the db owner user on the new server and executed ... i start query analyzer and login as the db owner ... Apparently your default schema on the server is not the schema where the ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)
  • Re: Need help on how to organize users and objects
    ... development databases, and the crucial thing is not the SQL Server ... the owner by default. ... In 2005, if a user creates an sp, which schema ...
    (microsoft.public.sqlserver.security)
  • Re: created by attribute
    ... track this separarately rather than at the security descriptor level. ... the owner is stored in the ACL of the object... ... I would not extend the schema for that. ... portal the portal admins can create new users. ...
    (microsoft.public.windows.server.active_directory)

Quantcast