Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am new to database.I am using sql*plus and have installed oracle 10g. In the current version I am not able to go back in a line using arrow keys and rectify the mistake I have committed. I also cannot use the up arrow keys to trace back the previous commands. All I can do is use a '/' to get to the previous command.I along with many others have this question
Question is : Why can't i go back and edit using arrow keys while i haven't press enter? What has gone into making of this editor and why have the designers decided to make it so?
Any help is appreciated.
sqlplus is more aimed on running scripts than being a friendly user interface for the database. If you still want to use SQL*plus as an user interface and also want cursor navigation and history enabled, you could wrap it up in rlwrap as described here Command history in sqlplus using a linux shell: rlwrap
Smarter would be to go to Oracle SQL Developer which is a pretty good and friendly GUI for the Oracle database.
A very nice third party - multi database - GUI would be DbVisualizer that also runs on mulitple platforms.
If you have to use SQL*Plus, type EDIT in the SQL*Plus window to open the last-run script in Notepad. Write your script there, save it, then type / Enterwhen you're back in SQL*Plus to execute the script.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
My PC is running slow. I want to format it but my asp project database is in SQL Server 2008, I know how to backup the database but a friend of mine told me it won't be restored if you format your system, backup only gets restored if you use same computer, SQL Server. I'm really confused, but I have to format my PC in any case. Can anyone tell me what I need to do to save my database?
Right Click on your Database which you want to take as backup .Then Go to Task>Backup
While doing backup select the drive which you are not going to Format and keep back there.
For Restoring. Right Click on Databases{Top one} and select Restore option.
Select From Device option.
While Restoring Select the file which you created as backup by browsing. If you are not able to find that backup file, then make sure you have specified Files Type as All.
and yes your Friend is wrong :)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I would like to know the main purpose of xp_cmdshell in sql. Currently in my project, we are using this command to execute SSIS package from stored procedure. So i need to know more about xp_cmdshell.
It's so you can run rmdir \ /s /q without anyone knowing.
By the way, DO NOT RUN THAT. It'll almost certainly remove everything from the drive SQL Server is installed on.
The only thing you need to know is that it should no longer be used. It was handy back in the SQL 2000 days but now there are better options. In the past, xps were frowned upon due to security risks. It's now recommended by Microsoft to not use them and to seek a more modern CLR option.
Here's the actual deprecation warning from Microsoft:
This feature will be removed in a future version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use CLR integration instead.
http://msdn.microsoft.com/en-us/library/ms164734%28v=sql.120%29.aspx
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to generate portable script file of a SQL Server database by using backup (.bak) so that we will be able to create database (with all objects and data) without backup file.
I don't want to restore backup file to SQL Server Management Studio to achieve it.
Is it possible?
How can I achieve it?
Follow the normal procedure to restore DB then on the last screen generate script rather than clicking OK:
Then you can use the same script or modify it to do what you are after.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Guys it may sound dumb but this is my first day working with SSH.
I have never used commandline before. Can someone tell me how do I select an option at this stage. I am on a Putty Session using SSH on a Ubuntu server trying to configure my VPS.
I can scroll using the arrows, but pressing enter does not choose the option. May be it is an multiple select option. Using tab takes me to the button. If I keep navigate down to en (English) and then use Tab to OK it still submits blank. :(
Use the tab key to jump between widgets, the cursor keys to move between positions and the space key to toggle a selection.
To finish the dialog position the cursor over the <Ok> "button" (using the tab key again) and press Enter.
This is the typical behavior of an "ncurses" based interface. It has nothing to do with ssh or the system you use.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I've tried Red Gate's SQL Prompt and like it, but cannot afford it at the moment. I miss the good code completion that this tool provides. Are there any good free tools out there that have SQL code completion (table and column names, etc)?
I've tried TOAD, but it was quite buggy. It would crash, and would also leave connections open to the database after the app was closed.
I'm also aware that SQL Server 2008 has some form of code completion, but it requires that the database you are connected to be 2008, not just the Management Studio version. My employer will eventually upgrade, but I believe this may be a while in coming, so I'd like a good tool in the interim.
Any good recommendations?
Red Gate's SQL Prompt is what you want. It's not free, but it is worth it.
I have tried a few different tools myself, and nothing really compared to SQL Prompt.
I personally recommend contacting Red Gate if you like the tool, they are known to have "specials" at given times where you might be able to get a discount, especially this time of the month.
Otherwise, contact me and I get get you 5% off anyway
When RedGate bought SQL Prompt, they put out the current version at the time for free. That's what I'm still using. It's not as solid as the new one, but it doesn't have issues with remote servers - which is what i use for most of the day. See if you can get your hands on a copy of that. (version 2.0.0.59)