Showing posts with label setting. Show all posts
Showing posts with label setting. Show all posts

Wednesday, March 28, 2012

Moving to SQL Server 2005

Hello Everyone and thanks for your help in advance. I am setting up a new testing and development machine. My previous machine had VS 2003 and SQL Server 2000 installed on it. The new machine is going to be VS 2005 and SQL Server 2005 Standard. I have approximately 12 databases on the old machine in SQL 2000 that I want to bring over onto the new machine and convert to 2005. What is the best way to go aobut this. I'm sure I'm not the first to do this, but I'm having trouble finding documentation on this topic. Any help would be greatly appreciated. Thanks.Are you upgrading the 2000 to 2005? or uninstalling 2000 and installing 2005? If you upgrade the db's will be moved along. If you do a clean install you can bakc up your files and restore them in 2005.|||Thanks for the response. I am actually working with a clean install of 2005 on a new machine. I actually tried running a backup from the 2000 machine onto an external drive. However, when I tried to do the resore through the 2005 manager, i received an error message " the backup set holds a backup of of the database other than the existing database. So I'm not sure what is happening here.|||Try moving each .bak file into the Backup sub folder under Microsoft SQL Server folder in programs and restoring from there and in the Backup and Restore wizard choose the restore from device option and make sure SQL Server create the file path for you. Move the .bak files one at a time make sure the restore is correct before putting the next one in the folder again. Hope this helps.|||

Thanks for the assistance. It appears the key to this is checking the option box to overwrite the existing database. Once i did that, it worked fine.

Thanks.

sql

Friday, March 23, 2012

Moving tables between databases and setting alias

Due to bad programming techniques and legacy databases, my company has a large database with all the tables in it. I would like to start moving these tables out of the database and into more appropriately named databases.

I was wondering if there was a way to set an alias up so that, when the table is moved, there will be no problems with out code still trying to access the table from the old database.

Maybe an example is the best way to explain this. Lets say we have a DB_Company database with table T_Customers, T_Suppliers, etc.
Now, as the company grows, we decide to create a dedicated database for all the customers. So we create a database DB_Customers and move the T_Customers table into it.
The problem is that they may be some code that is still trying to access the DB_Company.T_Customers table. Is there a way of setting an alias up so that, when someone tries to access the DB_Company.T_ Customers table, he is automatically redirected to the DB_Customers.T_Customers?

Hope that's not too confusing :-(

Jag

Hi jagdipa,

I don't think (AFAIK) you can do an alias to the tables...But you can first check the db objects w/c depends on the table, by using the sp_depends '<tablename>' stored proc. and will display to you its dependencies.. and change as needed..

or

after getting the dependcies wrap the table into a view so that you don't need change the name in the dependencies..

HTH

|||Thanks Bonskijr, but that its not possible.

I am a great believer in using views and never accessing the tables directly. Unforuanetly, the people before me did not. There could be many pages that access the tables directly.

Edit: I just read your post properly. The second idea is very good. I will have a look into that. Thanks alot.

Wednesday, March 7, 2012

Moving Report Server Log Files

I am setting up a new SQL Server 2005 EE server with Reprting Services
installed. The log files have all been moved to a seperate drive. However, I
have never moved log files for Reporting Services and can find no
documentation for this procedure. Is there anything unique about moving the
ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved just
like a normal user database?
Thanks,
Mike C.
I haven't done this myself, but I'd be *very* surprised if RS cares about the physical location of
the database files. That would be a really crappy idea, if it did.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"MACason" <MACason@.discussions.microsoft.com> wrote in message
news:EADD349C-1278-480E-B5AD-17E33A18BCB8@.microsoft.com...
>I am setting up a new SQL Server 2005 EE server with Reprting Services
> installed. The log files have all been moved to a seperate drive. However, I
> have never moved log files for Reporting Services and can find no
> documentation for this procedure. Is there anything unique about moving the
> ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved just
> like a normal user database?
> Thanks,
> Mike C.

Moving Report Server Log Files

I am setting up a new SQL Server 2005 EE server with Reprting Services
installed. The log files have all been moved to a seperate drive. However, I
have never moved log files for Reporting Services and can find no
documentation for this procedure. Is there anything unique about moving the
ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved just
like a normal user database?
Thanks,
Mike C.I haven't done this myself, but I'd be *very* surprised if RS cares about the physical location of
the database files. That would be a really crappy idea, if it did.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"MACason" <MACason@.discussions.microsoft.com> wrote in message
news:EADD349C-1278-480E-B5AD-17E33A18BCB8@.microsoft.com...
>I am setting up a new SQL Server 2005 EE server with Reprting Services
> installed. The log files have all been moved to a seperate drive. However, I
> have never moved log files for Reporting Services and can find no
> documentation for this procedure. Is there anything unique about moving the
> ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved just
> like a normal user database?
> Thanks,
> Mike C.

Moving Report Server Log Files

I am setting up a new SQL Server 2005 EE server with Reprting Services
installed. The log files have all been moved to a seperate drive. However, I
have never moved log files for Reporting Services and can find no
documentation for this procedure. Is there anything unique about moving the
ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved jus
t
like a normal user database?
Thanks,
Mike C.I haven't done this myself, but I'd be *very* surprised if RS cares about th
e physical location of
the database files. That would be a really crappy idea, if it did.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"MACason" <MACason@.discussions.microsoft.com> wrote in message
news:EADD349C-1278-480E-B5AD-17E33A18BCB8@.microsoft.com...
>I am setting up a new SQL Server 2005 EE server with Reprting Services
> installed. The log files have all been moved to a seperate drive. However,
I
> have never moved log files for Reporting Services and can find no
> documentation for this procedure. Is there anything unique about moving th
e
> ReportServer_log.LDF and ReportServerTempDB_log.LDF or can they be moved j
ust
> like a normal user database?
> Thanks,
> Mike C.