I'm using PDO to communicate with my database from PHP code and i have the following code:
$sql = "SELECT <Column> FROM <tablename>";
it works for my mssql database, however when i try to insert some data into it with
$sql = "INSERT INTO <tablename> ( <Column> ) VALUES ( '1' )";
it fails.
why?
it's funny, but when i run that code from my SQL Server Management Studio - it works. I can't get it...
The error i get is:
SQLSTATE[HY000]: General error: 515 General SQL Server error: Check messages from the SQL Server [515] (severity 16) [(null)]
Thanks in advance...