Showing posts with label table. Show all posts
Showing posts with label table. Show all posts

Friday, March 30, 2012

Restore with scheduler!

Is there anyway you can schedule to restore a database table(s) from a backup file *.bak?


I think you can restore a entire db from a backup but not selected tables........you can restore the
entire db from a perticular days backup file and then script out the objects you need and run
it in some development or uat servers to recreate it there......

|||

Which version and edition of sql server u have? Yes u can schedule tasks in sql server. SQL Server Agent is the scheduller for SQL Server. You can create Jobs which run periodically as u scheduled. But if u have SQL Server 2005 Experss , then sql server agent is not available in that edition. Then u may use Windows Scheduller and SQLCMD command to schedule tasks.

As already mentioned you can not restore only few tables from a DB backup. But there are method alternate methods like restore the whole db with some temp name ,pump the table and drop the database etc etc.

Read about *JOBS* in BOL

and if u want further assistance pse let us know

Madhu

sql

Friday, March 23, 2012

Restore table from tape

I have a static table that I restored from tape to a new db name on same server as production db. I'm trying to restore one table that was accidently deleted from production db. However, when I run a "select 'tablename' into 'production db' from'backed up db' in Query Analyzer I get invalid object name. I also cannot browse (all rows) this table in Enterprise Manager but I CAN return all rows when I do a 'select * from 'tablemname' in query analyzer.
I'm stumped. Can someone help? I stopped and re-stared SQL Server with no success after I restored with no success.
Can anyone help?Nathank,
You pseudo-code syntax is incorrect. It should be "select 'column list' into 'production db..tablename' from'backed up db..tablename'. If this is not the issue, please supply the actual query being used.
Norman|||If the object name has spaces ,etc in it you must use sqaure braces ie
select * into [funny table] from otherdb.dbo.[funny table]
Regarding seeing the rows in SEM, if there are a LOT of rows, sometimes SEM
has a problem showing them (especially if memory is low)
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Nathank" <anonymous@.discussions.microsoft.com> wrote in message
news:E7BCB601-AABD-47D0-9FF2-C4F520A80278@.microsoft.com...
> I have a static table that I restored from tape to a new db name on same
server as production db. I'm trying to restore one table that was accidently
deleted from production db. However, when I run a "select 'tablename' into
'production db' from'backed up db' in Query Analyzer I get invalid object
name. I also cannot browse (all rows) this table in Enterprise Manager but I
CAN return all rows when I do a 'select * from 'tablemname' in query
analyzer.
> I'm stumped. Can someone help? I stopped and re-stared SQL Server with no
success after I restored with no success.
> Can anyone help?

Restore table from tape

I have a static table that I restored from tape to a new db name on same ser
ver as production db. I'm trying to restore one table that was accidently de
leted from production db. However, when I run a "select 'tablename' into 'pr
oduction db' from'backed up
db' in Query Analyzer I get invalid object name. I also cannot browse (all r
ows) this table in Enterprise Manager but I CAN return all rows when I do a
'select * from 'tablemname' in query analyzer.
I'm stumped. Can someone help? I stopped and re-stared SQL Server with no su
ccess after I restored with no success.
Can anyone help?Nathank,
You pseudo-code syntax is incorrect. It should be "select 'column list' into
'production db..tablename' from'backed up db..tablename'. If this is not th
e issue, please supply the actual query being used.
Norman|||If the object name has spaces ,etc in it you must use sqaure braces ie
select * into [funny table] from otherdb.dbo.[funny table]
Regarding seeing the rows in SEM, if there are a LOT of rows, sometimes SEM
has a problem showing them (especially if memory is low)
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Nathank" <anonymous@.discussions.microsoft.com> wrote in message
news:E7BCB601-AABD-47D0-9FF2-C4F520A80278@.microsoft.com...
> I have a static table that I restored from tape to a new db name on same
server as production db. I'm trying to restore one table that was accidently
deleted from production db. However, when I run a "select 'tablename' into
'production db' from'backed up db' in Query Analyzer I get invalid object
name. I also cannot browse (all rows) this table in Enterprise Manager but I
CAN return all rows when I do a 'select * from 'tablemname' in query
analyzer.
> I'm stumped. Can someone help? I stopped and re-stared SQL Server with no
success after I restored with no success.
> Can anyone help?sql

