我在本地网络上有一个SQL Server数据库和一个Intranet Web应用程序.Intranet Web应用程序创建记录并将它们发送到数据库.我有一个Internet Web应用程序,我想在本地网络上使用SQL Server数据库发送新记录.
我无法出于各种原因更改/修改Intranet Web应用程序,因此我唯一的选择是在本地SQL Server上创建一个触发器,该触发器将使用某种http post请求或url调用将新记录发送到Internet Web应用程序.
INTERNET Web应用程序设置有RESTful api,可以通过表单发布到公共可访问的URL(例如http://www.example.com/records/new)接收新记录.
有没有人知道如果通过URL发送数据(xml,json,纯文本变量)可以在SQL Server中完成?
谢谢你的任何想法!
我正在尝试按节目ID过滤我的试镜列表,但是当节目ID为"1"时,所有试镜都会返回"1x"的节目ID.以下是我的代码.
试演模型:
Ext.regModel("Audition", {
fields: [
{name: "id", type: "integer"},
{name: "show_id", type: "integer"},
{name: "date", type: "string"},
{name: "details", type: "string"}
],
belongsTo: 'Show',
proxy: {
type: 'ajax',
url : 'app/data/auditions.json',
reader: {
type: 'json',
root: 'auditions',
id : 'id'
}
},
});
app.stores.auditions = new Ext.data.Store({
autoLoad: true,
model: 'Audition',
sorters: 'id'
});
Run Code Online (Sandbox Code Playgroud)
显示型号:
app.models.Show = Ext.regModel("app.models.Show", {
fields: [
{name: "id", type: "integer"},
{name: "title", type: "string"},
{name: "description", type: "string"},
{name: "opening_night", type: "string"},
{name: "schedule", …
Run Code Online (Sandbox Code Playgroud)