Showing posts with label folder. Show all posts
Showing posts with label folder. Show all posts

Monday, March 19, 2012

Cannot Open / Create SQL Express Databases (.mdf files) in Visual Studio 2005 Professional

Hi, I am trying to open or create a sqlexpress database within Visual Studio 2005 Professional in the App_Data folder. If I attempt either method, I get the following dialog box:

Required Components Missing

Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL: http://go.microsoft.com/fwlink/?LinkID=49251

The link above just takes you to the download page for Sql Server Express 2005.

I have both SQL Server 2005 Developer and SQL Server 2005 Expression instances running. The existing database will work properly in my web application, however I cannot access it through Visual Studio.

As background, I did have a problem connecting to the database via the web application, receiving a "Failed to generate a User Instance of SQL Server" error. But I was able to fix that by renaming my SQLEXPRESS folder in C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data. When the web page ran, it created another SQLEXPRESS folder.

However, I cannot figure out why I am having the other issue.

Thanks in advance

Patrick


Hi,

This error means that you are not pointing to the correct instance.

Right click the mdf database > Modify Connection > Advanced > Data Source string.

Check this string and see if it points to the correct instance

HTH,
Suprotim Agarwal

--
http://www.dotnetcurry.com
--

Sunday, February 19, 2012

Cannot get write permissions to a folder

I have a server ser1 which has the sql server running under the
security context of the local admin.Whn i try to copy the backup files
from this server to a network share it acnnot access the share unless
the sever has all authenticated user write permisssions.On setting the
auditing on we found that ser1$ uis the account which is trying to
write to the share.My question is as follows:- what is the difference
between the domaonname\ser1 and domainname\ser1$ account.I cannot see
this ser1$ account in the domain so I caaanot give it permissions.Is
there a way I could get to this account and give it permissions to
tighter up the security?
Thanks in anticipation.
AjayI'm not a network adminstrator, but I tried the same thing before and it
doesn't work. If you want SQL to have access to network resources it has to
run under a domain account. Then you can grant permissions to that account
on the network share you are trying to access. You will either need to setup
sql server to run under a domain account or have sql server write the backup
locally and schedule a job that can run with domain credentials to copy the
backup to the network share.
Mark
"Ag" <ajaygarg1962@.gmail.com> wrote in message
news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
>I have a server ser1 which has the sql server running under the
> security context of the local admin.Whn i try to copy the backup files
> from this server to a network share it acnnot access the share unless
> the sever has all authenticated user write permisssions.On setting the
> auditing on we found that ser1$ uis the account which is trying to
> write to the share.My question is as follows:- what is the difference
> between the domaonname\ser1 and domainname\ser1$ account.I cannot see
> this ser1$ account in the domain so I caaanot give it permissions.Is
> there a way I could get to this account and give it permissions to
> tighter up the security?
> Thanks in anticipation.
>
> Ajay
>|||Mark Miller wrote:
> I'm not a network adminstrator, but I tried the same thing before and it
> doesn't work. If you want SQL to have access to network resources it has to
> run under a domain account. Then you can grant permissions to that account
> on the network share you are trying to access. You will either need to setup
> sql server to run under a domain account or have sql server write the backup
> locally and schedule a job that can run with domain credentials to copy the
> backup to the network share.
> Mark
> "Ag" <ajaygarg1962@.gmail.com> wrote in message
> news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
> >I have a server ser1 which has the sql server running under the
> > security context of the local admin.Whn i try to copy the backup files
> > from this server to a network share it acnnot access the share unless
> > the sever has all authenticated user write permisssions.On setting the
> > auditing on we found that ser1$ uis the account which is trying to
> > write to the share.My question is as follows:- what is the difference
> > between the domaonname\ser1 and domainname\ser1$ account.I cannot see
> > this ser1$ account in the domain so I caaanot give it permissions.Is
> > there a way I could get to this account and give it permissions to
> > tighter up the security?
> >
> > Thanks in anticipation.
> >
> >
> > Ajay
Thanks Mark for the response:-
Here is what I notices and I was able to resolve the issue:-
ser1$ is the computername account which is trying to acces a directory
whenever the sql server uses a local admin account.We can resolve this
in three ways:-
1.Give the network share permissions for the the
domainname/computername account in this case domainname/compuetname$ .
2.Change sql servr to use a domain account means chaning the apps to
use the domain acocunt a non starteer in my enviormment as the apps are
owned by the vendors.
3.Use a proxy account for the sql server agent so that even if sql runs
on a local admin account the proxy account would enable the agent to
use a doain account.
Thanks for your response.
Ajay
> >|||Ag wrote:
> Mark Miller wrote:
>> I'm not a network adminstrator, but I tried the same thing before and it
>> doesn't work. If you want SQL to have access to network resources it has to
>> run under a domain account. Then you can grant permissions to that account
>> on the network share you are trying to access. You will either need to setup
>> sql server to run under a domain account or have sql server write the backup
>> locally and schedule a job that can run with domain credentials to copy the
>> backup to the network share.
>> Mark
>> "Ag" <ajaygarg1962@.gmail.com> wrote in message
>> news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
>> I have a server ser1 which has the sql server running under the
>> security context of the local admin.Whn i try to copy the backup files
>> from this server to a network share it acnnot access the share unless
>> the sever has all authenticated user write permisssions.On setting the
>> auditing on we found that ser1$ uis the account which is trying to
>> write to the share.My question is as follows:- what is the difference
>> between the domaonname\ser1 and domainname\ser1$ account.I cannot see
>> this ser1$ account in the domain so I caaanot give it permissions.Is
>> there a way I could get to this account and give it permissions to
>> tighter up the security?
>> Thanks in anticipation.
>>
>> Ajay
> Thanks Mark for the response:-
> Here is what I notices and I was able to resolve the issue:-
> ser1$ is the computername account which is trying to acces a directory
> whenever the sql server uses a local admin account.We can resolve this
> in three ways:-
> 1.Give the network share permissions for the the
> domainname/computername account in this case domainname/compuetname$ .
> 2.Change sql servr to use a domain account means chaning the apps to
> use the domain acocunt a non starteer in my enviormment as the apps are
> owned by the vendors.
This is just plain wrong. Changing the account that the SQL Server and
SQL Agent services run under has absolutely nothing to do with the
logins use by applications to connect to SQL databases. If you want to
access network resources from within SQL, this is how you do it. Change
the MSSQLSERVER and SQLSERVERAGENT services to run as a domain user, and
grant share permissions to that domain user.
> 3.Use a proxy account for the sql server agent so that even if sql runs
> on a local admin account the proxy account would enable the agent to
> use a doain account.
> Thanks for your response.
>
> Ajay
>
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Tracy McKibben wrote:
> Ag wrote:
> > Mark Miller wrote:
> >> I'm not a network adminstrator, but I tried the same thing before and it
> >> doesn't work. If you want SQL to have access to network resources it has to
> >> run under a domain account. Then you can grant permissions to that account
> >> on the network share you are trying to access. You will either need to setup
> >> sql server to run under a domain account or have sql server write the backup
> >> locally and schedule a job that can run with domain credentials to copy the
> >> backup to the network share.
> >>
> >> Mark
> >>
> >> "Ag" <ajaygarg1962@.gmail.com> wrote in message
> >> news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
> >> I have a server ser1 which has the sql server running under the
> >> security context of the local admin.Whn i try to copy the backup files
> >> from this server to a network share it acnnot access the share unless
> >> the sever has all authenticated user write permisssions.On setting the
> >> auditing on we found that ser1$ uis the account which is trying to
> >> write to the share.My question is as follows:- what is the difference
> >> between the domaonname\ser1 and domainname\ser1$ account.I cannot see
> >> this ser1$ account in the domain so I caaanot give it permissions.Is
> >> there a way I could get to this account and give it permissions to
> >> tighter up the security?
> >>
> >> Thanks in anticipation.
> >>
> >>
> >> Ajay
> >
> > Thanks Mark for the response:-
> >
> > Here is what I notices and I was able to resolve the issue:-
> >
> > ser1$ is the computername account which is trying to acces a directory
> > whenever the sql server uses a local admin account.We can resolve this
> > in three ways:-
> >
> > 1.Give the network share permissions for the the
> > domainname/computername account in this case domainname/compuetname$ .
> > 2.Change sql servr to use a domain account means chaning the apps to
> > use the domain acocunt a non starteer in my enviormment as the apps are
> > owned by the vendors.
> This is just plain wrong. Changing the account that the SQL Server and
> SQL Agent services run under has absolutely nothing to do with the
> logins use by applications to connect to SQL databases. If you want to
> access network resources from within SQL, this is how you do it. Change
> the MSSQLSERVER and SQLSERVERAGENT services to run as a domain user, and
> grant share permissions to that domain user.
>
> > 3.Use a proxy account for the sql server agent so that even if sql runs
> > on a local admin account the proxy account would enable the agent to
> > use a doain account.
> >
> > Thanks for your response.
> >
> >
> > Ajay
> >
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
Maybe i did not explain it right:- AT the sql end changing the sql
server to use the domain service accoutn would make the sql server run
on a domain account but the DSn which is configurd to use the local
admin account and use IIS has been configured to use the local admin by
defualt(that is what irt chooses) SO CHANING THE SECURITY CONTEXT OF
THE SQL SERVER SERVICE AND THE SQL AGENT SERICE WOULD MEAN THAT I
CHANGE THE DSN OF ALL THE APPLICATIONS WHICH ARE CONFIGURED TO LOGIN
USING NT ATHENTICATION AND LOCAL ADMIN account on the box.Surprisingly
most apps reside on the same box as the sql server and use the Local
Admin account and are configured to use a dsn /logins odf the local
account on sql server.
This is diiifcult as it entails coordinatig with vendors and so I wold
not wat to go with this option.

Cannot get write permissions to a folder

I have a server ser1 which has the sql server running under the
security context of the local admin.Whn i try to copy the backup files
from this server to a network share it acnnot access the share unless
the sever has all authenticated user write permisssions.On setting the
auditing on we found that ser1$ uis the account which is trying to
write to the share.My question is as follows:- what is the difference
between the domaonname\ser1 and domainname\ser1$ account.I cannot see
this ser1$ account in the domain so I caaanot give it permissions.Is
there a way I could get to this account and give it permissions to
tighter up the security?
Thanks in anticipation.
AjayI'm not a network adminstrator, but I tried the same thing before and it
doesn't work. If you want SQL to have access to network resources it has to
run under a domain account. Then you can grant permissions to that account
on the network share you are trying to access. You will either need to setup
sql server to run under a domain account or have sql server write the backup
locally and schedule a job that can run with domain credentials to copy the
backup to the network share.
Mark
"Ag" <ajaygarg1962@.gmail.com> wrote in message
news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
>I have a server ser1 which has the sql server running under the
> security context of the local admin.Whn i try to copy the backup files
> from this server to a network share it acnnot access the share unless
> the sever has all authenticated user write permisssions.On setting the
> auditing on we found that ser1$ uis the account which is trying to
> write to the share.My question is as follows:- what is the difference
> between the domaonname\ser1 and domainname\ser1$ account.I cannot see
> this ser1$ account in the domain so I caaanot give it permissions.Is
> there a way I could get to this account and give it permissions to
> tighter up the security?
> Thanks in anticipation.
>
> Ajay
>|||Mark Miller wrote:[vbcol=seagreen]
> I'm not a network adminstrator, but I tried the same thing before and it
> doesn't work. If you want SQL to have access to network resources it has t
o
> run under a domain account. Then you can grant permissions to that account
> on the network share you are trying to access. You will either need to set
up
> sql server to run under a domain account or have sql server write the back
up
> locally and schedule a job that can run with domain credentials to copy th
e
> backup to the network share.
> Mark
> "Ag" <ajaygarg1962@.gmail.com> wrote in message
> news:1154617829.443666.306270@.i42g2000cwa.googlegroups.com...
Thanks Mark for the response:-
Here is what I notices and I was able to resolve the issue:-
ser1$ is the computername account which is trying to acces a directory
whenever the sql server uses a local admin account.We can resolve this
in three ways:-
1.Give the network share permissions for the the
domainname/computername account in this case domainname/compuetname$ .
2.Change sql servr to use a domain account means chaning the apps to
use the domain acocunt a non starteer in my enviormment as the apps are
owned by the vendors.
3.Use a proxy account for the sql server agent so that even if sql runs
on a local admin account the proxy account would enable the agent to
use a doain account.
Thanks for your response.
Ajay[vbcol=seagreen]|||Ag wrote:
> Mark Miller wrote:
> Thanks Mark for the response:-
> Here is what I notices and I was able to resolve the issue:-
> ser1$ is the computername account which is trying to acces a directory
> whenever the sql server uses a local admin account.We can resolve this
> in three ways:-
> 1.Give the network share permissions for the the
> domainname/computername account in this case domainname/compuetname$ .
> 2.Change sql servr to use a domain account means chaning the apps to
> use the domain acocunt a non starteer in my enviormment as the apps are
> owned by the vendors.
This is just plain wrong. Changing the account that the SQL Server and
SQL Agent services run under has absolutely nothing to do with the
logins use by applications to connect to SQL databases. If you want to
access network resources from within SQL, this is how you do it. Change
the MSSQLSERVER and SQLSERVERAGENT services to run as a domain user, and
grant share permissions to that domain user.

> 3.Use a proxy account for the sql server agent so that even if sql runs
> on a local admin account the proxy account would enable the agent to
> use a doain account.
> Thanks for your response.
>
> Ajay
>
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Tracy McKibben wrote:
> Ag wrote:
> This is just plain wrong. Changing the account that the SQL Server and
> SQL Agent services run under has absolutely nothing to do with the
> logins use by applications to connect to SQL databases. If you want to
> access network resources from within SQL, this is how you do it. Change
> the MSSQLSERVER and SQLSERVERAGENT services to run as a domain user, and
> grant share permissions to that domain user.
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
Maybe i did not explain it right:- AT the sql end changing the sql
server to use the domain service accoutn would make the sql server run
on a domain account but the DSn which is configurd to use the local
admin account and use IIS has been configured to use the local admin by
defualt(that is what irt chooses) SO CHANING THE SECURITY CONTEXT OF
THE SQL SERVER SERVICE AND THE SQL AGENT SERICE WOULD MEAN THAT I
CHANGE THE DSN OF ALL THE APPLICATIONS WHICH ARE CONFIGURED TO LOGIN
USING NT ATHENTICATION AND LOCAL ADMIN account on the box.Surprisingly
most apps reside on the same box as the sql server and use the Local
Admin account and are configured to use a dsn /logins odf the local
account on sql server.
This is diiifcult as it entails coordinatig with vendors and so I wold
not wat to go with this option.

Sunday, February 12, 2012

cannot find database.mdf under app_Data using sql

Why can I not connect to the database created under app_data folder with sql express and view the tables. I am trying to understand the structure of how it works, I have gone through the My personal web site starter kit's files to try and understand how it writes to the database.Why is the databse not visible in SQL express and why are the databases attached database files and not directly in SQL2005.

I'm not sure I understand what you are asking. My version of the Personal Web Site starter kit came with the mdf in with all the other files. In VWD, I chose Add ASP.NET folder, and created an App_Data folder. I moved the Personal.mdf file into it and double clicked, and voila - it opened in Database Explorer.

If I wanted to examine such a database through Sql Server Management Studio (Express), I would attach the file myself to make it available to SSMSE.

|||

In VWD 2005 express, if you select database explorer you will see the connection to aspnetdb.mdf, which is created by personal starter kit. If you try and expand it to view the tables or store procedures it does not allow you to. Why? If I create a database manually in sql server express, and then create a connection via database explorer I can see all the tables created.

Error(This is the error I get when trying to view aspnetdb.mdf in database explorer

An error has occurred while establishing a connection to the server. When connecting to sql server 2005, this failure may be caused by the fact that under the default settings SQL server does not allow remote connections(Provider:SQL Network interface, error 26 errorlocating server/instance specified.

I also cannot create a .mdf file by adding " add new item SQL database"

Error

(Connection to SQL server files(*.mdf) requires SQL server express 2005 to function properly. Please verify the installation of the component or download from URL http://go.microsoft.com/fwlink/?linkid=49251.

SQL Express was installed at the same time when I installed VWD express 2005. So it is installed. I have aslo installed the SQL server managment studio

What I am ultimately trying to achieve is creating a authentication create user, but I do not want to use the Web administration tool for the reason I want the user to enter his information required and then auto generate a password but using his email address as his username, and then sending it to him via email for activation. I would prefer to customise the my ouwn database as to using aspnetdb.mdf


|||

Problem solved. If you install SQL 2000, and then uninstall and instal sql express 2005 it leaves some or other entries behind, thus it will not allow you to edit or view attached mdf database files it will tell you the instance name or server could not be found. I could not find the exact entry in ht registry so I reinstalled my os and applications and now it works fine.

Friday, February 10, 2012

Cannot find folder "\Maintenance Plans".

I've been looking for treads with a possible similar problem but thus far nothing.

I recently upgraded SQL 2000 (STD ed.) instance to SQL 2005 (STD ed.).

This includes the db's. All their compatibility levels were changed to level 90 (SQL 2005).

Everything seems to be working fine but when trying to migrate a legacy maintenance plan I keep getting the message, "Cannot find folder "\Maintenance Plans"." even though the folder is clearly listed.

Not sure where to start. I have created two virtual images and both have the same problem.

Any help would be greatly appreciated.

RoviWil

I still can't find anyone who had this problem and yet I got it in multiple tests.

I did however manage to use a workaround by means of system sp's.

I used SQL Profiler.

Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.P2',N'@.P1 nvarchar(17),@.P2 uniqueidentifier',N'Maintenance Plans','00000000-0000-0000-0000-000000000000'

Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

|||You for got to mention that you must do these commands from the using the msdb database. Took me 45 minutes to figure it out. I thought thier was a problem with the upgrade of my database so I compared all of the objects in a known good 2005 database to the converted one.

But thanks for the info anyway I would never ever have figured it out without it.|||

Hi,

I'm having the same problem, and I've found your post on several sites, that all lead back to your post as the only fix right now. I saw on connections were it's accepted as a bug, but no resolution yet.

What I need help with, and I know this sound really stupid, but I don't understand how to use Profiler to run a SP. I know how to create one, and how to execute it either from Studio or a query or VB, but I don't understand how to execute one from Profier and apparently you have to do it from there because I've tried creating that as a stored procedure from the MSDB Database, and it throws an error and I still have the same problem.

I can get the lookup to run, and it comes back blank, but the create throws another expection error, now it comes back that I have a duplicate key.

Msg 2627, Level 14, State 1, Procedure sp_dts_addfolder, Line 14

Violation of UNIQUE KEY constraint 'U_sysdtspackagefolders90uniquepath'. Cannot insert duplicate key in object 'dbo.sysdtspackagefolders90'.

The statement has been terminated.

(1 row(s) affected)

Any help would be appreciated.

|||

Hi tropics43!

I just had exactly the same problem as you describe.... obviously the folder with the id '08AA12D5-8F98-4DAB-A4FC-980B150A5DC8' was already in the according msdb table.... check it out:

SELECT * FROM msdb.dbo.sysdtspackagefolders90

you will see that the folderid exists but has (for whatever reason...) the wrong name, not 'Maintenance Plans'. You can repair this by just using this statement:

UPDATE msdb.dbo.sysdtspackagefolders90
SET foldername = 'Maintenance Plans'
WHERE folderid='08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

It worked for me perfectly fine... after that maintenance plans can be created again....

Best regards,
Wolfgang

Cannot find folder "\Maintenance Plans".

I've been looking for treads with a possible similar problem but thus far nothing.

I recently upgraded SQL 2000 (STD ed.) instance to SQL 2005 (STD ed.).

This includes the db's. All their compatibility levels were changed to level 90 (SQL 2005).

Everything seems to be working fine but when trying to migrate a legacy maintenance plan I keep getting the message, "Cannot find folder "\Maintenance Plans"." even though the folder is clearly listed.

Not sure where to start. I have created two virtual images and both have the same problem.

Any help would be greatly appreciated.

RoviWil

I still can't find anyone who had this problem and yet I got it in multiple tests.

I did however manage to use a workaround by means of system sp's.

I used SQL Profiler.

Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.P2',N'@.P1 nvarchar(17),@.P2 uniqueidentifier',N'Maintenance Plans','00000000-0000-0000-0000-000000000000'

Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

|||You for got to mention that you must do these commands from the using the msdb database. Took me 45 minutes to figure it out. I thought thier was a problem with the upgrade of my database so I compared all of the objects in a known good 2005 database to the converted one.

But thanks for the info anyway I would never ever have figured it out without it.|||

Hi,

I'm having the same problem, and I've found your post on several sites, that all lead back to your post as the only fix right now. I saw on connections were it's accepted as a bug, but no resolution yet.

What I need help with, and I know this sound really stupid, but I don't understand how to use Profiler to run a SP. I know how to create one, and how to execute it either from Studio or a query or VB, but I don't understand how to execute one from Profier and apparently you have to do it from there because I've tried creating that as a stored procedure from the MSDB Database, and it throws an error and I still have the same problem.

I can get the lookup to run, and it comes back blank, but the create throws another expection error, now it comes back that I have a duplicate key.

Msg 2627, Level 14, State 1, Procedure sp_dts_addfolder, Line 14

Violation of UNIQUE KEY constraint 'U_sysdtspackagefolders90uniquepath'. Cannot insert duplicate key in object 'dbo.sysdtspackagefolders90'.

The statement has been terminated.

(1 row(s) affected)

Any help would be appreciated.

|||

Hi tropics43!

I just had exactly the same problem as you describe.... obviously the folder with the id '08AA12D5-8F98-4DAB-A4FC-980B150A5DC8' was already in the according msdb table.... check it out:

SELECT * FROM msdb.dbo.sysdtspackagefolders90

you will see that the folderid exists but has (for whatever reason...) the wrong name, not 'Maintenance Plans'. You can repair this by just using this statement:

UPDATE msdb.dbo.sysdtspackagefolders90
SET foldername = 'Maintenance Plans'
WHERE folderid='08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

It worked for me perfectly fine... after that maintenance plans can be created again....

Best regards,
Wolfgang

Cannot find folder "\Maintenance Plans".

I've been looking for treads with a possible similar problem but thus far nothing.

I recently upgraded SQL 2000 (STD ed.) instance to SQL 2005 (STD ed.).

This includes the db's. All their compatibility levels were changed to level 90 (SQL 2005).

Everything seems to be working fine but when trying to migrate a legacy maintenance plan I keep getting the message, "Cannot find folder "\Maintenance Plans"." even though the folder is clearly listed.

Not sure where to start. I have created two virtual images and both have the same problem.

Any help would be greatly appreciated.

RoviWil

I still can't find anyone who had this problem and yet I got it in multiple tests.

I did however manage to use a workaround by means of system sp's.

I used SQL Profiler.

Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.P2',N'@.P1 nvarchar(17),@.P2 uniqueidentifier',N'Maintenance Plans','00000000-0000-0000-0000-000000000000'

Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

|||You for got to mention that you must do these commands from the using the msdb database. Took me 45 minutes to figure it out. I thought thier was a problem with the upgrade of my database so I compared all of the objects in a known good 2005 database to the converted one.

But thanks for the info anyway I would never ever have figured it out without it.|||

Hi,

I'm having the same problem, and I've found your post on several sites, that all lead back to your post as the only fix right now. I saw on connections were it's accepted as a bug, but no resolution yet.

What I need help with, and I know this sound really stupid, but I don't understand how to use Profiler to run a SP. I know how to create one, and how to execute it either from Studio or a query or VB, but I don't understand how to execute one from Profier and apparently you have to do it from there because I've tried creating that as a stored procedure from the MSDB Database, and it throws an error and I still have the same problem.

I can get the lookup to run, and it comes back blank, but the create throws another expection error, now it comes back that I have a duplicate key.

Msg 2627, Level 14, State 1, Procedure sp_dts_addfolder, Line 14

Violation of UNIQUE KEY constraint 'U_sysdtspackagefolders90uniquepath'. Cannot insert duplicate key in object 'dbo.sysdtspackagefolders90'.

The statement has been terminated.

(1 row(s) affected)

Any help would be appreciated.

|||

Hi tropics43!

I just had exactly the same problem as you describe.... obviously the folder with the id '08AA12D5-8F98-4DAB-A4FC-980B150A5DC8' was already in the according msdb table.... check it out:

SELECT * FROM msdb.dbo.sysdtspackagefolders90

you will see that the folderid exists but has (for whatever reason...) the wrong name, not 'Maintenance Plans'. You can repair this by just using this statement:

UPDATE msdb.dbo.sysdtspackagefolders90
SET foldername = 'Maintenance Plans'
WHERE folderid='08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

It worked for me perfectly fine... after that maintenance plans can be created again....

Best regards,
Wolfgang

Cannot find folder "\Maintenance Plans".

I've been looking for treads with a possible similar problem but thus far nothing.

I recently upgraded SQL 2000 (STD ed.) instance to SQL 2005 (STD ed.).

This includes the db's. All their compatibility levels were changed to level 90 (SQL 2005).

Everything seems to be working fine but when trying to migrate a legacy maintenance plan I keep getting the message, "Cannot find folder "\Maintenance Plans"." even though the folder is clearly listed.

Not sure where to start. I have created two virtual images and both have the same problem.

Any help would be greatly appreciated.

RoviWil

I still can't find anyone who had this problem and yet I got it in multiple tests.

I did however manage to use a workaround by means of system sp's.

I used SQL Profiler.

Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.P2',N'@.P1 nvarchar(17),@.P2 uniqueidentifier',N'Maintenance Plans','00000000-0000-0000-0000-000000000000'

Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

|||You for got to mention that you must do these commands from the using the msdb database. Took me 45 minutes to figure it out. I thought thier was a problem with the upgrade of my database so I compared all of the objects in a known good 2005 database to the converted one.

But thanks for the info anyway I would never ever have figured it out without it.

|||

Hi,

I'm having the same problem, and I've found your post on several sites, that all lead back to your post as the only fix right now. I saw on connections were it's accepted as a bug, but no resolution yet.

What I need help with, and I know this sound really stupid, but I don't understand how to use Profiler to run a SP. I know how to create one, and how to execute it either from Studio or a query or VB, but I don't understand how to execute one from Profier and apparently you have to do it from there because I've tried creating that as a stored procedure from the MSDB Database, and it throws an error and I still have the same problem.

I can get the lookup to run, and it comes back blank, but the create throws another expection error, now it comes back that I have a duplicate key.

Msg 2627, Level 14, State 1, Procedure sp_dts_addfolder, Line 14

Violation of UNIQUE KEY constraint 'U_sysdtspackagefolders90uniquepath'. Cannot insert duplicate key in object 'dbo.sysdtspackagefolders90'.

The statement has been terminated.

(1 row(s) affected)

Any help would be appreciated.

|||

Hi tropics43!

I just had exactly the same problem as you describe.... obviously the folder with the id '08AA12D5-8F98-4DAB-A4FC-980B150A5DC8' was already in the according msdb table.... check it out:

SELECT * FROM msdb.dbo.sysdtspackagefolders90

you will see that the folderid exists but has (for whatever reason...) the wrong name, not 'Maintenance Plans'. You can repair this by just using this statement:

UPDATE msdb.dbo.sysdtspackagefolders90
SET foldername = 'Maintenance Plans'
WHERE folderid='08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'

It worked for me perfectly fine... after that maintenance plans can be created again....

Best regards,
Wolfgang

Cannot find folder "\Maintenance Plans".

After upgrading SQL 2000 to SQL 2005
I get this error when trying to create a maintenance plan:
Exception has been thrown by the target of an invocation. (mscorlib)
Cannot find folder "\Maintenance Plans".
I tried unistalling and reinstalling mgmt tools.
Any ideas?
--
PaulI found a solution
use msdb
Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.
P2',N'@.P1
nvarchar(17),@.P2 uniqueidentifier',N'Maintenance
Plans','00000000-0000-0000-0000-000000000000'
Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance
Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'
It worked Thanks everybody anyways
--
Paul
"Paul Zanbaka" wrote:

> After upgrading SQL 2000 to SQL 2005
> I get this error when trying to create a maintenance plan:
> Exception has been thrown by the target of an invocation. (mscorlib)
> Cannot find folder "\Maintenance Plans".
> I tried unistalling and reinstalling mgmt tools.
> Any ideas?
> --
> Paul

Cannot find folder "\Maintenance Plans".

After upgrading SQL 2000 to SQL 2005
I get this error when trying to create a maintenance plan:
Exception has been thrown by the target of an invocation. (mscorlib)
Cannot find folder "\Maintenance Plans".
I tried unistalling and reinstalling mgmt tools.
Any ideas?
--
PaulI found a solution
use msdb
Verify that the folder is missing:
exec sp_executesql N'exec [msdb].[dbo].[sp_dts_getfolder] @.P1, @.P2',N'@.P1
nvarchar(17),@.P2 uniqueidentifier',N'Maintenance
Plans','00000000-0000-0000-0000-000000000000'
Add the folder if missing:
exec sp_dts_addfolder '00000000-0000-0000-0000-000000000000','Maintenance
Plans','08AA12D5-8F98-4DAB-A4FC-980B150A5DC8'
It worked Thanks everybody anyways
--
Paul
"Paul Zanbaka" wrote:
> After upgrading SQL 2000 to SQL 2005
> I get this error when trying to create a maintenance plan:
> Exception has been thrown by the target of an invocation. (mscorlib)
> Cannot find folder "\Maintenance Plans".
> I tried unistalling and reinstalling mgmt tools.
> Any ideas?
> --
> Paul