Wednesday, March 21, 2012

Restore SQL 2000 Tables from Transaction Log Files

I inadvertently deleted related records from one table when I deleted anothe
r table. I am not sure how often the server admin backups the data or how h
e is doing it. I thought that I read somewhere that one could do that from
the log files. Can someone
please help me with this?
Thanks,Hi,
Steps to recover your table in the database, (Hope you are using FULL
Recovery Model)
1. Perform a transaction log backup in your current database
Backup log dbname to disk='drivename\txlog_final.bak'
2. Restore the FULL database backup into a new database
Restore database Newdbname from disk='physicaldrive\filename.bak' with
move 'logical_data_filename' to 'new_data_physicalfile.mdf',
move 'logical_log_filename' to 'new_log_physicalfile.ldf',
with NORECOVERY
3. Restore the subsequent TX log files in sequential order till the last
transaction log file in which log backup is taken
Restore log newdbname from disk='physicaldrive\txlogfile1.bak' with
norecovery
COntinue the step 3 for all transaction log files , but do not restore
the last transaction log file.
4. For the Last Transaction log file , use RECOVERY option
Restore log newdbname from disk='physicaldrive\txlog_final.bak' with
RECOVERY,STOPAT = 'Feb 26, 2004 10:00 AM'
This will revover the new database till 'Feb 26, 2004 10:00 AM'
Thanks
Hari
MCDBA
"Stephanie" <anonymous@.discussions.microsoft.com> wrote in message
news:77CEFC43-E1B9-454D-97BA-A4B32825D8E8@.microsoft.com...
> I inadvertently deleted related records from one table when I deleted
another table. I am not sure how often the server admin backups the data or
how he is doing it. I thought that I read somewhere that one could do that
from the log files. Can someone please help me with this?
> Thanks,|||Lumigent offers a tool called LogReader that is useful in finding what
happened.
Russell Fields
"Stephanie" <anonymous@.discussions.microsoft.com> wrote in message
news:77CEFC43-E1B9-454D-97BA-A4B32825D8E8@.microsoft.com...
> I inadvertently deleted related records from one table when I deleted
another table. I am not sure how often the server admin backups the data or
how he is doing it. I thought that I read somewhere that one could do that
from the log files. Can someone please help me with this?
> Thanks,

Restore SQL 2000 Tables from Transaction Log Files

I inadvertently deleted related records from one table when I deleted another table. I am not sure how often the server admin backups the data or how he is doing it. I thought that I read somewhere that one could do that from the log files. Can someone please help me with this
Thanks,Hi,
Steps to recover your table in the database, (Hope you are using FULL
Recovery Model)
1. Perform a transaction log backup in your current database
Backup log dbname to disk='drivename\txlog_final.bak'
2. Restore the FULL database backup into a new database
Restore database Newdbname from disk='physicaldrive\filename.bak' with
move 'logical_data_filename' to 'new_data_physicalfile.mdf',
move 'logical_log_filename' to 'new_log_physicalfile.ldf',
with NORECOVERY
3. Restore the subsequent TX log files in sequential order till the last
transaction log file in which log backup is taken
Restore log newdbname from disk='physicaldrive\txlogfile1.bak' with
norecovery
COntinue the step 3 for all transaction log files , but do not restore
the last transaction log file.
4. For the Last Transaction log file , use RECOVERY option
Restore log newdbname from disk='physicaldrive\txlog_final.bak' with
RECOVERY,STOPAT = 'Feb 26, 2004 10:00 AM'
This will revover the new database till 'Feb 26, 2004 10:00 AM'
Thanks
Hari
MCDBA
"Stephanie" <anonymous@.discussions.microsoft.com> wrote in message
news:77CEFC43-E1B9-454D-97BA-A4B32825D8E8@.microsoft.com...
> I inadvertently deleted related records from one table when I deleted
another table. I am not sure how often the server admin backups the data or
how he is doing it. I thought that I read somewhere that one could do that
from the log files. Can someone please help me with this?
> Thanks,|||Lumigent offers a tool called LogReader that is useful in finding what
happened.
Russell Fields
"Stephanie" <anonymous@.discussions.microsoft.com> wrote in message
news:77CEFC43-E1B9-454D-97BA-A4B32825D8E8@.microsoft.com...
> I inadvertently deleted related records from one table when I deleted
another table. I am not sure how often the server admin backups the data or
how he is doing it. I thought that I read somewhere that one could do that
from the log files. Can someone please help me with this?
> Thanks,

