SQL Server 2008 cross server queries 2000 - sql

I need to create reports on SSRS 2008 from data available on SQL Server 2000, now; the database on SQL2000 is preferably not touched so I am avoiding adding stored procedures, views, indexes etc..
What would be the right solution?
What I would be needing is a place where I can put stored procedures, views etc so I can do reports.
Thanks.

create an ssis package / dataflowtask, copy your data from one source (sql 2000 - sql 2008r2)
create a reporting database, move your data to this database and make your reports on this database

Related

Generate SQL Compact database from Sql Server database

I wish to migrate from my SQL Server database to a SQL Server Compact database. I have tens of tables with tons of columns, it will be a life-time taking process to generate the tables and their fields manually from scratch.
Is there some faster way to generate the tables from SQL Server?

How to create table in SQL Server 2012 using script file generated from SQL Server 2005?

How to use a script file generated from SQL Server 2005 and create the same table in SQL Server 2012?
Plus I have a script file for each table, how could I combine them all to generate my database?
Just create a database on SQL Server 2012 and run each create object script.
If some error or warning arises you can work it by demand.
note the tables got dependencies, so it's a good idea to create that tables in the right order.
You also can create the tables and put a no check in the FKs creation snipets and switch all FKs to check once all tables ar in place.
Also it's good to create all tables before creating the views, etc.

How to create a database snapshot in SQL Server 2008 R2

I used the below command to create a database snapshot in SQL Server 2008 R2:
CREATE DATABASE "dbss" ON (
NAME = "os-file-name",
FILENAME = 'path')
AS SNAPSHOT OF "dbName";
GO
I got this error:
Database Snapshot is not supported on Standard Edition (64-bit).
Does anyone knows how can I create a database snapshot in SQL Server 2008 R2?
Database Snapshot is a feature of the Enterprise Edition and the 2008 Developer Edition.
Besides that there is only little use of Snapshots for a "common user". Most things can be done with a backup too.
Main purpose for snapshots are expensive queries on rapidly changing data.
If you got a huge database and need to execute a query for a report that takes some time there is the danger that data may change while the query / procedure fetches data for the report. In this case you need snapshots. There you can query all your data without having problems with changing data.

Tools to delete and recreate a lot of stored proc in SQL Server 2005

We have a database that had a lot of changed in both tables and Stored proc. Dealing with the tables isn't too bad since we only had a handful of changed, but there is something like 85 or more SP that needed to be changed/create. Is there a quick way to take all the SP from one database into another one, assuming the table definitions are the same, which they are in my case
Thanks,
You could use a product like SQL Compare (http://www.red-gate.com/products/sql-development/sql-compare/.
You can also use SQL Management Studio to script the procedures from one database and run those scripts against the other database. Right click the database -> Tasks -> Generate Scripts.

How can I transform database from sql server 2005 to 2000

how can I transform database from sql server 2005 to 2000
Use SSIS to export the database directly to SQL Server 2000.
First make sure that you aren't using any native 2005 features like included columns on indexes, XML features, etc. Then you can script the schema out using SSMS, and export the data using BCP or SSIS to SQL 2000. Some vendor tools exist like RedGate SQL Compare and Data Compare that make doing this a whole lot easier if you have primary keys defined on your tables.