执行查询,我创建databese像服务器exploler/数据连接/添加连接。 Microsoft SQL Server Compact 3.5(.NET Framework)使用创建并创建我自己的MyDatabes.sdf文件。错误在Visual Studio
现在服务器exploler右键点击我的databese ---并点击新的查询
。
尝试运行此:
Create table [student]
(
[student_id] Bigint NOT NULL,
[bornnumber] Varchar(10) NOT NULL,
[branch] Integer NOT NULL,
[specialization] Integer NOT NULL,
[year] Smallint NULL,
[studygroup] Varchar(5) NOT NULL,
[started] Datetime NULL,
[finished] Datetime NULL,
[status] Char(1) NULL,
Primary Key ([student_id])
)
按执行查询:
显示“的CREATE TABLE SQL构造或语句不支持表查询定义不同wher写入
“。
按此conntinnous
显示SQL Executation ERROR
“错误源:SQL Server压缩ADO.NET数据提供错误消息:该指定的数据类型无效[数据类型(如果已知)。 =的Varchar]“;
我希望查询很好......我希望ADO,NET知道Varchar。请你知道是问题吗?
使用Visual Studio 2010旗舰版。
它与nvarchar一起使用吗? – khellang 2011-06-05 12:29:01