restore single table from backup

Hi,
I'm looking for tool that would allow me to restore a single table from a ba
ckup without restoring full database... I tried lumigent software but it did
not work as I expected...
Thank you for your help
Darekhi derek,
Im not sure about 3rd party tool. but with SQL Server, you can not restore a
single table out of backup. You can restore the database to a different SQL
Server, or if you are using same Server, then restore it with the different
database name and transfer the required table using DTS/bcp etc to destinati
on.
-- Vishal|||Read a while ago that CA has a tool to do this among others. You may check
with them. Of course in restoring a table (if you can) you always need to
watch out data integrity issues.
"Darek" <anonymous@.discussions.microsoft.com> wrote in message
news:CD4CFA7D-85A3-4D71-8524-EB3834C92123@.microsoft.com...
quote:

> Hi,
> I'm looking for tool that would allow me to restore a single table from a

backup without restoring full database... I tried lumigent software but it
did not work as I expected...
quote:

> Thank you for your help
> Darek
|||Hi,
SQL server versions which is higher than 6.5 will not support table level
restore, Only Filegroup / full database restore is available in SQL 7 and
2000.
Thanks
Hari
MCDBA
"Darek" <anonymous@.discussions.microsoft.com> wrote in message
news:CD4CFA7D-85A3-4D71-8524-EB3834C92123@.microsoft.com...
quote:

> Hi,
> I'm looking for tool that would allow me to restore a single table from a

backup without restoring full database... I tried lumigent software but it
did not work as I expected...
quote:

> Thank you for your help
> Darek
sql

restore single table

