Unable to pull username and password in SSRS connection properties - c#

I am migrating crystal reports to SSRS reports using a windows app, build based on .net code. Also I need to migrate the connection string with username and password. When I open the rdl post migration, I can see the connection string like shown in below image.
When I click on edit button, username/password is not populated automatically and I'm seeing those fields blank like shown below. I can notice the server name getting populated and not the user name and password.
Is there any property I'm missing the connection string or how can I auto populate user name and password without manual workarounds?
Really appreciate any suggestions.

You may use shared data source instead of embedding the connection info in rdl file. If you have quite a few reports to convert, you may try crystal migration services to convert your reports automatically.

Related

Unable to Update Model from Database using EF 6 and Visual Studio 2015 Update 3

Right click on the EF Model Designer surface and choose Update Model from Database.
In the dialog box that pops up, you should be able to browse the database, and select objects to add. But in this case, nothing can be selected:
Removing the Connection String from the App.Config and allowing the Designer to re-add it did not resolve the issue.
The credentials used in the Connection String when copied and pasted in SSMS.
The database can be browsed from the VS Server Explorer window.
Creating a new blank EF project and repeating from there works fine.
What could be causing this?
One of 2 problems exist, the Model already has the Tables/SP/View you are looking for or the Login does not have the Authority the access those Tables/SP/View.
One of the factor unable to select any checkbox in Update Wizard is you don't have any updates in your database, therefore entity framework doesn't allow you to select.
If your scenario is not the factor above, you may try the method I listed below:
I had this issue too and I noticed that I didn't grant the db_owner under Database role membership for my database (eg 22Aug_M) in Microsoft SQL Server Management Studio.
After I checked it and it works as normal.

Crystal reports asks for login instead of parameters popup

I have a crystal report which contains parameters to enter. It worked perfectly and display data needed. But today it doesn't work any more: when i try to open the report, the popup don't ask for parameters. It asks for: server, user name and password.
I don't change any thing in database...
And i can't identify the problem exactly.
Thank you.

Adding Schema Name to SQL Table Names in ASP.NET Web Application

I am porting my SQL Server database to Azure SQL. The database has been replicated correctly and is now accessible from my existing web application.
However, the first time it was executed with the Azure SQL connection string, it showed "Invalid Object" for a table name used on the log in page.
I was able to correct it by adding the schema name [dbusername].[tablename] in place of [tablename] in the code.
Now since it is an extensive application, with over 300 ASPX pages and 30 tables, I'm wondering do I have to use the Find-Replace tool in Visual Studio or am I missing a setting that can help me to assign the default schema name while executing all queries ?
Set the default schema for your user.
USE MyDataBase;
GO
ALTER USER MyUser WITH DEFAULT_SCHEMA=MySchema;
GO
I believe this article will help you.
http://blog.sqlauthority.com/2008/12/26/sql-server-fix-error-msg-15151-level-16-state-1-line-2-cannot-alter-the-login-sa-because-it-does-not-exist-or-you-do-not-have-permission/

update sql table as verified when user verifies their email c#

I'm currently in the process of building a forum like site where people can register and login to their own page to post content.
I have built the system to send off a verification link to the registrants email along with a link that contains their user user id which is their email on the URL
http://localhost:50490/ForumTest/ActivateProfile.aspx?Username=jason90#yahoo.co.uk
I need to know how I can get my SQL database table [UserTable] field UserVerified to update to "1", it is currently set to "0" by default.
I just need to know how to write the code behind the ActivateProfile.aspx page to update this data field when the Users hit the Activate button on this page.
Would be awesome if someone can help me with this
I have been trying to find solutions everywhere but its all based on examples that were made using the CREATE USER WIZARD on the Microsoft Visual Studio environment. all my forms and fields have been made manually therefore those example were of no use for me :(.
Hope someone can help me
Thanks a lot in advance
:)
Do you have an existing Database connection? You need to execute some SQL similar to this:
UPDATE UserTable SET UserVerified=1 WHERE Username='jason90#yahoo.co.uk'

how to set querystring in Command of Crystal report

I have made a crystal report in which I pass the database name into querystring. I want to bind that database into crystal report Command. So how is it possible because the report shows the data from multiple database as per selection of user.
I make a webform and use crystal report viewer. I send the database name into querystring.
I will suggest that you should used data table as data source and used a stored procedure or a query where you will decided which database the data will come from.
check this link that will help
http://www.codeproject.com/Articles/28899/Crystal-Report-with-DataSet-and-DataTable-using-C

Categories

Resources