使用Polybase将SQL Server连接到Oracle数据库

时间:2019-05-16 23:20:11

标签: sql-server polybase

尝试在SQL Server中使用Polybase创建外部源并收到此错误:

  
    

消息46505,级别16,状态1,第1行缺少必需的外部DDL选项“类型”

  

但是,基于在线的示例在创建外部源时没有类型。

var canvas = document.getElementById("canvas");
    var g = canvas.getContext("2d");

    canvas.width = window.innerWidth;
    canvas.height = window.innerHeight;

    //object
    function Circle(x, y, speed, radius){           this.x=x;
        this.y=y;
        this.speed=speed;
        this.radius=radius;



        //methods for the object


        this.draw = function(){

                g.beginPath();
                g.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
                g.fill();
                g.closePath();

            }

        this.update = function(){

                this.x += this.speed;
                this.draw();
            } 
    }

    var circleArray = [];

    for ( var i=0; i<10; i++){


        var stringA = 100;
        var stringS = 200;
        var stringD = 300;
        var stringF = 400;
        var array = [stringA, stringD, stringF, stringS];



        radius=40;

        var x= innerWidth - radius;
        var y=array[Math.floor(Math.random() * 4)];

        var speed = Math.floor(Math.random() * (10 - 4) ) + 4;  //(max-min) + min
        speed = -speed;


        circleArray.push(new Circle(x, y, speed, radius));
    }




    function animate() {

        requestAnimationFrame(animate);  
        g.clearRect(0, 0, innerWidth, innerHeight);



        //this is where it all went downhill - without setInterval method, it works



        setInterval( function(){
        for ( var i=0; i< circleArray.length; i++ ){
            circleArray[i].update();
        }
        }, 1000);
        //


        //lines
        g.beginPath();
        g.moveTo(0, 100);
        g.lineTo(innerWidth, 100);
        g.strokeStyle = 'red';
        g.stroke();
        g.closePath();

        g.beginPath();
        g.moveTo(0, 200);
        g.lineTo(innerWidth, 200);
        g.strokeStyle = 'red';
        g.stroke();
        g.closePath();

        g.beginPath();
        g.moveTo(0, 300);
        g.lineTo(innerWidth, 300);
        g.strokeStyle = 'red';
        g.stroke();
        g.closePath();

        g.beginPath();
        g.moveTo(0, 400);
        g.lineTo(innerWidth, 400);
        g.strokeStyle = 'red';
        g.stroke();
        g.closePath();
        //


    }

    animate();

0 个答案:

没有答案