SQLCMD Utility Will Not Start, Uninstall/reinstall Problem ?
Nov 6, 2007
Neither the SQLCMD utility nor SQL Management Studio Express will function any longer but the DB engine still works when connecting via VB Express or EXCEL VBA. SQLCMD tries to connect to the internet then stops with no message.
Problems started with SQL Management Studio Express whereby the screen dialog seems corrupted when I start to use New Query or try to copy and paste queries so I uninstalled and reinstalled SQL Express and seem to have made the problem worse. My system has Office 2003 with Business Contact Manager (ie MSSQL$MICROSOFTSMLBIZ) which seemed to cause a problem with the SQL Express install so I uninstalled Business Contact Manager but still no success.
Anything special I need to do in the uninstall/reinstall that I might not be doing ?
Thanks.
Nobody could help with the problem. I eventually got a query to run after several attempts at deleting and recreating databases. Then, I was hit with the following error message:
Class does not support aggregation (or class object is remote) (Exception from HRESULT: 0x80040110 (CLASS_E_NOGGREGATION)) (Microsoft.SqlServer.SqlTools.VSIntegration)
Nobody could help with that either but based on posts with the same message, I tried uninstalling sql server. It wouldn't uninstall nor can I repair or reinstall. Uninstalling thru Add or Remove Programs only resulted in the program listing being removed from Add or Remove Programs. Most of the sql server programs are still installed. They can be run but continue to malfunction. When I try a new installation, I get a message that the programs are already installed.
Is a complete reinstall of windows xp, programs and data the only solution? I hate to believe it; but, at this point, I see no other choice.
I have VS 2005 and SQL 2005 Developer ed (OS Vista) installed on my pc. When I uninstall SQL 2005, I encounter an error for SQL Reporting (someting to do with unable to read some file). Since then I am unable to reinstall SQL Reporting or uninstall SQL Reporting. I removed all the files from the directory but still I have not been able to do....Please advice...
I had to do a system restore to solve some other issues now my SQL Server 2005 doesnt work (SQL Server 2000 on the same machine [diffrent instance] does). I have tried to uninstall with add/remove programs but the instance doesnt appear there. I have tried to use the 'ARPWrapper.exe /Remove' command as described in KB909967 wich also fails. I have also tried to reinstall with no sucess. I also tried uninstalling SQL2000 and removing as many references as I could find, again now joy.
Is there a script somewhere to remove everything (although I would like to try and keep the SQL2000 instance)?
Long story short: Installed SQL Server 2005 Developers Edition along with Visual Studio 2005. Everything worked as it should.
Then there was a problem installing .NET Framework 2.0 Security Update. Fixed that by uninstall and reinstall of .NET Framework 2.0.
Now SQL Server does not work. So I figured uninstall/reinstall. Only problem is that it WILL NOT uninstall. I have tried to uninstall manually per KB article (9009967). That doesn't work either.
I'm looking at creating a sample utility script that will invoking scripts to deploy some SQL code. For example, a utlity script that will run a SQL script, and on successful completion, execute the next script.
Having not used SQLCMD at all before, and being very new to SQL2005 (< 1 month) please guide me if there is a better way of invoking this... For example, a way of avoiding the xp_cmdshell invocation!
The following code invokes a script, but I'm trying to find a way of getting a return code back from sqlcmd, so I can progress and do the next, or fail if the return code <> 0 (success).
[code]
--Process to create DB, Tables, and Stored Procedures
set nocount on
DECLARE
@Error int,
@ExecCommand varchar(512),
@FullFilePath varchar(255)
--create the database
BEGIN TRY
SET @FullFilePath = 'D:DocumentationProjectsIntegration ServicesBIDS ProjectsTesco DNF Integration ServicesTescoDNF ProductPromoSQL CodeOBJECTSCreate DB TescoDNF_SSISPackageManager.sql'
SET @ExecCommand = 'xp_cmdshell ''sqlcmd -S RgalbraithSQL2005_1 -i "'+@FullFilePath+'"'' '
I try to go to a command prompt to get this to run right with no luck. Is there something that I am not doing right? It gives me the help library, but thats about it. Also, I have dealt with Oracle in the past. And was wondering is there a way to access the SQLCMD utility on a workstation with a login of some kind?
I just installed SQL over an expired version of Express and can't get the SQL server service to start. Does anyone know of a utility that will clean the registry of everything SQL (after I uninstall 2005)
GreetingsI'm trying to follow the tutorial at http://www.asp.net/Guided%2DTour/s2.aspx Part way through the demo it asks me to run the following command as part of building a Demo web page access SQL dataC:Program FilesMicrosoft SQL Server90ToolsinnSQLCMD" -S "machine-nameSqlExpress" I am then supposed to paste some script into that window, but cant get that far. The black Command window opens, but the SQL > prompt doesn't appear, and the window closes. I had previously installed a demo version of Web Developer Express from my Action Pack, on a SBS Server Premium 2003 R2, clean installation. When I got to the above step in the demo there was no ...90Toolsinn folder so, I uninstalled the Action Pack version and the versions of SQL server that looked like they did not belong to the original SBS Server installation. I then downloaded the version from Microsofts website, and selected .Net SP1 and SQL Server Express ( or lite or whatever it's called ) that were part of the install dialog box. When checking for updates, the .NET SP1 and Visual Studio SP1 initial failed. Rebooting installed .Net SP1, but I had to do a hard reboot as the installation still wasn't complete after 2 hours. I assumed it was hung. After restarting, I was able to go to MSUpdates and the installation was successful.Currently the add remove programs shows a ton of SQL stuff, ..I'm guessing we have version conflicts or something but I don't know.. Microsoft SQL Server 2005Microsoft SQL Server Desktop engine " Native Client " Setup Support files " VSS Writer Visual Studio seems to run okay, but I would like to be able to do SQL database part of the tutorial, since I don't know much about it as you can tell, and I would like to see it work with web sites. TimeTraveller
I just uninstalled SQL 6.5 from my server (Now totally running in 7.0 Mode) and now I can't get the MSDTC service to start again. I get the error "Could not initialize the MS DTC XA transaction manager" (In Application Log)... and error "The MSDTC service terminated with service-specific error 3221229574." (In system log). I believe that somehow MSDTC got uninstalled and I don't know how to reinstall only MSDTC? Any suggestions would be appreciated...
I've exported surface area configuration settings from a server and tried importing them onto another server. The remote connection settings are imported but the SQLBrowser service remains Disabled. Am I doing something wrong?
The command line command I ran (in the C:Program FilesMicrosoft SQL Server90Shared directory) is "sac.exe in sacconfig.xml".
Have reinstalled MSDE using Command Prompt Installation and received Errors. Then I proceeded with a Batch.file installation and that seemed to work for the most part.
The Problem I ran into is - I can't seem to get the (SQL SERVER SERVICE MANAGER) to connect. I've entered the server name & instancename but so far no luck.
Ive checked - Control Panel/Administive Tools/Services - to make sure that it was installed & Yes it is there. So I Proceeded to start it up. Next I tried to Connect Via SERVER MANGER with no luck. Then I did a c:>osql -E check with the Command Line Prompt which returned the following message:
[Shared Memory]SQL Server does not exist or access denied. [Shared Memory]ConnectionOpen <Connect<>>.
Tried again with c:>osql -E -S returned the same message.
[Shared Memory]SQL Server does not exist or access denied. [Shared Memory]ConnectionOpen <Connect<>>.
Not sure what to do at this point any help/advice. Thx/TIA
I had SQL Server 7 installed on my desktop (I'm trying to learn SQL Server). The desktop got hit with a virus which necessitated running the rescue disk. Some items were lost (or badly mangled), including SQL Server. When I tried to reinstall SQL Server, I get a message that tells me that the server portion can't be reinstalled from that disk, only the client stuff. This is the same disk I used to install it, so I really don't understand what's wrong. Could someone suggest what to do next (short of "Format C:" and reload everthing from scratch)?
We are running front end applications provided by a third party against our server. They are slow.... so far, performance problems can be traced to their code and data model.
Management here had them dial in to our SQL Server. They noticed that our performance counters are missing and told management here that our SQL installation was corrupted and that we needed to reinstall SQL. According to them, this "corruption" is causing the performance problems with their app.
Other apps are not experiencing any performance problems.
Have you EVER heard of a reinstall fixing performance problems, assuming we reinstall with the same settings as are currently running?
Sorry about that first post I hit the wrong button.
I have a BIG problem. One day about a week ago I came into my office and everything was working fine, except for the fact that the drive of the NT server was a little fragmented. This machine is a dedicated server and since everything was relatively ok I turned the monitor back off and left the machine alone, after starting Diskkeeper to take care of the fragmentation. Later I go to check on the machine and the following message had appeared on the screen, NT system corrupt service can not continue with an OK button. So I sighed an pressed the ok button already to figure out what service needed to be restarted, unfortunately my best laid plans were soon destroyed when again the message popped up till I had shut down every program and had to reboot.... That is when the real fun started, it never rebooted, I had shut it down properly. So now I had a central server, that had never been backed up before that needed windows NT reinstalled. So I started reinstalling NT. I recently came in to this position and the people before me had not made and backup what so ever. So I had no Emergency Disk, and the systems files, i.e. User database, stuff that would normally be on a Emergency Disk were somehow corrupt and I could no recover them. Well after getting NT up, I worked on restoring the functions of the server, file sharing and web hosting. I still have a lot of programs to reinstall as the reinstall of NT left the actual program files alone, but has rendered them unusable. Now that I`m done with the background, I have now made a copy of what was left on the drive, so I could restore the data files. When I go to reinstall SQL 6.5, it will not let me use the upgrade part. So I try to do a complete install, I`m getting desperate here! Well it starts the install no problem asks me for info and I tell it. I have tried this with a new directory and the old one with the files intact. Well as the install goes along it allows the copying of the files, and then goes to a screen where it has the little hour glass thing in the SQL window setting up the server. A few minutes later it changes the title on the screen to read Microsoft SQL Server 6.5 Setup and brings up a window with the error The SQL Server installation could not be successfully completed Setup was not able to connect to the SQL server the only button is Exit to windows NT. I`m out of ideas. HELP me please.
I made a big mistake and deleted this program and now I cannot reinstall it. I get error messages stating that an instance is already on my machine and I need a unique name to restart install. I also get messages that say to install from the command line but I cannot get there the only access I have is error reporting. Is there any way I can make a FREASH install of this program????
I have discovered something wrong with my SSIS package and I thought it best to post a new thread since the problem is not what I thought it was initially.
With relation to my post of 'directory variable problem' I have now discovered by opening my project this morning that apparently my project had gone corrupt, according to the dev environment since the message reads:
"There were errors while the package was being loaded.The package might be corrupted.See the Error List for details."
The Error List: "Error 13 Error loading MyTestSSISPackage.dtsx: The connection "(local).MyTestDB.sa" is not found. This error is thrown by Connections collection when the specific connection element is not found." This is a buggy ADO.net connection that I deleted yesterday since, even though it connects successfully, doesn't want to work! It keeps on telling me log in failed for user <MyTestUser> even after I test it and it connects fine with the username and password during the UDL screen of the connection.. It's like it forgets the bloody password. I created another connection, this time an OLE connection and it seems to work fine.
*EDITED* I stand corrected..no bloody connection manager is working now. They all fail stating that they cannot connect to the db due to some or another 'unsupported' value in the connection string...the connectionstring was set up by the environment's udl????? how is this possible. I am beginning to get annoyed with SSIS
Now finally my question...WHY is it that every time I change something its like the dev environment doesn't cascade the change throughout the project or package? The problem I have been having with my variables not getting picked up with the correct values which I gave them during design time is probably also related to this. How or where can I remove the reference to this old ADO.Net connection since I cannot find it anywhere in the <package>.dtsx file?
I appear to have done something wrong in SQL express because I could not connect through VWD and when I tried to look at the Personal Web Site I only got errors.
I decided to uninstall the program and then reinstall and nothing seemed to work.
This is the message I received:
TITLE: Microsoft SQL Server Management Studio Express ------------------------------ An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------
Is there a way to totally remove SQL Express and start again or do I need to try and fix it..../
I had MSDE installed on my machine, but I had problems making it work. I installed the Visual Studio 2005Beta2, and it apparently installed MSDE 2005. I deinstalled MSDE 2000, then tried to make MSDE 2005 work. After lots of hair pulling I finally found the instance name, reset the authenitcation method, and reset the SA password. Then I found out all my sql tools don't work with it. No enterprise manager or query analyzer. So off MSCE 2005 came from my machine. I reinstalled MSCE 2000, but I cannot login. I am not sure if I don't have the proper instance name, or password for the sa account. I have not really found any good into on setting up the msce 2000 software. I think it found the old username/password info because whtn I started it, it did not ask me for any of that information.
I had a problem with my existing SQL Server, so decided to reinstall. During installation it came up with an error saying there was another instance of reporting services (most likely from the previous installation).
The error log (the last part of it) has the below:
Code Snippet Property(S): BinES.63902412_233C_4EBC_8197_D6B17D4C9C3C = D:Program FilesMicrosoft SQL ServerMSSQL.2Reporting ServicesReportManagerBines MSI (s) (4C:E4) [19:17:09:718]: Note: 1: 1708 MSI (s) (4C:E4) [19:17:09:718]: Product: Microsoft SQL Server 2005 Reporting Services (64-bit) -- Installation failed. MSI (s) (4C:E4) [19:17:09:718]: Windows Installer installed the product. Product Name: Microsoft SQL Server 2005 Reporting Services (64-bit). Product Version: 9.00.1399.06. Product Language: 1033. Installation success or error status: 1603. MSI (s) (4C:E4) [19:17:09:734]: Cleaning up uninstalled install packages, if any exist MSI (s) (4C:E4) [19:17:09:734]: MainEngineThread is returning 1603 MSI (s) (4C:E0) [19:17:09:734]: Destroying RemoteAPI object. MSI (s) (4C:B8) [19:17:09:734]: Custom Action Manager thread ending. MSI (s) (4C:E0) [19:17:09:734]: RESTART MANAGER: Session closed. MSI (s) (4C:E0) [19:17:09:734]: No System Restore sequence number for this installation. === Logging stopped: 19/03/2008 19:17:09 === MSI (c) (14:54) [19:17:09:734]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (14:54) [19:17:09:734]: MainEngineThread is returning 1603 === Verbose logging stopped: 19/03/2008 19:17:09 ===
So my question is how do i reinstall reporting services and check its working as it should?
I am trying in vain to reinstall MS SQL Server(2005 SP2) Management Studio (on Windows XP Pro SP2) due to. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2616564&SiteID=1&mode=1
And I have catch-22 (or catch-33) situation trying to reinstall it.
If I try to launch from DVD Z:SQL Server x86Toolssetup .exe from command prompt (cmd): setup SKUUPGRADE=1 even after deleting (I tried first without deleting)
Microsoft SQL Server Native Client
Microsoft SQL Server 2005 Setup Support Files in Add or Remove Programs in Control Panel,
then I end up with -------------------------------------- Name: Microsoft SQL Server 2005 Tools Reason: Your upgrade is blocked. For more information about upgrade support, see the "Version and Edition Upgrades" and "Hardware and Software Requirements" topics in SQL Server 2005 Setup Help or SQL Server 2005 Books Online.
Build version check: Your upgrade is blocked because the existing component is a later version than the version you are trying to upgrade to. To modify an existing SQL Server component, go to Add or Remove Programs in Control Panel, select the component you would like to modify, and then click Change/Remove ------------------------------ and then
---------------------------- TITLE: Microsoft SQL Server Setup ------------------------------ None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue, click Back and then select features to install. To exit SQL Server Setup, click Cancel.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=SQLSetup90&EvtType=28108
------------------------------ BUTTONS:
OK ------------------------------
How should I reinstall client Tools? Might be to merge original SS2005 DVD with downloaded SP2?
Since there is not a method to uninstall SP2 for SQL Server 2005 Express, it is recommended to completely uninstall and then reinstall. I have backed up all databases as well as generated a script to recover username/passwords, is there anything else I should be taking into consideration?
for some reason my Sql Server has stopped and i am not able to restart it at all, do i have to reinstall the complete SQl Software or is there ne way i can start the MSSQL Server
I need to reinstall Full Text Search for SQL 7. I installed from a shared CD and it installed fine, however my problem is that I chose the local install instead of remote. Whenever I try and start the service I get the "Access Denied" message returned. When I viewed the registry it points back out to the H: drive for the path. How can I remove the Full Text Search or Microsoft Search so that I may reinstall?
They are corrupt. I cannot get the odbc driver applet for sql serverto open when I click add and I cannot configure any existing ones. Andthe usage of the drivers fail.Other ODBC drivers work.Does anyone know how to reinstall the SQL Server set of ODBC drivers?MDAC wouldn't install, said it was already at current level.Thanks for any ideas.
Hi,I just unistalled Sql Management Express and now I want to install it again but the installer says the product is already installed,Can somebody help me with this
I had to make room on the system partition so I uninstalled SQL 2005 Ent. and reinstalled it in a different partition, which is mounted in c:apps. Since doing this, although MSSQL works fine, RS does not respond. During the reinstall, Setup reported that RS was "installed but not configured". I ran the RS Configuration Mgr and went through the config sequence. However, on the Initialization page, which has a red 'x' in the left panel, the local server is not listed -- the grid is empty.
The RS service is running, using the same credentials as MSSQL, the admin account .SQLExec. It logs a normal startup in the Event Log. However, on visiting http://localhost/Reports, I get a message saying that Reporting Services is not responding. SP2 installed OK on the system, and reported that all components were upgraded.
I have been playing with my Standard version of SQL Server with no problems. Now I wanted to start exploring Reporting Services, however whenever I tried to connect to the instance through the Management Studio, it would fail. I did notice that the folder in IIS was not present so I am thinking it was something I failed to do in the initial setup.
I have uninstalled everything, but when it gets to Reporting Services, I get an error message "The setup failed to read IISMiniMap table. Error Code -2147024893." I did a search on various newsgroups and forums and found a message about installing and running some Microsoft Cleanup utility. I did this, but I am still getting the error message and then the uninstall rolls everything back.
What do I need to do here, short of doing a total reformat of the harddrive and just reinstall everything?
Previously, I have installed SQL 2005 developer edition simplyfied chinese successfully. But yesterday, I tried to install mobile client software factory. The installation process create a database as following: Create DATABASE [AdventureWorksMobileStaging] ON PRIMARY ( NAME = N'AdventureWorksMobileStaging', FILENAME = N'C:GotDotNetMCSF_728ReferenceImplementationsAdventureWorksToGoDBScriptsAdventureWorksMobileStaging.mdf' , SIZE = 195584KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) ( NAME = N'AdventureWorksMobileStaging_log', FILENAME = N'C:GotDotNetMCSF_728ReferenceImplementationsAdventureWorksToGoDBScriptsAdventureWorksMobileStaging_log.ldf' , SIZE = 265344KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) But today, when I start my notebook, SQL server could not be started.
Then I uninstalled the SQL instance by start->control panel->uninstall...The uninstall process seems OK. Note that I only uninstalled the instance.Then I tried to reinstall SQL 2005. However it was reported a Performance Monitor Counter registry key mismatch error occures. I tried to fix it but failed. The problem is as following:
1, The installation process report a warning of low memory. My notebook has 512M memory. I have reinstalled SQL 2005 once successfully. At that time, the warning also shows, but it seems that this warning does not affect installation.
2, User type problem. The OS of my notebook is XP professional, which is upgraded from XP home edition. I login it using a domain user such as: "my company's domainmyaccount". I found it curiously that although I assign myaccount as an Administrator, it will automaticly changed to "SQL$...." account. I don't know why and when the account property is changed. But everytime, when I found, I will assign myaccount as an Administrator back.
3, Performance Monitor Counter registry key problem. To fix the problem, I firstly tried to run lodctr.exe in cmd window but failed. When I cd to c:windowssystem32 dir, I can ran lodctr.exe correctly. I check HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPerflib, the result is: "Last Counter"=dword:0000149c (11128) "Last Help"=dword:0000149d (11129) Then I check HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPerflib 09 and 004, the result is confusing. I can find counter and help key,but both keys contains really a lot of stuff as: (1) first page of Counter key: 1 1847 2 System 4 Memory 6 % Processor Time 10 File Read Operations/sec 12 (2) first page of Help key: 3 The System performance object consists of counters that apply to more than one instance of a component processors on the computer. 5 The Memory performance object consists of counters that describe the behavior of physical and virtual memory on the computer. Physical memory is the amount of random access memory on the computer. Virtual memory consists of the space in physical memory and on disk. Many of the memory counters monitor paging, which is the movement of pages of code and data between disk and physical memory. Excessive paging, a symptom of a memory shortage, can cause delays which interfere with all system processes. 7 % Processor Time is the percentage of elapsed time that the processor spends to execute a non-Idle thread. It is calculated by measuring the duration of the idle thread is active in the sample interval, and subtracting that time from interval duration. (Each processor has an idle thread that consumes cycles when no other threads are ready to run). This counter is the primary indicator of processor activity, and displays the average percentage of busy time observed during the sample interval. It is calculated by monitoring the time that the service is inactive, and subtracting that value from 100%. 9 % Total DPC Time is the average percentage of time that all processors spend receiving and servicing deferred procedure calls (DPCs). (DPCs are interrupts that run at a lower priority than the standard interrupts). It is the sum of Processor: % DPC Time for all processors on the computer, divided by the number of processors. System: % Total DPC Time is a component of System: % Total Privileged Time because DPCs are executed in privileged mode. DPCs are counted separately and are not a component of the interrupt count. This counter displays the average busy time as a percentage of the sample time. 11 File Read Operations/sec is the combined rate of file system read requests to all devices on the computer, including requests to read from the file system cache. It is measured in numbers of reads. This counter displays the difference between the values observed in the last two samples, divided by the duration of the sample interval.
I could not find the maximum value of the Counter key and help key, so I could not repair Last Counter and Last Help key as discribed at SQL 2005 help. Which item correspond to maximum value of the Counter key and help key?
I tried to correct Last Counter and Help key as: "Last Counter"=dword:0000149c (5276) "Last Help"=dword:0000149d (5277) But it also doesn't work.