Session.SessionID can be use it for Primary Key?
2006-07-04 00:32
337 查看
Session.SessionID
The SessionID property returns the session identifier (session ID), a unique identifier that is generated by the server when the session is created. The session ID is returned as a LONG data type.
Syntax
Session.SessionID
Applies To
Session Object
Remarks
You should not use the SessionID property to generate primary key values for a database application. This is because if the Web server is restarted, some SessionID values may be the same as those generated before the server was stopped. Instead, you should use an auto-increment column data type, such as IDENTITY with Microsoft? SQL Server? or COUNTER with Microsoft Access.
Requirements Client:
Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server:
Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product:
IIS
The SessionID property returns the session identifier (session ID), a unique identifier that is generated by the server when the session is created. The session ID is returned as a LONG data type.
Syntax
Session.SessionID
Applies To
Session Object
Remarks
You should not use the SessionID property to generate primary key values for a database application. This is because if the Web server is restarted, some SessionID values may be the same as those generated before the server was stopped. Instead, you should use an auto-increment column data type, such as IDENTITY with Microsoft? SQL Server? or COUNTER with Microsoft Access.
Requirements Client:
Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server:
Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product:
IIS
相关文章推荐
- Duplicate entry 't_id' for key 'PRIMARY' 错误
- The package NAME needs to be reinstalled, but I can’t find an archive for it
- 1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key
- Xcode The Simulator can't be launched because it is already in use .
- ios The Simulator can't be launched because it is already in use.
- Incorrect table definition; there can be only one auto column and it must be defined as a key
- MySQL 数据表创建报错:there can be only one auto column and it must be defined as a key
- MySQL错误:Incorrect table definition;there can be only one auto column and it must be defined as a key
- The package needs to be reinstalled, but I can't find an archive for it.
- The package needs to be reinstalled,but I can't find an archive for it
- 1075-Incorrect table definition;there can be only one auto column and it must be defined as a key
- 我遇到的错误提示:reason: '*** setObjectForKey: object cannot be nil (key: id)' 的病因
- 解决,Incorrect table definition; there can be only one auto column and it must be defined as a key
- Usability Study: Shopping For Bedsheets – How Hard Could It Be?
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- active spring整合 but no declaration can be found for element amq:broker
- C++编译错误"a storage class can only be specified for objects and functions"解决
- Mapped Statements collection already contains value for com.dao.personMapper.selectByPrimaryKey
- No value for key [org.hibernate.impl.SessionFactoryImpl 异常解决
- ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be def