Hi All ,
Is it possible to restore just a single table from a particulare db's backup
?
kindly advise
tks & rdgs
Message posted via http://www.droptable.comHi ,
I believe i can put that particular table into its own file group and
therefore, if i restore using file group i am just restoring that particular
table
am i correct on the above ?
and is thre anyother solution to this ?
tks & rdgs
maxzsim wrote:
>Hi All ,
>Is it possible to restore just a single table from a particulare db's backu
p ?
>kindly advise
>tks & rdgs
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200605/1|||Such a restore has to be done into a new database, and using the PARTIAL opt
ion of the RESTORE
command. There are other restrictions as well, see the RESTORE command and t
he PARTICL option in
Books Online.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"maxzsim via droptable.com" <u14644@.uwe> wrote in message news:5fb1558785963@.uwe...eagreen">
> Hi ,
> I believe i can put that particular table into its own file group and
> therefore, if i restore using file group i am just restoring that particul
ar
> table
> am i correct on the above ?
> and is thre anyother solution to this ?
> tks & rdgs
> maxzsim wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200605/1|||Alternatively you could restore the entire database to a database of another
name then use TABLEDIFF
(http://www.replicationanswers.com/TableDiff2005.asp) or Redgate's
Datacompare to create the synchronization script.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)|||tks ppl . basically i want to backup/restore certain important table fast a
s
the whole db is quite huge
Paul Ibison wrote:
>Alternatively you could restore the entire database to a database of anothe
r
>name then use TABLEDIFF
>(http://www.replicationanswers.com/TableDiff2005.asp) or Redgate's
>Datacompare to create the synchronization script.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200605/1

restore single table

Hi All ,
Is it possible to restore just a single table from a particulare db's backup ?
kindly advise
tks & rdgs
--
Message posted via http://www.sqlmonster.comHi ,
I believe i can put that particular table into its own file group and
therefore, if i restore using file group i am just restoring that particular
table
am i correct on the above ?
and is thre anyother solution to this ?
tks & rdgs
maxzsim wrote:
>Hi All ,
>Is it possible to restore just a single table from a particulare db's backup ?
>kindly advise
>tks & rdgs
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200605/1|||Such a restore has to be done into a new database, and using the PARTIAL option of the RESTORE
command. There are other restrictions as well, see the RESTORE command and the PARTICL option in
Books Online.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"maxzsim via SQLMonster.com" <u14644@.uwe> wrote in message news:5fb1558785963@.uwe...
> Hi ,
> I believe i can put that particular table into its own file group and
> therefore, if i restore using file group i am just restoring that particular
> table
> am i correct on the above ?
> and is thre anyother solution to this ?
> tks & rdgs
> maxzsim wrote:
>>Hi All ,
>>Is it possible to restore just a single table from a particulare db's backup ?
>>kindly advise
>>tks & rdgs
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200605/1|||Alternatively you could restore the entire database to a database of another
name then use TABLEDIFF
(http://www.replicationanswers.com/TableDiff2005.asp) or Redgate's
Datacompare to create the synchronization script.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)|||tks ppl . basically i want to backup/restore certain important table fast as
the whole db is quite huge
Paul Ibison wrote:
>Alternatively you could restore the entire database to a database of another
>name then use TABLEDIFF
>(http://www.replicationanswers.com/TableDiff2005.asp) or Redgate's
>Datacompare to create the synchronization script.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200605/1

Tuesday, March 20, 2012

Restore Rows from Table

Is it possible to restore certain Rows from a backup to a specific Table?
Also, is there a log to determine which Rows where deleted when?
TIA,
--
Brandon Moser
Marketing & Systems
Spence, Driscoll & Company, Inc.
bmoser@.(nospam)spencedriscoll.com> Is it possible to restore certain Rows from a backup to a specific Table?
No. You can't even restore an entire table on its own, unless you have
performed individual filegroup backups and the table lives on the filegroup
by itself. You could restore the backup to another instance, then copy out
the rows you want.

> Also, is there a log to determine which Rows where deleted when?
http://www.aspfaq.com/2449
http://www.aspfaq.com/
(Reverse address to reply.)

Restore Rows from Table

Is it possible to restore certain Rows from a backup to a specific Table?
Also, is there a log to determine which Rows where deleted when?
TIA,
Brandon Moser
Marketing & Systems
Spence, Driscoll & Company, Inc.
bmoser@.(nospam)spencedriscoll.com
> Is it possible to restore certain Rows from a backup to a specific Table?
No. You can't even restore an entire table on its own, unless you have
performed individual filegroup backups and the table lives on the filegroup
by itself. You could restore the backup to another instance, then copy out
the rows you want.

> Also, is there a log to determine which Rows where deleted when?
http://www.aspfaq.com/2449
http://www.aspfaq.com/
(Reverse address to reply.)
|||> Is it possible to restore certain Rows from a backup to a specific Table?
No. You can't even restore an entire table on its own, unless you have
performed individual filegroup backups and the table lives on the filegroup
by itself. You could restore the backup to another instance, then copy out
the rows you want.

> Also, is there a log to determine which Rows where deleted when?
http://www.aspfaq.com/2449
http://www.aspfaq.com/
(Reverse address to reply.)

Restore Rows from Table

Is it possible to restore certain Rows from a backup to a specific Table?
Also, is there a log to determine which Rows where deleted when?
TIA,
--
Brandon Moser
Marketing & Systems
Spence, Driscoll & Company, Inc.
bmoser@.(nospam)spencedriscoll.com>Is it possible to restore certain Rows from a backup to a
specific Table?
Not unless you have done filegroup backups. You could
restore the whole db to another name, then extract the
data you need.
>Also, is there a log to determine which Rows where
deleted when?
>
The only thing Ive heard of is Log Explorer from Lumigent.
>--Original Message--
>Is it possible to restore certain Rows from a backup to a
specific Table?
>Also, is there a log to determine which Rows where
deleted when?
>TIA,
>--
>Brandon Moser
>Marketing & Systems
>Spence, Driscoll & Company, Inc.
>bmoser@.(nospam)spencedriscoll.com
>
>.
>|||> Is it possible to restore certain Rows from a backup to a specific Table?
No. You can't even restore an entire table on its own, unless you have
performed individual filegroup backups and the table lives on the filegroup
by itself. You could restore the backup to another instance, then copy out
the rows you want.
> Also, is there a log to determine which Rows where deleted when?
http://www.aspfaq.com/2449
--
http://www.aspfaq.com/
(Reverse address to reply.)

Monday, March 12, 2012

Restore problem

When I try to restore a SQL 2005 database full backup from tape I get ;
"Cannot find table 0".
Restoring from disk works fine.
Have you tried the restore using a RESTORE DATABASE statement instead of the
SSMS GUI?
Hope this helps.
Dan Guzman
SQL Server MVP
"spp" <spp@.nospam.nospam> wrote in message
news:eicmqZSBGHA.208@.tk2msftngp13.phx.gbl...
> When I try to restore a SQL 2005 database full backup from tape I get ;
> "Cannot find table 0".
> Restoring from disk works fine.
>

Restore problem

When I try to restore a SQL 2005 database full backup from tape I get ;
"Cannot find table 0".
Restoring from disk works fine.Have you tried the restore using a RESTORE DATABASE statement instead of the
SSMS GUI?
--
Hope this helps.
Dan Guzman
SQL Server MVP
"spp" <spp@.nospam.nospam> wrote in message
news:eicmqZSBGHA.208@.tk2msftngp13.phx.gbl...
> When I try to restore a SQL 2005 database full backup from tape I get ;
> "Cannot find table 0".
> Restoring from disk works fine.
>

Friday, March 9, 2012

Restore problem

When I try to restore a SQL 2005 database full backup from tape I get ;
"Cannot find table 0".
Restoring from disk works fine.Have you tried the restore using a RESTORE DATABASE statement instead of the
SSMS GUI?
Hope this helps.
Dan Guzman
SQL Server MVP
"spp" <spp@.nospam.nospam> wrote in message
news:eicmqZSBGHA.208@.tk2msftngp13.phx.gbl...
> When I try to restore a SQL 2005 database full backup from tape I get ;
> "Cannot find table 0".
> Restoring from disk works fine.
>

Wednesday, March 7, 2012

Restore objects from backup.

Hi experts,

Is there any way to restore the table structure or stored procedures alone from a database backup ?

Thanks & Regards,

DBLearner

There are no direct ways to that. Anyway, you could restore database with another name on the server and copy whatever you want from it.
|||When restoring a SQL Server backup you have to restore all the data. After restoring you can trucnate the tables which will give you the schema and procedures only.|||

No there is no way to restore a table structure from a database backup without restoring the entire database.

regarDs,

Jacx

Saturday, February 25, 2012

Restore Messed Up Table Names

Using SQL Server 2000 and moving to a new computer. We did a full backup of
the existing database to tape, brought up the new computer with a clean
install using the same server name and IP address, and did a full restore.
Not only were some permissions messed up, but Crystal Reports 10 and some
Access Data Projects refused to run. I finally discovered while running an
SP_WHO that the individual database names that we'd created (meaning not
'master' and the other standard tables) had several dozen blanks appended
onto the end of them. Looking at dbnames in the SP_WHO made it clear that
this had happened, and once I knew what I was looking for it was apparent in
Enterprise Manager as well when I'd select a database name in the left pane.
Interestingly, VB6 applications have no trouble connecting to these tables
without modification of the connection string. Every single CR10 report so
far has had to have it's tables relinked, and this has broken some other
code that looks at dbnames.

1: How could something like this happen?

2: How is it best fixed?

Thanks!
DavidDavid C. Barber (david@.NOSPAMdbarber.com) writes:

Quote:

Originally Posted by

Using SQL Server 2000 and moving to a new computer. We did a full
backup of the existing database to tape, brought up the new computer
with a clean install using the same server name and IP address, and did
a full restore. Not only were some permissions messed up, but Crystal
Reports 10 and some Access Data Projects refused to run. I finally
discovered while running an SP_WHO that the individual database names
that we'd created (meaning not 'master' and the other standard tables)
had several dozen blanks appended onto the end of them. Looking at
dbnames in the SP_WHO made it clear that this had happened, and once I
knew what I was looking for it was apparent in Enterprise Manager as
well when I'd select a database name in the left pane. Interestingly,
VB6 applications have no trouble connecting to these tables without
modification of the connection string. Every single CR10 report so far
has had to have it's tables relinked, and this has broken some other
code that looks at dbnames.
>
1: How could something like this happen?
>
2: How is it best fixed?


I'm a little confused. You first say "existing database" in singular,
and then you say "individual database names" in plural. Your subject
talks about messed up table names, but table names do not display in
sp_who. Then again, you call master a table.

I'm sorry if I'm picky, but if I don't understand what you mean, it's
difficult to answer. But I try to address it as good as I can:

1) If the database are messed up, this is probably because you added
the spaces when you restored the databases on the new server. The
database names are not carried over from the old server. Or did you
copy master too?

