Click here to Skip to main content
15,914,209 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDataGrid Results Pin
Illegal Operation29-Mar-06 21:14
Illegal Operation29-Mar-06 21:14 
QuestionHot to open a new window when press 'F9' key Pin
Chetan.visodiya29-Mar-06 19:12
Chetan.visodiya29-Mar-06 19:12 
AnswerRe: Hot to open a new window when press 'F9' key Pin
Sushant_Mathur29-Mar-06 19:51
Sushant_Mathur29-Mar-06 19:51 
GeneralRe: Hot to open a new window when press 'F9' key Pin
Chetan.visodiya30-Mar-06 0:07
Chetan.visodiya30-Mar-06 0:07 
GeneralRe: Hot to open a new window when press 'F9' key Pin
Sushant_Mathur30-Mar-06 4:32
Sushant_Mathur30-Mar-06 4:32 
QuestionRequest from JS to DB Pin
progman29-Mar-06 11:46
progman29-Mar-06 11:46 
AnswerRe: Request from JS to DB Pin
alex.barylski29-Mar-06 12:17
alex.barylski29-Mar-06 12:17 
QuestionUsing RDS... Pin
Jesse Evans29-Mar-06 8:57
Jesse Evans29-Mar-06 8:57 
[edit#2]
More weirdness: If I run the sample shown below using Server=http://myserver I get no errors and no data. However, if I change it to //MyServer, I get a confirm dialog warning me about accessing a machine on another domain (MyServer is indeed in a different domain from my desktop. Further, if I remove the slashes (Server=MyServer), I get the same message but also get another one from my RDS.OnError handler saying:
---------------------------
VBScript
---------------------------
Error: sCode: 4100; Description: Business object cannot be created.; Source: Microsoft ADO/RDS; CancelDisplay: True
---------------------------
OK
---------------------------
[/edit#2]


[edit]
Well, I've learned more and consequently I'm more confused!

I found a reference in my MSDN Library called Configuring RDS on Windows 2000. I followed the instructions found there and noted section 2: From the Start menu, select Run. Type msdfmap.ini and click OK to open the msdfmap.ini file in Notepad. Check the [CONNECT DEFAULT] section, and if the ACCESS parameter is set to NOACCESS, change it to READONLY. I did that and now I no longer get RDS errors! However, the recordset still is not returned! I think I'm getting close, but boy, this stuff is complicated!
[/edit]

Folks,

I'm trying to learn how to manage recordsets on the client side and I found several references to RDS, which seems like just the ticket. However, I've tried running some of the examples I've found on MSDN, here on CodeProject and from Google searches and I just can't seem to get data from my server. My IIS and SQL Server are running on the same machine, a Windows 2000 server on our intranet. My desktop login has admin rights to the server, so I use TrustedConnection=yes.

Here's an example that I'd like to get running:
<br />
<body><br />
Data Control Object Example (VBScript)<br />
RDS API Code Examples<br />
Remote Data Service Run Time<br />
<br />
<TABLE DATASRC=#RDS><br />
<TBODY><br />
  <TR><br />
    <TD><SPAN DATAFLD="au_lname"></SPAN></TD><br />
    <TD><SPAN DATAFLD="au_fname"></SPAN></TD><br />
  </TR><br />
</TBODY><br />
</TABLE><br />
<% ' RDS.DataControl with no parameters set at design time %><br />
<OBJECT classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" ID=RDS HEIGHT=1 WIDTH=1></OBJECT><br />
<br />
<FORM name="frmInput"><br />
<Input Size="70" Name="txtServer" Value="http://<%=Request.ServerVariables("SERVER_NAME")%>"><BR><br />
<Input Size="100" Name="txtConnect" Value="SERVER=<%=Request.ServerVariables("SERVER_NAME")%>;DRIVER={SQL Server};DATABASE=pubs;TrustedConnection=yes;"><br />
<BR><br />
<Input Size="70" Name="txtSQL" Value="Select au_lname,au_fname from Authors"><br />
<INPUT TYPE="BUTTON" NAME="Run" VALUE="Run"><BR><br />
Show grid with these values or change them to see data from another ODBC data source on your server<br />
</FORM><br />
<br />
<Script Language="VBScript"><br />
<br />
' Set parameters of RDS.DataControl at Run Time<br />
Sub Run_OnClick<br />
<br />
   RDS.Server = document.frmInput.txtServer.Value<br />
   RDS.Connect = document.frmInput.txtConnect.Value<br />
   RDS.SQL = document.frmInput.txtSQL.Value<br />
<br />
   RDS.Refresh<br />
<br />
End Sub<br />
<br />
</Script><br />
<br />
</body><br />


It loads fine but when I click the Run button nothing seems to happen! I can see some text being printed to the status bar but when it finally says Done, there are no script errors listed, so I don't have any idea what's happening behind the scenes.

Funny, when I load the .asp file into Visual InterDev 6.0, it pops up a message window saying the following:
---------------------------
Microsoft Development Environment
---------------------------
An object has failed to load. The object will be displayed as text.
---------------------------
OK
---------------------------

If I load the file into VS 2005, I get no such message.

I found another sample using the same object, which builds a recordset locally. That runs ok, even though VID 6.0 also complains about the object in that sample. So, I'm guessing the object is available and I'm just having problems getting the parameters right for a remote query.

I just figured out how to see errors from the RDS object and I'm getting Error: 8447, which seems to indicate I've got RDS installed wrong. I found a page of info on that in my MSDN Library (Q249719; Oct. 2001) and followed the instructions to repair it, but to no avail.

I should say that I'm running SQL 7.0, otherwise I'd try using VS 2005's asp:xxx components. Alas, they require SQL 2000 or better and won't connect to SQL 7.

Am I just barking up the wrong tree?

'til next we type...
HAVE FUN!! -- Jesse

-- modified at 18:12 Wednesday 29th March, 2006
QuestionOpening a document from a web page via web folders... Pin
Corinne Battle29-Mar-06 7:50
Corinne Battle29-Mar-06 7:50 
AnswerRe: Opening a document from a web page via web folders... Pin
alex.barylski29-Mar-06 12:24
alex.barylski29-Mar-06 12:24 
QuestionHow to access Client Side system stuf? Pin
wajih2k29-Mar-06 7:37
wajih2k29-Mar-06 7:37 
AnswerRe: How to access Client Side system stuf? Pin
George L. Jackson30-Mar-06 5:57
George L. Jackson30-Mar-06 5:57 
QuestionCDO.Message problem Pin
__makaveli__29-Mar-06 0:43
__makaveli__29-Mar-06 0:43 
AnswerRe: CDO.Message problem Pin
Rajkamal_dfine31-Mar-06 1:18
Rajkamal_dfine31-Mar-06 1:18 
QuestionMy Menu disappear opening a pop up Pin
Hajara29-Mar-06 0:37
Hajara29-Mar-06 0:37 
Questionsha1 Pin
lokesh_the_best28-Mar-06 23:33
lokesh_the_best28-Mar-06 23:33 
AnswerRe: sha1 Pin
George L. Jackson30-Mar-06 5:50
George L. Jackson30-Mar-06 5:50 
AnswerRe: sha1 Pin
Vasudevan Deepak Kumar30-Mar-06 21:00
Vasudevan Deepak Kumar30-Mar-06 21:00 
QuestionJavascript for adding and removing selected item to and from listbox Pin
Vipin.d28-Mar-06 22:08
Vipin.d28-Mar-06 22:08 
AnswerRe: Javascript for adding and removing selected item to and from listbox Pin
Sushant_Mathur29-Mar-06 19:42
Sushant_Mathur29-Mar-06 19:42 
QuestionGraphic in Javascript Pin
thainam28-Mar-06 22:02
thainam28-Mar-06 22:02 
AnswerRe: Graphic in Javascript Pin
Sushant_Mathur29-Mar-06 19:40
Sushant_Mathur29-Mar-06 19:40 
GeneralRe: Graphic in Javascript Pin
thainam29-Mar-06 19:48
thainam29-Mar-06 19:48 
AnswerRe: Graphic in Javascript Pin
Sushant_Mathur29-Mar-06 22:24
Sushant_Mathur29-Mar-06 22:24 
AnswerRe: Graphic in Javascript Pin
Rajkamal_dfine31-Mar-06 1:27
Rajkamal_dfine31-Mar-06 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.