<?php
// MSSQL Server
$SQLSERV = "SERVERNAME";
// MSSQL Username
$SQLUSER = "USERNAME";
// MSSQL Password
$SQLPASS = "PASSWORD";
$link = mssql_connect($SQLSERV, $SQLUSER, $SQLPASS);
if (!$link || !mssql_select_db('CoA', $link)) {
die('Unable to connect or select database!');
}
$query1 = mssql_query("
SELECT * INTO SugJobs2
FROM SugJobs
");
$query1;
?>
|