Ans: Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.
Asynchronous call to function.
// Global Request Object
var reqAsync;
// This will access the given URL in async mode
// will execute passed function, when processing is complete
function AsyncRequest(url, fn)
{
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
reqAsync = new XMLHttpRequest();
reqAsync.onreadystatechange = fn;
reqAsync.open("GET", url, true); // true indicates Async request
reqAsync.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
reqAsync = new ActiveXObject("Microsoft.XMLHTTP");
if (reqAsync) {
reqAsync.onreadystatechange = fn;
reqAsync.open("GET", url, true); // true indicates Async request
reqAsync.send();
}
}
}
// This will access the given URL in sync mode
function SyncRequest(url)
{
var req ;
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.open("GET", url, false); // false indicates sync request
req.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.open("GET", url, false); // false indicates sync request
req.send();
}
}
return req.responseText;
}
SQL SERVER – Import CSV File Into SQL Server Using Bulk Insert – Load Comma Delimited File Into SQL Server
Asynchronous call to function.
// Global Request Object
var reqAsync;
// This will access the given URL in async mode
// will execute passed function, when processing is complete
function AsyncRequest(url, fn)
{
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
reqAsync = new XMLHttpRequest();
reqAsync.onreadystatechange = fn;
reqAsync.open("GET", url, true); // true indicates Async request
reqAsync.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
reqAsync = new ActiveXObject("Microsoft.XMLHTTP");
if (reqAsync) {
reqAsync.onreadystatechange = fn;
reqAsync.open("GET", url, true); // true indicates Async request
reqAsync.send();
}
}
}
// This will access the given URL in sync mode
function SyncRequest(url)
{
var req ;
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.open("GET", url, false); // false indicates sync request
req.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.open("GET", url, false); // false indicates sync request
req.send();
}
}
return req.responseText;
}
SQL SERVER – Import CSV File Into SQL Server Using Bulk Insert – Load Comma Delimited File Into SQL Server
0 comments:
Post a Comment