2) If the table names have been altered this would be very strange.
I would even say that it is impossible.

3) What typically does gets messed up when you move databases like this
is the mapping between server logins and database users. This can easily
be examined with sp_helpuser. If you have a random mapping, then you
have this problem. The stored procedure sp_changes_users_login can
be used to address this.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||"Erland Sommarskog" <esquel@.sommarskog.sewrote in message
news:Xns9832738788829Yazorman@.127.0.0.1...

Quote:

Originally Posted by

David C. Barber (david@.NOSPAMdbarber.com) writes:

Quote:

Originally Posted by

Using SQL Server 2000 and moving to a new computer. We did a full
backup of the existing database to tape, brought up the new computer
with a clean install using the same server name and IP address, and did
a full restore. Not only were some permissions messed up, but Crystal
Reports 10 and some Access Data Projects refused to run. I finally
discovered while running an SP_WHO that the individual database names
that we'd created (meaning not 'master' and the other standard tables)
had several dozen blanks appended onto the end of them. Looking at
dbnames in the SP_WHO made it clear that this had happened, and once I
knew what I was looking for it was apparent in Enterprise Manager as
well when I'd select a database name in the left pane. Interestingly,
VB6 applications have no trouble connecting to these tables without
modification of the connection string. Every single CR10 report so far
has had to have it's tables relinked, and this has broken some other
code that looks at dbnames.

