Ben sql sunucusunda depolanan bir yordamı 'spGetOrderByID' var.
Verilen sipariş id göre bir rekor verir.
I SQL Server çalışırken ve depolanan süreç ile, iyi çalışıyor.
Bu kullanarak php kodu IAM
$this->_connectionString = mssql_connect($host, $username, $password) or die("can't connect to server1");
$this->_dbName ='databaseName";
$selectDB = mssql_select_db($this->_dbName, $this->_connectionString ) or die('Databse error');
$sp = mssql_init('spGetOrderByID', $this->_connectionString);
$orderId =824;
mssql_bind($sp, "@orderID", $orderId, SQLINT1, false, false);
mssql_execute($sp,$this->_dbName);
echo $orderId;
1: Doğru, $ orderid olacak bana sored yordamı sonucunu bildireceğiz?
2: ben zaten başarıyla MS SQL sunucusuna bağlanmak için working.But için saklı yordamı için, php bir herhangi bir yeni ayarını gerekir mi
3: Şimdi ben Uyarı alıyorum: mssql_execute (): saklı yordam yürütme başarısız oldu
Bana bildiriniz