I created a database (.mdf) for my MVC application and whenever I add a table to the database and want to save it, it keeps prompting me to save it as a .sql file somewhere on my computer. I watched several tutorials on youtube on how to add a database to MVC application and in every video the video creator presses CTRL+S and then it prompts him to enter table name. In my case, I get this: http://prntscr.com/c8i56g
How am I supposed to save the table inside the database?
Please try updating the database rather than saving it. Option to update is on the left top corner of the designer window for the table. Hope this helps.
Related
If suppose the user uploaded the image but later he decided to remove the image using backspace or delete then how it will delete from the database. Currently, it's not deleting from the database and creating the junks.
Please advise
My solution is, I save the contents of the editor in my database as HTML.
And I have 2 states in my component: the current state of the editor (editorState) and the state of the editor with the content that is saved by the user (savedState).
When user hits 'save' I update savedState to be equal to editorState, and so I have the images that where saved by the user and the ones that are not.
So, I can't delete an image from the server when user hits backspace on it, but when he leaves the page, I can get all images that are not in the editorState, but are in the savedState (this ones are the ones that were deleted) and send the request to my server to delete them.
This is not the best way of doing it, but I implemented it this way and it's working.
I'll now refactor to a better solution:
A best solution is to have a temporaryFiles folder in your server and upload the images there when user inserts them in the editor. When he hits 'save' you send this images to the general uploadedFiles folder. And it's good to have a folder dedicated only to this use case.
Then it gets easier for you to know what files should be deleted. If user leaves the page, you delete all files in the temporary folder because those where not saved.
I have one ASP.Net MVC data base first application. Due to some enhancement work came in I have to do modification to my DB tables and Add couple of new table as well.
I saw few tutorial and you tube videos. I found, they are deleting the existing model and controller -> changing the DB schema [adding SP etc...] -> then again adding new model and controller etc. However, I think, this is not the correct approach as my application is bit big[already on production], I can not delete everything and adding again back.
How can I do it? Is that MVC does not provide something so that I can update it from Visual Studio or refresh it so that my changes will affect? Any link would help. Hope my explanation is understood-able.
Along with I also wanted to know, is there any thing else I need to take care for these kind of enhancement?
Any disadvantage of using ASP.NET MVC?
Thanks.
Double click on .edmx file(added in models folder) to open it.Then right click on it and select update model from database and then press ctrl+s to save it.
I browse a password protected internet page for my work. I need to copy a table from the page and paste it into Excel. The table is displayed using microsoft silverlight 5. I've tried all the simple ways of copying the data (ctrl-c, right clicking) without luck. Is there anyway for me to export the table to excel?
I want to add a row in my parse database from the website but I am not able to do so.
I basically want to add details using the parse online data browser.
I log in to parse open my app and go to my database where my data is stored I select a database and when I click "+Row" it creates a row with everything filled "(undefined)" and I am not able to change the column values.
Can someone tell me how to do it?
I'm currently working with a client right now that clicked to update a plugin on WordPress. He's unaware of what plugin it was that he updated because he's clicked update in the past for other plugins and they just updated, so he paid little attention to what it was he clicked.
His site is still up, but when I try to get into the back end using /wp-admin I'm hit with a message that states:
Database Update Required
WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.
The update process may take a little while, so please be patient.
Update Wordpress Database
When I click on the button that says "Update WordPress Database" it does nothing. The browser spins and then shows me a blank white page with Wordpress at the top. I'm at a loss because I can't even login, it doesn't give me the option.
Any thoughts on what is happening? Thanks a bunch in advance for the assistance.
This is due to a missmatch between the databases versions you said you are using in the settings.
Please follow this steps:
Go to /wp-include/ folder and open the version.php.
Find the value for $wp_db_version, and write it down.
Now, open your database, check in the table called wp_options
Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
Those two values must be the same. Change it in the version.php file, not the database.
Source: http://wpquestions.com/question/showChrono/id/4151
Restarting php-fpm service helped me, it clears cache on restart
sudo service php5-fpm restart
Hope that helps some folks out there.
Try clearing your browser cache
The option db_upgraded isn’t getting set by the upgrade process.
Try this: go to /wp-admin/options.php. Fill the field db_upgraded with a 0 (zero). Hit Save Changes.
This is due to a missmatch between the databases versions you said you are using in the settings.
Please follow this steps:
Go to /wp-include/ folder and open the version.php.
Find the value for $wp_db_version, and write it down.
Open your database, check in the table called wp_options
Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
Those two values must be the same. Change it in the version.php file, not the database.