ADODB with Crystal report error using c# 2008 - c#

I'm using Visual Studio 2008 and SqlExpress to develop a windows application.
I have created a database and trying to create a Crystal report using it. But when I use the Wizard to create the Report( as I use OLE DB Provider for Sql Server) I get the following Error message:
Title of the error message:
Crystal Reports ActiveX Designer
Body of the error message says:
Not Implemented
Details:Error Code:0x
Source: ADODB.Connection
Description:Object or Provider is not capable of performing requested operation.
Can anyone help me out of this problem. I'm a very new person in this field, so it will be helpfull if you help me in details..
Thanks in Advance.

This thread on MSDN indicates that for some this problem was caused by an unusual database name with special characters. Does yours contain something like . or # ?

Related

Extracting Data from an Excel Spreadsheet and inserting to SQL database/ Data warehouse

I am trying to develop a web application that extracts data from a daily orders Excel sheet that is uploaded every day (manually to begin with) and then get that to upload to a server.
I have been trying to use SSIS to do this along with Visual studio 2019/2022 but keep receiving errors no matter what I try. The upload part of the system is working.. sort of, and I'm using SSIS as it was suggested by my supervisor, it appears however that there is no proper support for the feature, and as I said I keep running into ridiculous errors such as:
Error at Data Flow Task [OLE DB Destination [14]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Unspecified error".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "The metadata could not be determined because every code path results in an error; see previous errors for some of these.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid object name 'dbo.People'.".
Error at Data Flow Task [OLE DB Destination [14]]: Failed to open a fastload rowset for "[dbo].[People]". Check that the object exists in the database.
Error at Data Flow Task [SSIS.Pipeline]: "OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
The above error(s) occurred after the task was executed once, although no data was actually transferred to the database. Apparently due to a connection issue, but I have connected the database and Excel sheet correctly (or so I thought).
My question is this, is there any better way to extract data from an excel spreadsheet that is changing daily?
I would also need to then compare that data and perform some manipulation but that's a whole other kettle of fish.
I will also add that SQL, and ASP.NET (ASP.NET being the language my upload app is created in) are new to me, having started coding with SQL in September, and ASP.NET this week.
Any advice or Guidance will be greatly appreciated and I will of course answer any questions to the best of my ability.
Oh something else to add, when I'm trying to create an Integration project in Visual Studio with SDT installed, there isn't the option to create that project, I needed to download the Microsoft Server Integration Tools Project manually and separately for the integration project file to show up.

SSRS(Sql Server 2016) Report error when running from IIS is 'Cannot create a connection to data source 'DSTEST'. (rsErrorOpeningConnection)'

Am getting error when am trying to access ssrs report from IIS but when am running from visual studio directly no error is occurring the error am getting like this
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'DSTest'. (rsErrorOpeningConnection)
Cannot open database "Test" requested by the login. The login failed. Login failed for user 'WORKGROUP\EDP$'.
Please help me how to fix this.
Thank in advance.
Right now, SSRS is trying to use the WORKGROUP\EDP$ account to access the data the report needs. You need to change that for this to work.
Open the SSRS Reporting Portal, and locate the data source for the report you are trying to run.
In the Credentials section of the data source Properties, change the Type of credentials to Database user name and password, and enter a valid user name and password of a SQL Server account that has access to the database/tables and/or stored procedure the report is using to source data.
Click the Test Connection button to ensure it all still works. Apply. Now, try running the report again.
Either that, or try giving the WORKGROUP\EDP$ access to the database object(s) the report needs, which means adding that account as a use to the database server if it isn't already. I prefer using a SQL Server login.

Getting Error while creating report through Report wizard. And Sql Database is on Godaddy's server

I am Using SQL Server Management 2012. And connected to my online database which is on Godaddy's server. I Create an windows application in c# and using visual studio 2012.
Used string constring = "Data Source=184.168.47.21;Initial Catalog=ROT;User Id=myusername;Password=mypassword;";
It works fine. Insert,update,delete all works fine.
But now i am creating report. For that i used Report Wizard -> New database ->new dataset -> New Connection -> Servername=184.168.47.21 , clicked on Use SQL server authentication , write Username, password, write or select database name = ROT , clicked on test connection and got message Test connection Succeeded.
In Short I create two files Named "Report1.rdlc" and "ROTDataSet.xsd".
I designed report completely and take a reportViewer1 for displaying Report1.rdlc.
** this.tbl_BookingTableAdapter.Fill(this.ROTDataSet.tbl_Booking,i);
this.reportViewer1.RefreshReport();**
above code is of button1_click event.And "i" is a integer parameter i am passing to it.
but when i click on this button it gives an error in file named "ROTDataSet.Designer.cs"
on line "this.Adapter.Fill(dataTable);"
Error says "SqlException was unhandled. Login failed for user 'myusername'."
Now Please tell me what i am doing wrong?
SqlConnection conn is working perfectly in application for select and insert query but it gives error in creating report. Even i can see my Table,Table adapter in .Xsd file.
go daddy doesnt support SSRS on shared hosting http://support.godaddy.com/help/article/6490/do-you-restrict-any-features-in-ms-sql-2008?isc=webxpa

Error occured while trying to print the crystall report

I'm currently working in the .NET Entity Framework (MySQL 5.0 server) Windows Forms Application. While trying to print the report in client's system, I'm getting the following error message.
Method Errored:GetEffectiveCulture
Error Message:The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.
Additional Details: at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.Shared.LocaleManager..ctor()
at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
Please help me to solve this error.
i solved this problem using following link
http://www.logicaltrinkets.com/wordpress/?p=213
Check whether the connection string path to the database is correct or not. If any dataset is formed then configure it and check its connections.

COMException: "Object hasn't been initialized and can't be used yet"

I am using Document imaging library for parsing text from image. My code is working fine on local but facing problem while deploying in windows server 2003.
Can anyone help me on this?
Make sure MODI is installed(it will be there in MS Office Tools if installed).If not go through the link and install(http://www.mydigitallife.info/how-to-open-mdi-microsoft-document-imaging-format-with-office-2007/).if Still you r getting same error then try this
1)Go to IIS->ApplicatioPools->Default Applicationpool->Identity->custom account->Give the user name and password.

Categories

Resources