![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Connections output shows I am connected to SQLEXPRESS at the time in VS |
|
May there be two separate instances are installed on your computer? I suggest you to open SQL Server Configuration Manager and see how many SQL Server instances are installed and you can see what instance of SQL Server is being used by VS from VS's Tools->Options->Database Tools->Data Connections. Your databases that you create may be attached to the instance "X" and the instance that you connect from SSMS may be instance "Y" and because databases can be attached only to one instance, you experience this problem. Note: When you have SSMS installed on your computer, you don't need SSMSE (Express edition of SSMS) because SSMSE is a light version of SSMS which comes with not-for-free SQL Server editions. -- Ekrem Önsoy "EagleRed (AT) HighFlyingBirds (DOT) com" EagleRedHighFlyingBirdscom (AT) disc... microsoft.com> wrote in message news:FEFDB265-5936-473D-B764-D8049639F018 (AT) microsoft (DOT) com... I am writing an application on a Vista machine with SQL Server 2005 Developer Edition installed using VS2005 Team Architect. I also have SQL Express installed. I have a requirement to develop and deploy a Web service that connects to a SQL Express database. Here is the problem. If I create the database in VS2005 using the Membership wizard, I can create the database in the App_Data directory and I can work with it in the Server Explorer. However, I cannot open the files in the Management Studio to perform any administrative functions like creating logons and setting permissions. If I create the DB in Management Studio I cannot work with it in VS2005. In both case I get access denied errors on the files in the alternate environment. Since I have the main Management Studio running on the machine I cannot install the SQL Express Management Studio. How can I resolve this so I can work with the database in VS2005 and in Management Studio? Any pertinent input is greately appreciated. Thanks, Eagle |
#3
| |||
| |||
|
|
In VS2005 I am connected to the SQLExpress instance. I acually have 3 instances of SQL Server on my machine (I am doing some crazy stuff). Currently I can work with the DB in SSMS but not in VS. I actually have other projects, both VS2005 and VS2008, that work with the local instance. When I open those projects I see the databases in the Server explorer and I can work with them even though the ->Options->Database Tools->Data Connections output shows I am connected to SQLEXPRESS at the time in VS Good news, I just created a new connection to the DB using the machine\SQLEXPRESS\DBName reference to the DB and it seems to be working. I will see how it goes and post back one way or another. Thanks very much for the input in any case. HAVE A BLESSED DAY!!!! Thanks, Eagle. "Ekrem Önsoy" wrote: May there be two separate instances are installed on your computer? I suggest you to open SQL Server Configuration Manager and see how many SQL Server instances are installed and you can see what instance of SQL Server is being used by VS from VS's Tools->Options->Database Tools->Data Connections. Your databases that you create may be attached to the instance "X" and the instance that you connect from SSMS may be instance "Y" and because databases can be attached only to one instance, you experience this problem. Note: When you have SSMS installed on your computer, you don't need SSMSE (Express edition of SSMS) because SSMSE is a light version of SSMS which comes with not-for-free SQL Server editions. -- Ekrem Önsoy "EagleRed (AT) HighFlyingBirds (DOT) com" EagleRedHighFlyingBirdscom (AT) disc... microsoft.com> wrote in message news:FEFDB265-5936-473D-B764-D8049639F018 (AT) microsoft (DOT) com... I am writing an application on a Vista machine with SQL Server 2005 Developer Edition installed using VS2005 Team Architect. I also have SQL Express installed. I have a requirement to develop and deploy a Web service that connects to a SQL Express database. Here is the problem. If I create the database in VS2005 using the Membership wizard, I can create the database in the App_Data directory and I can work with it in the Server Explorer. However, I cannot open the files in the Management Studio to perform any administrative functions like creating logons and setting permissions. If I create the DB in Management Studio I cannot work with it in VS2005. In both case I get access denied errors on the files in the alternate environment. Since I have the main Management Studio running on the machine I cannot install the SQL Express Management Studio. How can I resolve this so I can work with the database in VS2005 and in Management Studio? Any pertinent input is greately appreciated. Thanks, Eagle |
#4
| |||
| |||
|
|
I have got things kind of working now. I cannot execute the stored procedures in SSMS. |
|
When I execute stored procs in VS that should return a result set, it is not shown. |
#5
| |||
| |||
|
|
I have got things kind of working now. I cannot execute the stored procedures in SSMS. What does this mean? I just got a similar message from a colleague. "I get an error when I do x." Okay, that's a great start, but help me help you. What on earth is "x" and what is the EXACT error message you get (or a better explanation of what "cannot" means)? When I execute stored procs in VS that should return a result set, it is not shown. I'm confused. Are you trying to execute stored procedures from SSMS or Visual Studio? Why both? |
#6
| |||
| |||
|
|
I set the connection in VS2005 to TIMON\SQLEXPRESS where TIMON is the machine name. I have a connection in the Server explorer on this instance. When I build or publish the Web service I get the following errors: Error 5 Unable to copy file "F:\Projects\US-Christian-Chamber\NET20\USCCCSolution1\USCCCService\App_Data \U SCCCDB.mdf" to "bin\App_Data\USCCCDB.mdf". Access to the path 'F:\Projects\US-Christian-Chamber\NET20\USCCCSolution1\USCCCService\App_Data \U SCCCDB.mdf' is denied. USCCCService |
|
from both VS and SSMS because I am working with the data store in both. I need to be able to perform admin tasks in SSMS, like setting permissions, that I cannot do in VS. I want to debug the sprocs, if needed, that I have to do in VS. In SSMS when I right click on a sproc to get the context menu, the "Execute" option does not appear. |
|
When I do the same on a sproc in a non-SQLExpress connection it does. |
![]() |
| Thread Tools | |
| Display Modes | |
| |