Warum willst Du das machen? Ist nicht m�glicherweise eine Temptable ein
m�glicher Ansatz? 

Was geht ist 

Select Getdate() as Feldname
Into
#Temp

christian

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Dieter L�tje
Gesendet: Freitag, 18. Juli 2003 13:05
An: [EMAIL PROTECTED]
Betreff: [Database.asp] Problem mit TSQL-Syntax f�r Variablen

Hallo Liste,

kann mir mal schnell jemand auf die Spr�nge helfen? Ich m�chte in TSQL
'ne
Tabelle erstellen und dort in ein Datumsfeld einen Variableninhalt
einf�gen.

USE MyDb
GO

DECLARE @Zeitpunkt datetime

CREATE TABLE [tblx] ( [CreatedAt] [datetime], feld, feld, feld ) ON
PRIMARY
GO

SELECT @Zeitpunkt = GetDate()
PRINT @Zeitpunkt

.
.
.
.

INSERT INTO [tblx] (CreatedAt) VALUES (@Zeitpunkt)


Und das will er nicht. wie sieht die Syntax daf�r aus ?


vielen Dank und mfg - dieter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18.06.2003


_______________________________________________
Database.asp mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/database.asp

_______________________________________________
Database.asp mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/database.asp

Antwort per Email an