1: How could something like this happen?

2: How is it best fixed?


>
I'm a little confused. You first say "existing database" in singular,
and then you say "individual database names" in plural. Your subject
talks about messed up table names, but table names do not display in
sp_who. Then again, you call master a table.
>
I'm sorry if I'm picky, but if I don't understand what you mean, it's
difficult to answer. But I try to address it as good as I can:
>
1) If the database are messed up, this is probably because you added
the spaces when you restored the databases on the new server. The
database names are not carried over from the old server. Or did you
copy master too?
>
2) If the table names have been altered this would be very strange.
I would even say that it is impossible.
>
3) What typically does gets messed up when you move databases like this
is the mapping between server logins and database users. This can easily
be examined with sp_helpuser. If you have a random mapping, then you
have this problem. The stored procedure sp_changes_users_login can
be used to address this.


Sorry that I wasn't more clear before. Comes of being in too much of a
hurry.

We were upgrading the server hardware for our SQL Server 2000.

We backed up the entire existing server as a full backup.

We installed the new hardware and software, named the new server to be
identical to the old server which was taken off-line entirely.

We used the same IP address with the new server box.

We did a full restore of the backed up server databases.

The resulting individual databases, except for the standard ones like master
that are created by SQL Server itself all restored with several dozen blanks
appended to the end of the existing database name, which appears to break
Crystal Reports 10, Access Data Projects, and some VB6 code, although not
the basic connection to the database using VB6.

We don't know why this happened, nor the best way(s) to fix it.

David|||David C. Barber (david@.NOSPAMdbarber.com) writes:

Quote:

Originally Posted by

We were upgrading the server hardware for our SQL Server 2000.
>
We backed up the entire existing server as a full backup.


So you backed all files on the server with Windows backup, and you did not
backup the individual databases through SQL Servers own BACKUP command?

Did you stop SQL Server prior to starting this backup?

Quote:

Originally Posted by

The resulting individual databases, except for the standard ones like
master that are created by SQL Server itself all restored with several
dozen blanks appended to the end of the existing database name, which
appears to break Crystal Reports 10, Access Data Projects, and some VB6
code, although not the basic connection to the database using VB6.


Could you post the output of this query:

SELECT len(name), datalength(name)/2, name
FROM master..sysdatabases
ORDER BY name

Is the old hardware available, so you can start it, and run the same
query there?

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx