Groups | Blog | Home
all groups > sql server (alternate) > july 2004 >

sql server (alternate) : New db cant be found



funkdm1 NO[at]SPAM yahoo.com
7/13/2004 6:07:36 AM
We have a brand new sql 2k server. Its all up to date on service packs
(both win2k and SQL).

I went in to enterprise manager and added a new db. I can run sprocs
and raw sql against the new db just fine from Query Analyzer.

When I try to make a dts package that refers to my new db I get the
following error:

Error desription: deferred prepare could not be completed.
Could not locate entry in sysdatabases for database 'mydbname'. No
entry found with that name. Make sure that the name is entered
correctly.

OK, so I look in sysdatabases and see 'mydbname'. Just in case im an
idiot... I actually copied the db name from that table and paste it in
my dts window.

My dts package is using an "execute SQL task" to call a stored proc.

To be ecxact:
USE mydbname
GO
EXEC MyProc

When I click on the parse button, is when I get that error message.

I have deleted the db, restarted the server, and recreated the db with
a slightly different name. I can replace mydbname with pubs or
northwind and all is ok. It just doesnt like new db's.

Any help would be greatly appreciated.

Thanks,
John Bell
7/14/2004 11:08:25 AM
Hi

I am not sure why you need the USE statement if the associated connection is
already setting this as the database.

John

[quoted text, click to view]

AddThis Social Bookmark Button