
14/02/2008, 03:24
|
| | Fecha de Ingreso: septiembre-2005
Mensajes: 135
Antigüedad: 19 años, 7 meses Puntos: 1 | |
Re: Cargar fichero en Commantext Bueno, algo he conseguido.
He cogido el archivo .sql y he copiado su contenido a un nuevo .txt.
Ahora lo lee correctamente, pero el error que da es el siguiente:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Línea 3: sintaxis incorrecta cerca de 'GO'.
El archivo contiene la siguiente informacion:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ACCESORIOS]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ACCESORIOS]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[IMTV]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[IMTV]
GO
CREATE TABLE [dbo].[ACCESORIOS] (
[MOD_TXT_ID_MODELO] [varchar] (50) COLLATE Modern_Spanish_CI_AS NOT NULL ,
[ACC_INT_ID_ACCESORIO] [int] NOT NULL ,
[ACC_TXT_NOMACCESORIO] [varchar] (200) COLLATE Modern_Spanish_CI_AS NOT NULL ,
[ACC_BIT_ACCESORIODESERIE] [bit] NOT NULL ,
[ACC_FLT_PRECIOACCESORIO] [float] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[IMTV] (
[IMTV_INT_ID_MINPOTENCIA] [int] NOT NULL ,
[IMTV_INT_ID_MAXPOTENCIA] [int] NOT NULL ,
[IMTV_FLT_IMPORTEINICIAL] [float] NOT NULL ,
[IMTV_FLT_INCREMENTOANUAL] [float] NOT NULL
) ON [PRIMARY]
GO
que no es ni mas ni menos que lo que ha generado el SQL Server. |