<?

$sql.="if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pf_calibre]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)\n";
$sql.="drop table [dbo].[pf_calibre]\n";

ejecutarsql($sql,$filas,$otro);
$sql="";


$sql.="if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pf_calibre]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)\n";
$sql.=" BEGIN\n";
$sql.="CREATE TABLE [dbo].[pf_calibre] (\n";
$sql.="	[id_calibre] [smallint] NOT NULL ,\n";
$sql.="	[nombre_calibre] [varchar] (50) COLLATE Modern_Spanish_CI_AI NULL ,\n";
$sql.="	CONSTRAINT [PK_pf_calibre] PRIMARY KEY  CLUSTERED \n";
$sql.="	(\n";
$sql.="		[id_calibre]\n";
$sql.="	)  ON [PRIMARY] \n";
$sql.=") ON [PRIMARY]\n";
$sql.="END\n";



ejecutarsql($sql,$filas,$otro);
$sql="";

?>

