i want to start the Microsoft SQL Server 2008 services from command prompt.
how can i achieve through command prompt?
Check here
On top of that here is how you can Manage SQL Server Services from the Command Line which may be more relevant to what you are after.
Related
I'm looking to schedule some scripts from my SQL Server 2012 installation. I have installed the SQLManagementStudio_x64_ENU.exe from http://www.microsoft.com/en-us/download/details.aspx?id=43351, since that is the full version, not express. It didnt install a Database Engine though. I went back and installed the SQLEXPR_x64_ENU.exe database engine only, but when I go to start the SQL Agent service, I get the error "The edition of SQL Server that installed this service does not support SQL Server Agent"
Did I use the wrong database engine? Or install in the wrong order?
While the first comment is correct. I believe you can schedule scripts from Windows Task Scheduler utilizing the sqlcmd utility even on SQL Server Express.
I'm wondering if I can use some command line command and a config file to setup my Reporting Services after I have installed it. You can do that to install SQL Server so I'm hoping for something that will allow me to have a set config file and then I can quickly do it for a computer/ multiple computers.
Why not just use the management console? Its possible using the bat to command the start and stop of the service:
I do not use this process but theoretically this would work:
INSTALL
sc create SQL Server Reporting Services (MSSQLSERVER)
binpath= "C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
net start SQL Server Reporting Services (MSSQLSERVER)
PAUSE
STOP
net stop SQL Server Reporting Services (MSSQLSERVER)
PAUSE
START
net start SQL Server Reporting Services (MSSQLSERVER)
PAUSE
UNINSTALL
net stop SQL Server Reporting Services (MSSQLSERVER)
sc delete SQL Server Reporting Services (MSSQLSERVER)
As for parameters and other directives, I do not have that list.
I just finished the conception of a simple Java project and my client wants to use SQL Server as a Database,
i downloaded SQL Server 2008, i tried to use SQLPlus to execute the queries but i didn't find any tutorial in the internet on how to use SQLPlus in SQL Server.
Can anyone Help me please.
Check out SQLS*Plus - this is SQL*Plus for SQL server. Their web site is http://www.sqlsplus.com/
is it possible to use SQL Server Management Studio 2008 to connect to instances of SQL 2012 localdb?
I have installed the 2012 Native Client, which contains the ODBC driver, but I still can't seem to use the SSMS 2008 to connect to my localdb instance.
I have no problem using the sqlcmd to connect to the localdb, so it is not the server problem.
Thank you
You could do it via named pipes this way:
1 - Get the address of a (localdb) instance by running the following command: "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" info [InstanceName] (if its the default instance you're interested in, specify v11.0 as the [InstanceName] You can write it in CMD to text file with the command:
"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" info v11.0 > C:\db_details.txt
2 - Copy the "Instance pipe name" value, e.g. np:.\pipe\LOCALDB#1E0FF40B\tsql\query
3 - Paste the "Instance pipe name" value as the Server Name.
Install CU6 on system with SSMS 2008R2 as it contains some fixes related to compatibility issues with SQL Server 2012.
If you can see the 2012 server in your SSMS 2008R2 than you have connected it.
Open a new query window and execute the following code:
select ##version
try this :
ip Address\sqlserver2012 in the server name.
then set the Authentication method = SQL Server Authentication and provide thw login and password fields.
I have downloaded SQL SERVER MANAGEMENT STUDIO but SQL SERVER AGENT is not found.
Should I install it separately?
Can anybody tell me the link where SQL SERVER AGENT is available as a Freeware to download it?
The agent is not visible if you use SQL Server Management Studio Express to connect to an SQL Server. You need to install the client tools that come with the server setup to get SQL Server Management Studio.
If you are using SQL Server Express, it has no agent.
SQL Server Agent is a service of SQL Server, not SQL Server Management Studio (which is, in and of itself, an administration tool).
Since SQL Server Agent is part of SQL Server, it's not free. You can learn about creating a job in SQL Server Agent here.
What, pray tell, are you actually trying to do?
You (or your company) will need to purchase the full version of SQL server in order to use this functionality.
The other option is to find the command-line instruction that will achieve what you want and then use Windows Task Scheduler to run the command on the schedule you want.