Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a table dbo owner
Message
 
 
À
18/03/2005 16:12:15
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00997451
Message ID:
00997516
Vues:
11
This message has been marked as the solution to the initial question of the thread.
If you're a member of the db_dbowner or db_ddladmin fixed database roles than you can create a table with dbo as an owner
CREATE TABLE myDB.dbo.ctest3
...
>I am using Visual Foxpro to programmatically create a table in a SQL Server database. The following works fine except that the table is created with my userid as the owner. What I really what is for the owner to be DBO.
>
>How can I change the following syntax to create the table with an owner of DBO?
>
>
>Text to lc_sql textmerge noshow
>CREATE TABLE [ctest3] (
>	[cname] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
>) ON [PRIMARY]
>ENDTEXT
>
>=SQLEXEC(myconn, lc_sql)
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform