由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - a simple question about T-SQL
相关主题
Import 50GB data from multiple .txt file into MS SQL databaseSQL Server stupid questions
SQL server stored procedure 求助[转载] 真的没有人懂 ORACLE pro*c阿? :((((
How to handle inserting value to Identity column in sql server 2005[转载] JDBC 处理日期的问题(日期插入数据库)
Problem when using SQL " Insert...." to AutoNumber.SQL问题求救!!
Help on Sql server huge table performanceSQL help.
MS T-SQL 问题SQL Server insert speed too slow! Help?
How to replace 0 with empty?How to get SQL help in sqlplus?
JDBC: How to get Identity after insertHELP! SQL Server vs JDBC question
相关话题的讨论汇总
话题: identity话题: insert话题: sql话题: column话题: inserting
进入Database版参与讨论
1 (共1页)
i****s
发帖数: 128
1
how to turn off IDENTITY_INSERT when inserting explicit
value for identity column? thanks!
s*****c
发帖数: 36
2

~~~? on?
Only the table owner, the Database Owner, or the System
Administrator can explicitly insert a value into an IDENTITY
column. Before inserting the data, the user must set the
identity_insert option on for the table. A user can set
identity_insert on for only one table at a time in a
database.
This example specifies a "seed" value of 101 for the
IDENTITY column:
set identity_insert sales_daily on
insert into sales_daily (syb_identity, stor_id) values
(101, '13-J-9'

【在 i****s 的大作中提到】
: how to turn off IDENTITY_INSERT when inserting explicit
: value for identity column? thanks!

i****s
发帖数: 128
3
you are right, should be on instead.
thanks a lot, skeptic.

【在 s*****c 的大作中提到】
:
: ~~~? on?
: Only the table owner, the Database Owner, or the System
: Administrator can explicitly insert a value into an IDENTITY
: column. Before inserting the data, the user must set the
: identity_insert option on for the table. A user can set
: identity_insert on for only one table at a time in a
: database.
: This example specifies a "seed" value of 101 for the
: IDENTITY column:

1 (共1页)
进入Database版参与讨论
相关主题
HELP! SQL Server vs JDBC questionHelp on Sql server huge table performance
[转载] Can anyone interpret this simple SQL?MS T-SQL 问题
今典问题: 这个Self Query咋写?How to replace 0 with empty?
SQL Server 2005: How to hash a column?JDBC: How to get Identity after insert
Import 50GB data from multiple .txt file into MS SQL databaseSQL Server stupid questions
SQL server stored procedure 求助[转载] 真的没有人懂 ORACLE pro*c阿? :((((
How to handle inserting value to Identity column in sql server 2005[转载] JDBC 处理日期的问题(日期插入数据库)
Problem when using SQL " Insert...." to AutoNumber.SQL问题求救!!
相关话题的讨论汇总
话题: identity话题: insert话题: sql话题: column话题: inserting