Hi guys my experiance with javascript is depressing.

I'm trying to populate a list of coordinates from a sql server database to display in bing maps.
The script is in javascript and i couldn't find a way to select my data inside the script:

Code:
var map = null;

          function GetMap() {

              map = new Microsoft.Maps.Map(document.getElementById("myMap"),
                         { credentials: "_____________" });
              var center = map.getCenter();
	
//HERE I SHOULD connect and select and move next		 
           var location1 = new Microsoft.Maps.Location(geolat,geolong);
I'd appriciate the help...