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

Antwort per Email an