mat (mat@notarealdotcom.adr) writes:
> I know your advice is good; I'm not anti-scripting, many times it's the
> best. But right now I do find design view to be useful too. I do lots of
> coding with software other than sql server, and having a nice gui like
> ssms helps me get things done.
As long as they do it right. And the Table Designer does not always do
that. Be very careful with making changes to tables, there are some
horrible bugs in that area.
Anyway, it occurred to me that there is a way to achieve what you want,
as long as you want all tables in the same schema.
In your database run this:
create login newuser with password = 'P@$$woerd'
create user newuser with default_schema = yourschema
grant control to newuser
(With the names and passwords of your choice of course.) Then connect
Object with this SQL Login. New tables will end up in the default
schema. You may get warnings that you are not the table owner, but you
can ignore these. Or make newuser the owner of the schema.
If you want newuser to have more power on the server, that is OK, but
do *not* add it to the sysadmin role, because then it will map to dbo
in the database. But you can grant it CONTROL SERVER.
--
Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se
Links for SQL Server Books Online:
SQL 2008:
http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:
http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx >> Stay informed about: How to tie table to schema?