diff --git a/webfiori/database/mssql/MSSQLColumn.php b/webfiori/database/mssql/MSSQLColumn.php index e88278a..3bc4f28 100644 --- a/webfiori/database/mssql/MSSQLColumn.php +++ b/webfiori/database/mssql/MSSQLColumn.php @@ -632,6 +632,7 @@ private function defaultPartString() { } } private function firstColPartString() { + $this->setWithTablePrefix(false); $retVal = MSSQLQuery::squareBr($this->getName()).' '; $colDataTypeSq = MSSQLQuery::squareBr($this->getDatatype()); $colDataType = $this->getDatatype(); diff --git a/webfiori/database/mssql/MSSQLTable.php b/webfiori/database/mssql/MSSQLTable.php index d2f9efd..c8b472f 100644 --- a/webfiori/database/mssql/MSSQLTable.php +++ b/webfiori/database/mssql/MSSQLTable.php @@ -299,11 +299,13 @@ private function createFKString() { $sourceCols = []; foreach ($fkObj->getSourceCols() as $colObj) { + $colObj->setWithTablePrefix(false); $sourceCols[] = ''.$colObj->getName().''; } $targetCols = []; foreach ($fkObj->getOwnerCols() as $colObj) { + $colObj->setWithTablePrefix(false); $targetCols[] = ''.$colObj->getName().''; } $fkConstraint .= " constraint ".$fkObj->getKeyName().' '