Unable to install SQL Server 2008 R2 Express - sql-server-2008-r2

When I try to install SQL Server 2008 R2 Express, I get the following message :
The feature you are trying to use is on a network resource that is unavailable
Click ok to try again or enter an alternate path to a folder containing the installation package 'sqlncli_x64.msi' in the below box
I'm unable to find a way to solve this problem. Can you help me ?

For me this got fixed by -
Going to registry editor (windows+R > regedit)
Navigate to HKEY_LOCAL_MACHINE > SOFTWARE > Classes > Installer > Products
Goto each key listed under Products and delete all keys related to SQL Server (or the keys you think are specific to your error). This can be done by clicking on the key folder and reading the ProductName details in right pane (delete only the keys that contain keywords like SQL Server).
Once step 3 is complete, restart your machine and try again.

Related

DB2 (version:11.5.0.1077) Command LIST ACTIVE DATABASES is not working

I downloaded trail version of DB2 (by following steps here:https://www.db2tutorial.com... some steps didn't come when i installed)and i opened Administrator:DB2 CLP - DB2COPY1 -db2, then i have given the cmd as
db2 => LIST ACTIVE DATABASES
output(error):
SQL1096N The command is not valid for this node type.
db2 =>
it's not working, here version of DB2 is:11.5.0.1077,Please advice how to proceed further.In fact not only this command, so many commands are not working.
The message:
"SQL1096N The command is not valid for this node type."
as a response to "list active databases" command
usually means that you did not install a Db2-server product, or you have multiple Db2-products installed and you chose to act on a client instance instead of a server instance.
You might have installed a full Db2-client product by accident, by clicking the wrong button on the setup program gui page for Install a product, or the installable image that you downloaded was not a server image (but instead a client image).
Different ways to see the node type:
You can see which Db2 product(s) you installed if you run
appwiz.cpl from the Windows Start menu and examine the list.
You can also see what you installed if you examine the log file created by the setup program during installation.
open a db2cmd.exe window (from Windows Start > Run) and in there run the command db2 get dbm cfg | more and near the start you will see Node type = ..... If your db2cmd.exe window is addressing a server installation, then the node type will be something like ...Server edition with local and remote clients. If you see Node type = Client, then you are not addressing a server installation. So in this case, you can either uninstall the client image and install a server image, or configure your db2cmd.exe window to address a server installation.
If you have multiple Db2 products installed then run the Default DB2 and Database Client Interface Selection wizard which should appear in your Windows Start menu under the IBM Db2 group. This lets you choose which instance to make the default, so that when you run a db2cwadmin/db2cmd window, then the correct product gets addressed.
If you installed a Db2-server product, then you can run db2cwadmin.bat (from the Windows Start Menu) and in that window the commands db2start and db2stop will be available, and the command-line db2 list active databases will report (by default) one local database called SAMPLE assuming you created the default database in the First Steps that runs after installation.
If you installed a Db2-server product, with all the default settings on a Microsoft Windows operating-system, then you will also see a process called db2sysc.exe in the Task List when the Db2-instance is running.
Verify that you downloaded the server image from IBM, and then re-run the setup program and ensure you choose to install a server product.

Why does running a query return 'table_oid' under messages and nothing under Data Output

Running any sort of query on pgAdmin 4 just returns a 'table_oid' under messages.
I am able to get the necessary data when running the query from the command line, for example
SELECT ST_MakePolygon(ST_GeomFromText('LINESTRING(75.15 29.53,77 29,77.6 29.5, 75.15 29.53)'));
I understand that table_oid refers to the object id of the table, but I have no idea how to access it.
Pardon me please if it is a simple question, but I am unable to find any resources online
Expected:
010300000001000000040000009A99999999C9524048E17A14AE873D4000000000004053400000000000003D4066666666666653400000000000803D409A99999999C9524048E17A14AE873D40
Actual:
table_oid
From pgAdmin 4 project tracker:
Temporary solution until next release and tested in my ubuntu 18.04 machine:
Replace these two 2 files:
/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/__init_*_py
/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/command.py
Link to files:
__init_*_.py
command.py
Note:
The first file's name is __init_*_py, without the *.
Try Squirrel SQL - Universal SQL Client. It's an extremely useful SQL client. I use it to access SQL Server, PostgreSQL, MySQL, Access. It's not as good looking as pgAdmin4.
Install JAVA first, if not already installed.
Install Squirrel SQL.
Download the latest PostgreSQL JDBC driver, e.g. postgresql-42.2.6.jar, and put it into a convenient location.
Open/Start Squirrel.
Click the Drivers Tab and scroll down to PostgreSQL. Double click PostgreSQL. A "Change Driver: PostgreSQL" dialog box/window will open.
Click the Extra Class Path tab and click the Add button. Navigate to and choose the PostgreSQL JDBC Driver that was downloaded in step 3. above.
Click the List Drivers button, "org.postgresql.Driver" should appear in the Class Name drop down box.
Click OK.
Setup PostgreSQL JDBC Driver
The driver should now be setup.
Click the Aliases tab to setup a connection to your database. See my example screenshots.
Setup Database Connection

How to find server name when installing SQL Server 2008 R2

I want to install SQL Server 2008 R2, so I need to put "server name", I tried my computer name but I got an exception, would you tell me how to find it please
and this is the exception ![enter image description here][2]
You can use .\SQLEXPRESS as the server name.
Check this link
EDIT:-
From the comments below posted by the user(thought that it is useful)
You can install SQL Server as an instance, which allows you to run
multiple environments on the same machine (ie. localhost\dev and
localhost\prod). If you install MSSQL Server Express, it defaults the
instance name to localhost\SQLEXPRESS
Use . as the server name. Or
From the server manager: Administration tools > Server Manager. You can get the computer name.
Use .\SQLEXPRESS
or
Use REVAN-PC\SQLEXPRESS
REVAN-PC is my System Name
Go to Start
write in search box: ODBC
Go to system DSN tab
click on Add...
select SQL server option and finish
Go to 3th box (server:) and see your server!
Try using (local) as server name. I had the same problem and after few attempts of connecting,(local) just came by default in the server name field.

SQL Server Agent gives- Remote procedure call failed (0x800706be)

Does Anyone knows the solution to this problem m not being able to run the SQL Server Services.
Solution: Install SQL Server 2008 R2 SP2, restart, open SQL Server Configuration Manager and ALL is good.
Source: Frozen bytes
No need to re-install or update your SQL Server 2008 R2 instance. I got the same error and it get resolved by simply starting the MSSQLSERVER standard service.
How to start this service:
Open Administrative Tasks > Services > Select Standard services tab > start SQL Server Agent(MSSQLSERVER) service and you are good to go.
With all due respect, "Right click on configuration manager and run as administrator" is a bogus answer. I also have this problem with the following series of events: I download the Windows Azure SDK from here: http://www.windowsazure.com/en-us/develop/downloads/, which installs SQL 2012 express; immediate I try to run SQL Server Configuration Manager, and the installation of SQL 2012 has broken it such that I get the "remote procedure call failed". That is true even if I "run as administrator". Microsoft says they can't reproduce this, but I've contacted them again because I've now reproduced this twice. And, if there's any doubt: un-installing SQL 2012 causes the problem to go away, and the configuration manager works again. I blogged about it here: http://dbarrowstechblog.blogspot.com/2012/09/the-remote-procedure-call-failed.html ; haven't solved it yet.
This error occurs only after I have installed the Microsoft Visual Studio 2012 setup in my work machine.
Since it is being a WMI error, I recompiled the MOF file –> mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
I also un-registered and re-registered the sql provider DLL –> regsvr32 "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmprovider.dll" but issue not resolved.
Solution:
I have applied SQL Server 2008 R2 SP2 on my SQL 2008 R2 instance and that fixed the issue with Sql Server Configuration Manager. You can download setup from here... http://www.microsoft.com/en-us/download/details.aspx?id=30437 .
Ok, Stop this.
Is this a new Installation?
Open SSMS in Integrated security Mode
Right click on server name in Object explorer tree at the left
Select properties -> Then choose the "Security" page at left
Under Server Authentication, select "SQL Server and Windows Authentication mode"
Click OK
Exit SSMS completely
Open "SQL Server Configuration Manager" (in Configuration menu under the "Microsoft SQL Server 2008 R2" menu item from start menu
Select you instance on SQLExpress and restart the instance of the server (but this is ok for non express too)
Exit SSCM - and to verify open SSMS again, but with "SQL Server Authentication" selected in the Authentication type dropdown - put in your SQL user ID and password.
installing the SP3 on SQL server 2008 worked for me..so give it try
Thanks!! dont forget to vote up if this helps you

pgAdmin - Sharing DB Connection Definitions

I have a few database servers and few developers.
I have set up database connection definitions on my PC for each servers and now I want to share with other developers but I was not sure how to export and import the definitions.
I am running pgAdmin 1.10.2 on Ubuntu 10.04 (lucid).
You should have a .pgadmin3 conf file in your home directory. You just need to give that one to your fellow developers.
By the way, for those looking for the answer to this question on the Windows platform, the server definitions are stored in the Windows registry at HKEY_CURRENT_USER\Software\pgAdmin III\Servers
You can export this key to a .reg file and share it. However, due to the naming of the keys, it will likely overwrite any existing keys in the target registry.
On Original Computer
Export the server definitions found in Windows registry found here:
Windows Key > regedit
HKEY_CURRENT_USER\Software\pgAdmin III\Servers
Right Click on Servers Folder and click Export
Leave the default radio button 'Selected Branch' the way it is. This will be how it knows where to insert it when you want to import it.
Choose a name for your file (e.g. pgadminServers) and click Save
This is the file you will use to import to another computer (which ideally has the same version of pgAdmin)
On New Computer
Make sure pgadmin is not currently open
Windows Key > regedit
File > Import > Choose your pgadminServers.reg file.
Click Ok to the alert that says 'The keys and values contained in //filepath have been successfully added to the registry.'
Close or exit the registry editor
Launch pgAdmin
PgAdmin 4 stores the server connection details in an SQLite3 file.
In Windows this file is located at:
%APPDATA%\pgAdmin\pgadmin4.db
In Linux it lives at:
/var/lib/pgadmin4/pgadmin4.db
You can configure a custom location by editing
config_local.py file.
Not enough reputation, else I would add a comment to #ojhurst
IF you leave your pgAdmin III open or have already added a server and then import the pgadminServers.reg file
Edit that file (or modify entry in registry) the following entry
[HKEY_USERS\S-1-5-21-....-1140347\Software\pgAdmin III\Servers]
"Count"=dword:0000001
to the total count of servers (e.g. 53)
[HKEY_USERS\S-1-5-21-....-1140347\Software\pgAdmin III\Servers]
"Count"=dword:0000053