Solved

create schema in SQL 2000

Posted on 2010-08-18
5
231 Views
Last Modified: 2012-06-27
create schema schematest

the above does not give an error (hit it accidentally again today)

what actually happens when it is compiled?

thanks
0
Comment
Question by:anushahanna
  • 2
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
Om Prakash earned 450 total points
ID: 33464632
Creates a schema that can be thought of as a conceptual object containing definitions of tables, views, and permissions.
http://msdn.microsoft.com/en-us/library/aa258256(SQL.80).aspx
0
 
LVL 3

Assisted Solution

by:PrakashRaoBS
PrakashRaoBS earned 50 total points
ID: 33464704
Schema is nothing but its a container of objects in database.

create schema schematest
just creates a schema in the current database( the databae where the comman executed).

you can drop the schema schematest from database easily by running the following command in that particular database.


use databaseName;
drop schema schematest

Open in new window

0
 
LVL 6

Author Comment

by:anushahanna
ID: 33464813
om_prakash_p, you mean that in SQL 2005, right?

PrakashRaoBS, drop schema schematest gives error in SQL 2000, but create is fine..
0
 
LVL 22

Expert Comment

by:Om Prakash
ID: 33465117
In SQL 2000
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33465635
very interesting. thanks for that helpful info.

is CREATE SCHEMA the same as CREATE SCHEMA AUTHORIZATION?

and you could not drop DROP SCHEMA AUTHORIZATION?
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now