Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

VC6 program can't find VS2005 SQLServer

 
   Database Forums (Home) -> MSDE RSS
Next:  Sliding portals  
Author Message
Kenneth Porter

External


Since: Apr 17, 2004
Posts: 18



(Msg. 1) Posted: Fri Jan 11, 2008 2:22 pm
Post subject: VC6 program can't find VS2005 SQLServer
Archived from groups: microsoft>public>sqlserver>msde (more info?)

I'm working with a customer app implemented with VC6 that opens a
connection to a local SQLServer instance, possibly starting the server if
necessary.

I've got both VC6 an Visual Studio 2005 loaded on my machine, so I have the
updated SQLServer. The customer app fails to connect, reporting:

"Start failed. Microsoft SQL-DMO returned error 1060: [SQL-DMO]Service
Control Error: The specified service does not exist as an installed
service."

What do I need to do to get the older app to connect to the newer database
server?

 >> Stay informed about: VC6 program can't find VS2005 SQLServer 
Back to top
Login to vote
Andrea Montanari

External


Since: Sep 13, 2003
Posts: 851



(Msg. 2) Posted: Sat Jan 12, 2008 6:06 am
Post subject: Re: VC6 program can't find VS2005 SQLServer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi,
Kenneth Porter wrote:
> I'm working with a customer app implemented with VC6 that opens a
> connection to a local SQLServer instance, possibly starting the
> server if necessary.
>
> I've got both VC6 an Visual Studio 2005 loaded on my machine, so I
> have the updated SQLServer. The customer app fails to connect,
> reporting:
>
> "Start failed. Microsoft SQL-DMO returned error 1060: [SQL-DMO]Service
> Control Error: The specified service does not exist as an installed
> service."
>
> What do I need to do to get the older app to connect to the newer
> database server?

actually this is not a "good" design as manipulating services state requires
privileged permissions (starting/stopping/..)
anyway, the very first obvious check is the connection string... is the
provided instance name correct? Smile
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply

 >> Stay informed about: VC6 program can't find VS2005 SQLServer 
Back to top
Login to vote
Kenneth Porter

External


Since: Apr 17, 2004
Posts: 18



(Msg. 3) Posted: Thu Jan 17, 2008 9:20 pm
Post subject: Re: VC6 program can't find VS2005 SQLServer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andrea Montanari" wrote in


> actually this is not a "good" design as manipulating services state
> requires privileged permissions (starting/stopping/..)

It's an embedded system on dedicated hardware inside industrial equipment.
It "owns" the machine.

> anyway, the very first obvious check is the connection string... is
> the provided instance name correct? Smile

Ok, I think I found where that gets set up.

Is there a utility within VS2005 that lets me inspect the bundled server to
verify that it has the desired initial DB and user? (I'm used to phpMyAdmin
for admin'ing web DB's.)
 >> Stay informed about: VC6 program can't find VS2005 SQLServer 
Back to top
Login to vote
Andrea Montanari

External


Since: Sep 13, 2003
Posts: 851



(Msg. 4) Posted: Fri Jan 18, 2008 12:00 pm
Post subject: Re: VC6 program can't find VS2005 SQLServer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi Kenneth,
Kenneth Porter wrote:
>
>> anyway, the very first obvious check is the connection string... is
>> the provided instance name correct? Smile
>
> Ok, I think I found where that gets set up.
>
> Is there a utility within VS2005 that lets me inspect the bundled
> server to verify that it has the desired initial DB and user? (I'm
> used to phpMyAdmin for admin'ing web DB's.)

you can have a look at SMO object model, a managed component for .Net, which
lets you perform administrative tasks with SQL Server.. you can list
available SQL Server instances and manage them, if required.. for database
listing, you just can query sys.databases catalog view to see if your
desired one(s) is/are there..
regards
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply
 >> Stay informed about: VC6 program can't find VS2005 SQLServer 
Back to top
Login to vote
Kenneth Porter

External


Since: Apr 17, 2004
Posts: 18



(Msg. 5) Posted: Sat Jan 19, 2008 3:26 pm
Post subject: Re: VC6 program can't find VS2005 SQLServer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andrea Montanari" wrote in


>> Is there a utility within VS2005 that lets me inspect the bundled
>> server to verify that it has the desired initial DB and user? (I'm
>> used to phpMyAdmin for admin'ing web DB's.)
>
> you can have a look at SMO object model, a managed component for .Net,
> which lets you perform administrative tasks with SQL Server.. you can
> list available SQL Server instances and manage them, if required.. for
> database listing, you just can query sys.databases catalog view to see
> if your desired one(s) is/are there..

I also found Management Studio Express Edition and Web Data Administrator.
Now I need to figure out how to get those talking to the server instance I
can see running with the Services snap-in. The web one wouldn't connect
with either the sa account or the local machine's administrator account, so
I'm hoping MSEE will do it. Otherwise I'll try uninstalling and
reinstalling SQL Server.
 >> Stay informed about: VC6 program can't find VS2005 SQLServer 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Advanced express vs2005 deployment question - I have a vs2005 deployment project and have set prerequisites to include sql express. This is not what I need however since I need the advanced version with full text search. How can I make sure that the advanced version of sql express is installed when...

MSDE and SQLServer Express 2005 together - Hi! For a long time I have had MSDE installed in my laptop and since I installed VS2005, I also have SQLExpress 2005. Is it necessary to have both engines? Could I uninstall one of them? Which one is best to keep? Thank you. Xavier -- Xavier Bone...

SQLServer Express 2005 licensing - Please explain me how much of concurent connections can handle SQLServer Express 2005 according license agreement. Thank you. Dmitry

SQLDMO SQLServer.Databases - Hi, I am using the SQLDMO SQLServer.Databases.Item("db name") to access a database on a server in our company network. It takes over 2 minutes to get a response (too slow !!!); the server is a MSDE, and contains 20 databases in one instance. ...

newsgroup sqlserver.msde , but no sqlserver.sqlexpress? - Am I looking in the wrong newsgroups, there is msde newsgroup, but I cannot find a sqlexpress . Should I post questions about sqlexpress in the msde group or where? -- Jan D''Hondt <Toto, I''ve got a feeling we''re not in Kansas anymore.> SQL...
   Database Forums (Home) -> MSDE All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]