all groups > vb.net upgrade > november 2003 >
You're in the

vb.net upgrade

group:

VB.Net 2003 Standard edition limitations


VB.Net 2003 Standard edition limitations TW Scannell
11/2/2003 7:59:27 PM
vb.net upgrade:
I bought the standard version in July or so and finaly got around to playing
with it. The webpage says it will talk to SQL Server, but it won't. MS sems
to have blocked that out. I bought it to learn how to use VB.net and most of
my work envolves SQL server. Is there some registry value I could tweek to
fix this? I did notice I can link an Access db table to SQL and connect ot
the Access DB, which effectively passes me through, But I need to play with
stored Procs.

Thanks in advance
twscannell@hotmail.com

Re: VB.Net 2003 Standard edition limitations Jay B. Harlow [MVP - Outlook]
11/3/2003 1:31:12 AM
TW,
What specifically is the error that you are getting that you seem to think
it will not talk to SQL Server?

Is the error in the IDE?

Is the error in the compiling of the code you entered?

Or is the error in the execution of the code that was compiled?

Of course I am presuming that you actually have an SQL Server that you are
able to talk to with other tools.

Hope this helps
Jay

[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations TW Scannell
11/3/2003 6:00:37 AM
Thanks for responding,
This is a definitely a limitation of the Standard edition, At least the one
I have.
I am using the Server Explorer. I create a new connection object to a SQL
7.0 database that I have used extensively with VB6.0. I test the connection
and it connects fine. In the wizard, when I say "OK" to the create
connection, I get a message from "Server Explorer" that says:
"Unable to Connect to database:
It is only possible to connect to SQL Server Desktop engine databases or
Microsoft Access databases with this version of Visual Studio"
If you go to Amazon.com's page for VB.NET standard Edition and read the
reviews, you will see that other people have run into the same limitations.
Maybe I have an older version. There used to be a page on the MS website
that listed the different features of Standard vs Professional versions. I
can't find that now, so maybe there is a newer version of VB.net that
doesn't have these limits. I bought this in July. The version for the
"Development Environment" is 7.1.3088. the Framework is 1.1.4332

Thanks Again

[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations TW Scannell
11/3/2003 6:04:27 AM
So what youare saying is I can connect to a SQL server if I don't use the
Server Explorer? That works for me in it is exactly what I want to do. I
will give it a try and let you know.

Thanks
TW Scannell

[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations TW Scannell
11/3/2003 6:17:02 AM
Could you please give me the "ConnectionString" format for the login and
password data pairs?
login=duffus? User="duffus"? Username="duffus"?
pwd=chopper? Password="Chopper"?

Thanks again


[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations TW Scannell
11/3/2003 8:21:10 AM
Thanks to VB.net, I am unemployed. Now I am supposed to spend 2 weeks
unemployment checks to buy the product that outdated me. Life is full of
parodies and Microsoft is getting rich from many of them.

Thanks for the help.

TW


[quoted text, click to view]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemDataSqlClientSqlConnectionClassTopic.asp
[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations Jay B. Harlow [MVP - Outlook]
11/3/2003 9:09:47 AM
TW,
[quoted text, click to view]
to a SQL
Correct, Server Explorer in VB.NET Standard edition is limited!

However you can still use the System.Data.SqlClient.SqlConnection class to
connect to an SQL Server, as it is part of the Framework itself.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlConnectionClassTopic.asp

The 'fix' for Server Explorer is to upgrade to VB.NET Professional or
Enterprise Editions, or simply do not use the Server Explorer. I would
recommend upgrading to one of the Enterprise versions.

Hope this helps
Jay

[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations TW Scannell
11/3/2003 9:57:22 AM
I finally got it to work by creating the connection in code. Thanks to all.

The trick seems to be the addition of the data pair
"Trusted_Connection=False"

All of the samples that I looked at were using a trusted connection, which
is apparently the default. Even though I included the User Id and Password
data pairs, they were apparently ignored until I added the
"Trusted_Connection=False" pair.

Here is the connection string that finally worked:

Dim ConnectionString As String = "Server=""ServerName"";workstation
id=""QUAIL-SPRINGS"";packet size=4096;integrated security=SSPI;data
source=""ServerName\DataBaseName"";persist security info=False;initial
catalog=pubs;Trusted_Connection=False;User
ID=""SomeUserName"";Password=""drumstix"""

Thanks again.

TW


[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations Jay B. Harlow [MVP - Outlook]
11/3/2003 10:45:08 AM
TW,
As I stated: you can use the SqlConnection object from Code with VB.NET
Standard. I even gave you a link with an example.

Hope this helps
Jay

[quoted text, click to view]

Re: VB.Net 2003 Standard edition limitations hirf-spam-me-here NO[at]SPAM gmx.at
11/3/2003 12:32:16 PM
* "TW Scannell" <twscannell@hotmail.com> scripsit:
[quoted text, click to view]

There should be no limitation if you create connection/... objects in
the code. Are you using the "Server Explorer" to create the connection?
Which error message do you get?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
Re: VB.Net 2003 Standard edition limitations hirf-spam-me-here NO[at]SPAM gmx.at
11/3/2003 3:22:09 PM
* "TW Scannell" <twscannell@hotmail.com> scripsit:
[quoted text, click to view]

You will have to create the connection object in the source code.
Information on connection strings for SQL Server:

<http://www.connectionstrings.com/>
-> "SQL Server"

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

AddThis Social Bookmark Button