|
|
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
как посмотреть временную табличку? docmd.opentable "##temptablename" - не находит такого имени ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 13:53 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
А что такое временная табличка? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 13:58 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
ласково так ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 13:59 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
времененькая табличенка ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:00 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
Просто если это твой термин, и таблица с таким именем существует - она должна открываться (у меня открылась). Если нет (не существует, а создается в ходе выполнения программы), покажи код, которым она создается... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:02 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
Похоже еще один глюк акскса. Создал ## таблицу, в качестве источника записей формы спокойно задействуется. А вот docmd.opentable "##temptablename" не прокатывает. Пробовал tempdb..##temptablename, tempdb.dbo.##temptablename - тот же результат. рисуй форму, программно при открытии в режиме таблицы задавай ей имя временной таблицы в качестве источника записей и будет тебе щастье. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:08 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
2Pavel А в каком Accesse? Станно. В 02 создал таблицу ##temptablename, она открылась. C другой стороны, В «Соглашении об именах полей, элементов управления и объектов» сказано, что имя может включать любую комбинацию букв, цифр, пробелов и специальных символов за исключением точки (.), восклицательного знака (!), надстрочного символа (`), прямых скобок ([ ]) и управляющих символов (с кодами ASCII от 0 до 31), а также не должно начинаться с символа пробела. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:12 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
Вру, соглашение тут не при чем. У # код ASCII - 35 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:14 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
# и ## - обозначение временных таблиц в SQL SERVER ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:18 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
#имя_таблички и ##имя_таблички - так можно создавать таблицы на SQL Server-e - отличие такое: Temporary Tables You can create local and global temporary tables. Local temporary tables are visible only in the current session; global temporary tables are visible to all sessions. Prefix local temporary table names with single number sign (#table_name), and prefix global temporary table names with a double number sign (##table_name). SQL statements reference the temporary table using the value specified for table_name in the CREATE TABLE statement: CREATE TABLE #MyTempTable (cola INT PRIMARY KEY) INSERT INTO #MyTempTable VALUES (1) If a local temporary table is created in a stored procedure or application that can be executed at the same time by several users, SQL Server has to be able to distinguish the tables created by the different users. SQL Server does this by internally appending a numeric suffix to each local temporary table name. The full name of a temporary table as stored in the sysobjects table in tempdb consists of table name specified in the CREATE TABLE statement and the system-generated numeric suffix. To allow for the suffix, table_name specified for a local temporary name cannot exceed 116 characters. Temporary tables are automatically dropped when they go out of scope, unless explicitly dropped using DROP TABLE: A local temporary table created in a stored procedure is dropped automatically when the stored procedure completes. The table can be referenced by any nested stored procedures executed by the stored procedure that created the table. The table cannot be referenced by the process which called the stored procedure that created the table. All other local temporary tables are dropped automatically at the end of the current session. Global temporary tables are automatically dropped when the session that created the table ends and all other tasks have stopped referencing them. The association between a task and a table is maintained only for the life of a single Transact-SQL statement. This means that a global temporary table is dropped at the completion of the last Transact-SQL statement that was actively referencing the table when the creating session ended. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:21 |
|
||
|
обращение к временной таблице
|
|||
|---|---|---|---|
|
#18+
2 Pavel: Спасибо, я надеялся что это только мой глюк, а не access 2000. а так теперь генератор форм придется цеплять :( 2 Vsevolod V и его команде: бывает же такое, один маленький, конкретный вопрос(ик) , а столько народа заинтересовалось разницей между "временная табличка" , "времененькая табличенка " ....:) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.08.2003, 14:41 |
|
||
|
|

start [/forum/topic.php?fid=45&msg=32243257&tid=1679790]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
41ms |
get topic data: |
14ms |
get forum data: |
4ms |
get page messages: |
56ms |
get tp. blocked users: |
1ms |
| others: | 234ms |
| total: | 387ms |

| 0 / 0 |
