Re: smo create database object
- From: "RobinS" <RobinS@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 23:52:25 -0800
"Martin" <trobecgeologygroup@xxxxxxx> wrote in message
news:guSvh.827273$1T2.276879@xxxxxxxxxxxx
Yay! Congratulations.
"RobinS" <RobinS@xxxxxxxxxxxxxxx> wrote in message
news:rp6dnVmTnoXyciPYnZ2dnUVZ_uWlnZ2d@xxxxxxxxxxxxxx
"Martin" <trobecgeologygroup@xxxxxxx> wrote in message
news:c0xvh.821965$1T2.115134@xxxxxxxxxxxx
"RobinS" <RobinS@xxxxxxxxxxxxxxx> wrote in message
news:8Jqdna1MkJKhEyDYnZ2dnUVZ_uWlnZ2d@xxxxxxxxxxxxxx
"Martin" <trobecgeologygroup@xxxxxxx> wrote in message
news:WY6vh.824924$R63.66669@xxxxxxxxxxxx
"Stefan Hoffmann" <ste5an@xxxxxxxxx> wrote in message
news:eDG1tIwQHHA.2172@xxxxxxxxxxxxxxxxxxxxxxx
hi Martin,
Martin wrote:
Does anyone know if it is possible to use the smo db.Create()That is correct, you have to enable it first using the Surface tool.
method to create a new sql server database with sql server 2005
express? The debugger complains that remote operations are not
allowed with the default install of sql server express.
mfG
--> stefan <--
Thanks Stefan
I've tried the surface area configuration tool, but the database
engine settings pages states sql server express version can only be
run in local mode. Is there another surface tool I'm not aware of?
I'm only trying to use smo with my databases on my local c disk, so
I'm not sure why smo needs remote connectivity to do this?
Martin
It considers anything outside the database to be a remote connection.
When you run the Surface Area Configuration, and you go into Services
and Connections, and click on your database, does it show a line for
"Remote Connections" ? Set it to accept local and remote connections.
Robin S.
Thank you Robin
Yes it does show a 'remote connections' line but enabling this option
didn't
work. I'll try re-installing the express version and selecting the
'mixed
mode' option to see if that helps.
Cheers, Martin
Isn't there another line under that one that says something about Piped
or TCP/IP connections? I have both enabled.
Good luck.
Robin S.
Thank you Robin
As it turns out, the 'remote connections not allowed' error message was
not the cause of my problem. I spent a day trying every surface area
setting and reinstalling but the problem was actually fixed by correcting
an error in my connection string.
Smo is working fine now with my server in local mode only and I am able
to create database and tables via csharp code.
Cheers, Martin
Robin S.
.
- References:
- smo create database object
- From: Martin
- Re: smo create database object
- From: Stefan Hoffmann
- Re: smo create database object
- From: Martin
- Re: smo create database object
- From: RobinS
- Re: smo create database object
- From: Martin
- Re: smo create database object
- From: RobinS
- Re: smo create database object
- From: Martin
- smo create database object
- Prev by Date: Re: List of KNOWN VS2005/Vista issues.......
- Next by Date: Re: VS2005 NOT Compatiblke with Vista? Are you serious?!
- Previous by thread: Re: smo create database object
- Next by thread: VB.NET, C# Job opening in chennai 2+Years to 4Years Team Lead
- Index(es):
Relevant Pages
|