index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: SQL Database :: (4)Post a New Message | Post a Reply
Sep 21 2004, 12:04 PM
 SQL DatabasePost a Reply
 jayltz1

View this author's profile Send this author a private message

from: Dallas

I'm new to SQL and ASP programming. This tool looks like the solution I was looking for. One question, how do I configure the tool to query a SQL database?

Sep 21 2004, 12:31 PM
 Re: SQL DatabasePost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

Read the article below to install the ASP Report Wizard Library
Installing the ASP Report Wizard

Read the following article to setup a sample reporting appliation
Setting up your first application

After you have read the article above, use the code below as the source for your sample reports.asp page located in your web server:

<%
'TODO: Change the constants below to reflect your database settings
  Const SERVER_NAME = "(local)"
  Const DATABASE_NAME = "Northwind"
  Const USER_NAME = "sa"
  Const PASSWORD = "sa"
  
'declare your variables
  Dim objWiz,  strConnectionString
  
'initialize your variables
strConnectionString = "Provider=MSDASQL;Driver={SQL Server};"& _  
    "Server= "&  SERVER_NAME & ";Database= "& DATABASE_NAME & ";"& _  
    "User ID= "&  USER_NAME & ";Password= "& PASSWORD & ";"
  
  Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")  
      
'Make sure you initialize before adding any HTML text
objWiz.Init(strConnectionString)  
      
'put this where you want your reports
objWiz.DisplayReports  
      
  Set objWiz =  Nothing
  
%>

Note:
Make sure the folder in which your asp page is located has read & write permissions


Also, download the sample applications located on our downloads page to
learn-by-example

1. Sample Applications
2. Online Manual






-------------------------
Ghost
Sep 21 2004, 12:45 PM
 Re: SQL DatabasePost a Reply
 jayltz1

View this author's profile Send this author a private message

from: Dallas

What do I need to configure in the default.asp page or is the code you supplied supposed to go in there?

Sep 21 2004, 2:46 PM
 Re: SQL DatabasePost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

Just the constant variable below:

'TODO: Change the constants below to reflect your database settings
   Const SERVER_NAME = "(local)"
   Const DATABASE_NAME = "Northwind"
   Const USER_NAME = "sa"
   Const PASSWORD = "sa"


Check out the sample applications, they are a lot more explicit.

Let me know if this information helps.

thanx!


-------------------------
Ghost
Pages: (1)   [1]

search this forum: