I've tried to enumerate sqlservers using two different methods and have the
same results... only the server name is returned, I am unable to get the
instance name so user will be unable to connect to selected server if it is
a
named instance (i.e. "Server"\SQLEXPRESS)...
Dim dt As DataTable
dt = SmoApplication.EnumAvailableSqlServers(False)
OR
Dim dt As DataTable
Dim instance As Sql.SqlDataSourceEnumerator =
Sql.SqlDataSourceEnumerator.Instance
dt = instance.GetDataSources
However I can go into SQL Server Management Studio, browse for servers and
every instance for every server (local and network) is listed... I assume
(foolishly) that MS Apps utilize thier own sdk's, if so why does it work
there but not for meOK I think I've found the culprit... the "Windows Firewall/Internet
Connection Sharing (ICS)" service
When I stop this service the enumerations return the Instance name and
Version of the SQL Servers... Hooray but what if Users have this service
running during my application installation? I'm suprised this isn't more of
a
known issue... I'm able to duplicate the issue on 2 machines both running XP
sp2 where one has SQL Server Express 2005 then other has SQL Server Express
2005 SP1, same results. Has anyone heard or exprienced this?
> I've tried to enumerate sqlservers using two different methods and have th
e
> same results... only the server name is returned, I am unable to get the
> instance name so user will be unable to connect to selected server if it i
s a
> named instance (i.e. "Server"\SQLEXPRESS)...
> Dim dt As DataTable
> dt = SmoApplication.EnumAvailableSqlServers(False)
> OR
> Dim dt As DataTable
> Dim instance As Sql.SqlDataSourceEnumerator =
> Sql.SqlDataSourceEnumerator.Instance
> dt = instance.GetDataSources
> However I can go into SQL Server Management Studio, browse for servers and
> every instance for every server (local and network) is listed... I assume
> (foolishly) that MS Apps utilize thier own sdk's, if so why does it work
> there but not for me|||On Tue, 13 Jun 2006 14:17:02 -0700, rqcoder
<rqcoder@.discussions.microsoft.com> wrote:
in <EF3759A0-3FE7-4839-B10E-E892752C02AB@.microsoft.com>
>OK I think I've found the culprit... the "Windows Firewall/Internet
>Connection Sharing (ICS)" service
>When I stop this service the enumerations return the Instance name and
>Version of the SQL Servers... Hooray but what if Users have this service
>running during my application installation? I'm suprised this isn't more of
a
>known issue... I'm able to duplicate the issue on 2 machines both running X
P
>sp2 where one has SQL Server Express 2005 then other has SQL Server Express
>2005 SP1, same results. Has anyone heard or exprienced this?
It happens on any machine that's running the firewall. It looks like
the tolerance window for the enumerations is extremely small - less than
a second. If anything hampers that initial query in the slightest then
the instance names don't show up. And I'm describing SQLDMO behavior
using VB6 but the enumerations code is most likely the same or extremely
similar.
What works well for me is Kerio Personal Firewall with specific rules
but that doesn't always wash well in the general user community.
Stefan Berglund
Showing posts with label complete. Show all posts
Showing posts with label complete. Show all posts
Thursday, March 29, 2012
Friday, March 9, 2012
Enterprise Manager licensing question.
Hi,
Complete SQL Server newbie here.
I have one instance of SQL server and Enterprise Manager installed on my
server. Can I install Enterprise manager on two client computers so they
can administer the server from their desktop rather than sitting at the
server?
Thanks for your help,
Andy.Yes, if they have valid client licenses (or the SQL Server is licensed as per processor). As far as
I understand, I should add...
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Andy" <PLEASEREPLY@.THEGROUP.COM> wrote in message news:ejDjaVImDHA.2068@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Complete SQL Server newbie here.
> I have one instance of SQL server and Enterprise Manager installed on my
> server. Can I install Enterprise manager on two client computers so they
> can administer the server from their desktop rather than sitting at the
> server?
> Thanks for your help,
> Andy.
>
Complete SQL Server newbie here.
I have one instance of SQL server and Enterprise Manager installed on my
server. Can I install Enterprise manager on two client computers so they
can administer the server from their desktop rather than sitting at the
server?
Thanks for your help,
Andy.Yes, if they have valid client licenses (or the SQL Server is licensed as per processor). As far as
I understand, I should add...
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Andy" <PLEASEREPLY@.THEGROUP.COM> wrote in message news:ejDjaVImDHA.2068@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Complete SQL Server newbie here.
> I have one instance of SQL server and Enterprise Manager installed on my
> server. Can I install Enterprise manager on two client computers so they
> can administer the server from their desktop rather than sitting at the
> server?
> Thanks for your help,
> Andy.
>
Wednesday, February 15, 2012
Entering a row from a table to a column of other table
Is it possible to enter a complete record into a column say varchar(max) and then be able to retreive the record from the column. I am using sql 2005.
Thanks very much in advance,
you can use a separator for columns and insert it into a table.
insert into tablename (varcharnmaxcolumn)
select col1 +'|' + col2+'|' +col3
from table1
and during retrieval you can split the output as per separator as '|' in this case
Subscribe to:
Posts (Atom)