Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / October 2005

Tip: Looking for answers? Try searching our database.

cannot create a simple table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DowningDevelopments - 03 Oct 2005 23:25 GMT
hello im brand new to SQL server but im very well versed in access so i know
how sql works, to aid me in my transition im the microsoft press SQLServer
2000 book and am trying to follow the simple instructions to create a table,
the script is very simple:

use northwind
create table investors
{
IvestorID int not null,
FirstName varchar(30) not null,
LastName varchar(30) not null
}

and ive made sure that ive copied it exactly but its still not working. IM
using the personal edition to get to grips with it before using the one at
work. Im logged in using windows authentication as the user Laptop/Dr patel
which is my username, and should have full database admin rights however i
get the following result when i run the above sql:

[Microsoft][ODBC SQL Server Driver]Syntax error or access violation

what am i doing wrong?
Mike Epprecht (SQL MVP) - 03 Oct 2005 23:32 GMT
use northwind
GO
create table investors
(
IvestorID int not null,
FirstName varchar(30) not null,
LastName varchar(30) not null
)

Your curly {} brackets were wrong.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

> hello im brand new to SQL server but im very well versed in access so i
> know
[quoted text clipped - 21 lines]
>
> what am i doing wrong?
DowningDevelopments - 03 Oct 2005 23:37 GMT
Noooo, I figured it had to be something stupid like that!!!

thanks Mike

> use northwind
> GO
[quoted text clipped - 43 lines]
> >
> > what am i doing wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.