index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP Report Wizard v2 |
| |||||||
May 3 2005, 6:24 AM |
| ||||||
andyeb![]() ![]() since: May 1, 2005 from: somewhere | Hi I've looked through the setup pages and advice on the forum. The database is working with an asp based program but I have checked the name passwords etc but cannot get past this error. Errors Occured! Error #:-2147467259 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. I'm using <% 'TODO: Change the constants below to reflect your database settings Const SERVER_NAME = "(local)" Const DATABASE_NAME = "mydbasename" Const USER_NAME = "sa" Const PASSWORD = "mypassword" '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 %> thoughts?? Sorry but I'm kinda new to this as you've gathered. | ||||||
May 3 2005, 8:54 AM |
| ||||||
ghost![]() ![]() ![]() from: Washington, DC | I'm not sure exactly what could be the problem because my test server uses the same connectionstring format and it works well. Check this article from Microsoft http://support.microsoft.com/default.aspx?scid=kb;en-us;328306 ------------------------- Ghost | ||||||
May 3 2005, 9:00 AM |
| ||||||
whichman![]() ![]() ![]() from: Laurel, MD | Make sure "mydatabasename" is a valid database in your SQL Server ------------------------- Master of the Game | ||||||
May 4 2005, 12:40 AM |
| ||||||
andyeb![]() ![]() since: May 1, 2005 from: somewhere | Hi ghost thanks for the response - the more i dig into this site the more I'm convinced that this program is the solution for me. I am still having an issue connecting however. The application I am using accesses the database fine so clearly its me. However the support for the product is intermittant hence trying asp report wizard. So.... back on the newbie bit is there a way I can check the server name? Possibly change it? The database name is fine as is the login and password and the server name is the only bit of uncertainty. | ||||||
May 4 2005, 12:41 AM |
| ||||||
andyeb![]() ![]() since: May 1, 2005 from: somewhere | thanks for the response - see my missive to ghost | ||||||
May 4 2005, 7:51 AM |
| ||||||
ghost![]() ![]() ![]() from: Washington, DC | The server name is usually the name of the computer on which the sql server is installed. You can check it by right-clicking on My Computer icon then select Network Identification (in Win2k or Computer Name in XP). The server name will be the first part of the full computer name ------------------------- Ghost | ||||||
Pages: (1) [1] |