473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

vb prototype

Can anyone please help me to build the VB code connect to a SQL 2000 server?
If you can give me a prototype, that will be very helpful? Thanks.
Nov 20 '05 #1
8 1576
have a look here
http://msdn.microsoft.com/library/de...ml/daab-rm.asp

hope it helps

eric

"Eric Clapton" <no*****@bk.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks.

Nov 20 '05 #2
Add a reference to the MS ActiveX data object 7 and the MS Data Binding
Collection. Then paste this code behind a button:

Dim oConn As New ADODB.Connection

oConn.Provider = "sqloledb"
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Network Library=DBMSSOCN;" & _
"Data Source=;" & _
"Initial Catalog=;"
Neil

"Eric Clapton" <no*****@bk.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks.

Nov 20 '05 #3
Hi

http://www.connectionstrings.com/index.asp

Kind Regards
Jorge
-----Original Message-----
Can anyone please help me to build the VB code connect to a SQL 2000 server?If you can give me a prototype, that will be very helpful? Thanks.

.

Nov 20 '05 #4
* "Eric Clapton" <no*****@bk.com> scripsit:
Can anyone please help me to build the VB code connect to a SQL 2000 server?
If you can give me a prototype, that will be very helpful? Thanks.


<http://www.connectionstrings.com/>

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #5
Cor
And now the rest Herfried,
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks.


The least there is needed is
dim conn as SqlClient.SqlConnection = ("the connection string you get from
the link from Herfried).

:-))

Cor
Nov 20 '05 #6

"Eric Clapton" <no*****@bk.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks.


Please decide which version of VB you want to use (VB6 or previous vs.
VB.NET) and then refrain from crossposting to inappropriate groups. The
*.vb.* groups are for VB6 and earlier; the *.dotnet.* groups are for (what
else?) .NET.
Nov 20 '05 #7
are you still playing guitar?

"Eric Clapton" <no*****@bk.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks.

Nov 20 '05 #8
Cor,

* "Cor" <no*@non.com> scripsit:
Can anyone please help me to build the VB code connect to a SQL
2000 server?
If you can give me a prototype, that will be very helpful? Thanks.


The least there is needed is
dim conn as SqlClient.SqlConnection = ("the connection string you get from
the link from Herfried).


LOL... I am sure the OP has a brain too ;-).

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Elf M. Sternberg | last post by:
One of the complaints about prototype.js (google for it if you're not familiar with it) is that it's poorly documented. I have this inkling that the key to understanding prototype.js is in the...
8
by: Robert | last post by:
Hi, I can use "with" like this: function MyObject(message) { this.message = message; } function _MyObject_speak() {
2
by: stephane | last post by:
Hi all, What I am trying to achieve is an 'inherits' method similar to Douglas Crockford's (http://www.crockford.com/javascript/inheritance.html) but that can enable access to the superclass'...
4
by: lkrubner | last post by:
I'm reading an essay, I think one of Crockford's, and it has this example in it: function Demo() { } Demo.prototype = new Ancestor(); Demo.prototype.foo = function () { } ; Does Ancestor now...
21
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am...
13
by: eman1000 | last post by:
I was recently looking at the prototype library (http://prototype.conio.net/) and I noticed the author used the following syntax: Object.extend(MyObj.prototype, { my_meth1: function(){},...
6
by: mmcloughlin | last post by:
I'm learning about objects and am trying to figure out how basic inheritance works. I've got into the habit of explicitly setting the prototype object with an object literal as it seems to make the...
5
by: Daz | last post by:
Hi everyone. My query is very straight forward (I think). What's the difference between someFunc.blah = function(){ ; } and
6
by: burningodzilla | last post by:
Hi all - I'm preparing to dive in to more complex application development using javascript, and among other things, I'm having a hard time wrapping my head around an issues regarding "inheritance"...
3
by: jacobstr | last post by:
I've noticed Object.extend used in a few different ways and I'm having trouble distinguishing why certain usages apply to a given situation. On line 804 Ajax.Base is defined as follows: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.