SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 joininig 2 SQL queries ,possible??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

leo83
Starting Member

Germany
1 Posts

Posted - 04/25/2008 :  09:07:15  Show Profile  Reply with Quote
Hello all,

Is it possible to create a database, Schema, table all at once using one SQL query.
or atleast a database and Schema using a single query.

Eg: Create database "Max", Create schema "min" .

please reply,
Thanks
Abhi

SwePeso
Patron Saint of Lost Yaks

Sweden
29910 Posts

Posted - 04/25/2008 :  09:43:04  Show Profile  Visit SwePeso's Homepage  Reply with Quote
No.
In a "batch" the answer is yes.

CREATE DATABASE ...
GO
CREATE SCHEMA ....




E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000