Transferring SQL Jobs from SQL 2005 to SQL 2008 - sql

Can someone tell me what the most efficient way to transfer SQL Jobs from SQL Server 2005 to sql 2008. I'm currently upgrading my sql servers to 2008. Thanks!

You should try SMO. It will generate a script that you can run to your new instance. Or try it manually:
hit F7 key after selecting the Jobs folder, it will bring up the summary pane and from there select the jobs you want and right click - >Script

Related

can I use 'show SQL query' from crystal report and use in SQL server

I got some crystal reports, these are developed by someone but now I am migrating to SSRS. So when i go to 'show SQL query' from crystal reports it is showing some query but i can't understand properly where these columns coming from. Is there anyway to know exact SQL query so that i can use it in sql server to generate data sets for SSRS.
thanks
You can run Sql Profiler against your database server to see the exact Sql that Crystal Reports is running to generate the report.
Sql Profiler is a tool that comes with Sql Server (under Performance Tools in your Sql Server programs) that shows every Sql statement hitting the database. Run a trace on your Sql Server through Sql Profiler then run your report and Sql Profiler will show you the exact Sql statements that your Crystal report is running against the database.
One option would be split the query manully and see the select and where clause using or if you have access to database run the query over the database to check what all columns it is returning

How to check SQL Server 2008 script will work properly on SQL Server 2005

Is there a way (a tool) to check that a SQL Server 2008 script will run on SQL Server 2005?
Open up SQL Management studio, rt mouse click on the database name, select properties, select option, set compatability level. Test. A far as is known, when the compatabailty level is set to a (lower) level, functionality is disabled and errors raised entirely in line with the selected level. MS are a bit relctant to comit http://msdn.microsoft.com/en-gb/library/bb510680.aspx but in practice I've not found any issues. You can of course install an instance of the 2005 build and bulk insert for a really thorough check.
You can use SQL Fiddle for SQL Server 2008
At the left top you can select the RDMS

SQL Server 2005, export table into inserts query

I'm not able to find in SQL Server 2005 the utility that phpmyadmin has for exporting tables.
I need a way to dump all info a table contains in a query with all the instert into in it.
How can I do that with SQL Server 2005?
Use the Database publishing wizard tool you can find it under the SQL Server install directory

How to schedule a stored procedure?

How do I schedule a stored procedure in Sql Server 2005 that it runs once at the start of every month (and on database startup)?
You will need to create a job using the SQL Server Agent.
In SQL Server Management Studio, go expand the SQL Server Agent node under the DB server, right click the Jobs folder and select New Job...
(If the SQL Server Agent node does not appear, you may be missing the required permissions)
That will take you through a wizard to schedule a sproc to run on whatever schedule you want.
In terms of how to get a sproc to run on db startup, see this article.

Creating a job in SQL Server 2005

Am pretty new to SQL Server 2005. Can someone help me to create a job in SQL Server? This link(http://www.databasedesign-resource.com/sql-server-jobs.html) says to create under the jobs category in managememt tab. But i am not able to find one such category in my SQL Server Management Studio. Is it not possible to create a job using stored procedures or queries?
Thanks,
Geetha
In 2005 it's sql server agent -> jobs
For tsql read this