index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP Report Wizard v2 |
| |||||||
Oct 31 2005, 12:35 PM |
| ||||||
zara since: Oct 31, 2005 from: Chile | Hi I am having problem with data connection. The error on the browser : Errors Occured! Error #:-2147467259 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. This is my default.asp <% Const SERVER_NAME = "SERVERASP" Const DATABASE_NAME = "VDB" Const USER_NAME = "report" Const PASSWORD = "report" '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") %> <html> <head> </head> <meta http-equiv="Content-Type" content="text/html;charset = iso-8859-1"> <body> <p> <font color="#033f67" size="6"><strong>Test Report </strong></font> <% objWiz.Init(strConnectionString) objWiz.DisplayReports %> <table align="center"> </p> </body> </html> My server name is SERVERASP and my user name is report, with full access Please, help me. Thank you. | ||||||
Nov 1 2005, 9:28 AM |
| ||||||
ghost from: Washington, DC | You seem to be adding white spaces in your connection string declaration. Try the code below: 'declare your variables ------------------------- Ghost | ||||||
Nov 2 2005, 3:59 AM |
| ||||||
zara since: Oct 31, 2005 from: Chile | Thank you, but I have this error: Errors Occured! Error #:-2147217843 [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'report'. Reason: Not associated with a trusted SQL Server connection. What is the problem ? The ASP Report Wizard have connection ? Thank you. | ||||||
Nov 2 2005, 11:25 AM |
| ||||||
ghost from: Washington, DC | Are you sure that your username and password combination is correct? Have you tried that same combination to open a connection string in ASP? Dim Conn, RS ------------------------- Ghost | ||||||
Nov 3 2005, 5:26 AM |
| ||||||
zara since: Oct 31, 2005 from: Chile | thank you, the problem was solved !! | ||||||
Pages: (1) [1] |