473,378 Members | 1,522 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,378 software developers and data experts.

Deployment Problem

hi guys,
I'm currently using Sql server 2000 for database,
I use the data adapter wizard for most of the connection in vb,
and it is connected to the machine name of my computer,
if i create a setup using for my project,
Is there a problem for my project to use in another machine
using that machine's database?
what can i do to work probably on other machine?
and how to include the database and install on anonther machine
using the setup created?
Nov 20 '05 #1
7 1522
hey

you will always have to point your connection string to the right sql
server.
there are several ways to do this i would suggest that you set the value in
the load of your form, you can hard code it or set a value in your config
file (progname.exe.config) that way you can change it whithout recompiling.

hope it helps

eric

"Gene" <eu*******@hotmail.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
hi guys,
I'm currently using Sql server 2000 for database,
I use the data adapter wizard for most of the connection in vb,
and it is connected to the machine name of my computer,
if i create a setup using for my project,
Is there a problem for my project to use in another machine
using that machine's database?
what can i do to work probably on other machine?
and how to include the database and install on anonther machine
using the setup created?

Nov 20 '05 #2
THX,
but would you mind telling me more on this?
like where is the config file?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40**********************@news.skynet.be...
hey

you will always have to point your connection string to the right sql
server.
there are several ways to do this i would suggest that you set the value in the load of your form, you can hard code it or set a value in your config
file (progname.exe.config) that way you can change it whithout recompiling.
hope it helps

eric

"Gene" <eu*******@hotmail.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
hi guys,
I'm currently using Sql server 2000 for database,
I use the data adapter wizard for most of the connection in vb,
and it is connected to the machine name of my computer,
if i create a setup using for my project,
Is there a problem for my project to use in another machine
using that machine's database?
what can i do to work probably on other machine?
and how to include the database and install on anonther machine
using the setup created?


Nov 20 '05 #3
i will have to be a bit vague bout that one (i'm working on web forms atm
and thats a bit different)

normally you can add a new item to the project and that shouold be an
application configuration file (it wil be in the templates) if you leave it
like that you will have to recompile to change the values if you put a .exe
behind the name it will take the values without recompiling.
the config file would be something like this. (in your app set the
connection string to SqlConnection1.ConnectionString)
<?xml version="1.0" encoding="utf-8"?>

<configuration>

<appSettings>

<!-- User application and configured property settings go here.-->

<!-- Example: <add key="settingName" value="settingValue"/> -->

<add key="SqlConnection1.ConnectionString" value="data
source=SERVERNAME;database=DBNAME;user id=***;password=*****" />

</appSettings>

</configuration>
"Gene" <eu*******@hotmail.com> wrote in message
news:e2****************@TK2MSFTNGP09.phx.gbl...
THX,
but would you mind telling me more on this?
like where is the config file?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40**********************@news.skynet.be...
hey

you will always have to point your connection string to the right sql
server.
there are several ways to do this i would suggest that you set the value

in
the load of your form, you can hard code it or set a value in your config file (progname.exe.config) that way you can change it whithout

recompiling.

hope it helps

eric

"Gene" <eu*******@hotmail.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
hi guys,
I'm currently using Sql server 2000 for database,
I use the data adapter wizard for most of the connection in vb,
and it is connected to the machine name of my computer,
if i create a setup using for my project,
Is there a problem for my project to use in another machine
using that machine's database?
what can i do to work probably on other machine?
and how to include the database and install on anonther machine
using the setup created?



Nov 20 '05 #4
small correction it should be appname.exe.config in your bin folder

"EricJ" <er********@ThiSbitconsult.be.RE> wrote in message
news:40*********************@news.skynet.be...
i will have to be a bit vague bout that one (i'm working on web forms atm
and thats a bit different)

normally you can add a new item to the project and that shouold be an
application configuration file (it wil be in the templates) if you leave it like that you will have to recompile to change the values if you put a ..exe behind the name it will take the values without recompiling.
the config file would be something like this. (in your app set the
connection string to SqlConnection1.ConnectionString)
<?xml version="1.0" encoding="utf-8"?>

<configuration>

<appSettings>

<!-- User application and configured property settings go here.-->

<!-- Example: <add key="settingName" value="settingValue"/> -->

<add key="SqlConnection1.ConnectionString" value="data
source=SERVERNAME;database=DBNAME;user id=***;password=*****" />

</appSettings>

</configuration>
"Gene" <eu*******@hotmail.com> wrote in message
news:e2****************@TK2MSFTNGP09.phx.gbl...
THX,
but would you mind telling me more on this?
like where is the config file?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40**********************@news.skynet.be...
hey

you will always have to point your connection string to the right sql
server.
there are several ways to do this i would suggest that you set the
value
in
the load of your form, you can hard code it or set a value in your

config file (progname.exe.config) that way you can change it whithout

recompiling.

hope it helps

eric

"Gene" <eu*******@hotmail.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
> hi guys,
> I'm currently using Sql server 2000 for database,
> I use the data adapter wizard for most of the connection in vb,
> and it is connected to the machine name of my computer,
> if i create a setup using for my project,
> Is there a problem for my project to use in another machine
> using that machine's database?
> what can i do to work probably on other machine?
> and how to include the database and install on anonther machine
> using the setup created?
>
>



Nov 20 '05 #5
THX,
but does it work on vb project rather than asp project?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40*********************@news.skynet.be...
small correction it should be appname.exe.config in your bin folder

"EricJ" <er********@ThiSbitconsult.be.RE> wrote in message
news:40*********************@news.skynet.be...
i will have to be a bit vague bout that one (i'm working on web forms atm
and thats a bit different)

normally you can add a new item to the project and that shouold be an
application configuration file (it wil be in the templates) if you leave

it
like that you will have to recompile to change the values if you put a

.exe
behind the name it will take the values without recompiling.
the config file would be something like this. (in your app set the
connection string to SqlConnection1.ConnectionString)
<?xml version="1.0" encoding="utf-8"?>

<configuration>

<appSettings>

<!-- User application and configured property settings go here.-->

<!-- Example: <add key="settingName" value="settingValue"/> -->

<add key="SqlConnection1.ConnectionString" value="data
source=SERVERNAME;database=DBNAME;user id=***;password=*****" />

</appSettings>

</configuration>
"Gene" <eu*******@hotmail.com> wrote in message
news:e2****************@TK2MSFTNGP09.phx.gbl...
THX,
but would you mind telling me more on this?
like where is the config file?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40**********************@news.skynet.be...
> hey
>
> you will always have to point your connection string to the right sql > server.
> there are several ways to do this i would suggest that you set the

value in
> the load of your form, you can hard code it or set a value in your

config
> file (progname.exe.config) that way you can change it whithout
recompiling.
>
> hope it helps
>
> eric
>
> "Gene" <eu*******@hotmail.com> wrote in message
> news:ui****************@TK2MSFTNGP12.phx.gbl...
> > hi guys,
> > I'm currently using Sql server 2000 for database,
> > I use the data adapter wizard for most of the connection in vb,
> > and it is connected to the machine name of my computer,
> > if i create a setup using for my project,
> > Is there a problem for my project to use in another machine
> > using that machine's database?
> > what can i do to work probably on other machine?
> > and how to include the database and install on anonther machine
> > using the setup created?
> >
> >
>
>



Nov 20 '05 #6
yes we have it working on a few vb win form apps
in asp it is easyer (you dont have to do anithing special to the config
file)

"Gene" <eu*******@hotmail.com> wrote in message
news:u8****************@TK2MSFTNGP09.phx.gbl...
THX,
but does it work on vb project rather than asp project?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40*********************@news.skynet.be...
small correction it should be appname.exe.config in your bin folder

"EricJ" <er********@ThiSbitconsult.be.RE> wrote in message
news:40*********************@news.skynet.be...
i will have to be a bit vague bout that one (i'm working on web forms atm and thats a bit different)

normally you can add a new item to the project and that shouold be an
application configuration file (it wil be in the templates) if you
leave
it
like that you will have to recompile to change the values if you put a

.exe
behind the name it will take the values without recompiling.
the config file would be something like this. (in your app set the
connection string to SqlConnection1.ConnectionString)
<?xml version="1.0" encoding="utf-8"?>

<configuration>

<appSettings>

<!-- User application and configured property settings go here.-->

<!-- Example: <add key="settingName" value="settingValue"/> -->

<add key="SqlConnection1.ConnectionString" value="data
source=SERVERNAME;database=DBNAME;user id=***;password=*****" />

</appSettings>

</configuration>
"Gene" <eu*******@hotmail.com> wrote in message
news:e2****************@TK2MSFTNGP09.phx.gbl...
> THX,
> but would you mind telling me more on this?
> like where is the config file?
>
> "EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
> :40**********************@news.skynet.be...
> > hey
> >
> > you will always have to point your connection string to the right

sql > > server.
> > there are several ways to do this i would suggest that you set the

value
> in
> > the load of your form, you can hard code it or set a value in your
config
> > file (progname.exe.config) that way you can change it whithout
> recompiling.
> >
> > hope it helps
> >
> > eric
> >
> > "Gene" <eu*******@hotmail.com> wrote in message
> > news:ui****************@TK2MSFTNGP12.phx.gbl...
> > > hi guys,
> > > I'm currently using Sql server 2000 for database,
> > > I use the data adapter wizard for most of the connection in vb,
> > > and it is connected to the machine name of my computer,
> > > if i create a setup using for my project,
> > > Is there a problem for my project to use in another machine
> > > using that machine's database?
> > > what can i do to work probably on other machine?
> > > and how to include the database and install on anonther machine
> > > using the setup created?
> > >
> > >
> >
> >
>
>



Nov 20 '05 #7
THX!!!
I'll try it

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40*********************@news.skynet.be...
yes we have it working on a few vb win form apps
in asp it is easyer (you dont have to do anithing special to the config
file)

"Gene" <eu*******@hotmail.com> wrote in message
news:u8****************@TK2MSFTNGP09.phx.gbl...
THX,
but does it work on vb project rather than asp project?

"EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
:40*********************@news.skynet.be...
small correction it should be appname.exe.config in your bin folder

"EricJ" <er********@ThiSbitconsult.be.RE> wrote in message
news:40*********************@news.skynet.be...
> i will have to be a bit vague bout that one (i'm working on web forms
atm
> and thats a bit different)
>
> normally you can add a new item to the project and that shouold be
an > application configuration file (it wil be in the templates) if you leave it
> like that you will have to recompile to change the values if you put a .exe
> behind the name it will take the values without recompiling.
>
>
> the config file would be something like this. (in your app set the
> connection string to SqlConnection1.ConnectionString)
> <?xml version="1.0" encoding="utf-8"?>
>
> <configuration>
>
> <appSettings>
>
> <!-- User application and configured property settings go here.-->
>
> <!-- Example: <add key="settingName" value="settingValue"/> -->
>
> <add key="SqlConnection1.ConnectionString" value="data
> source=SERVERNAME;database=DBNAME;user id=***;password=*****" />
>
> </appSettings>
>
> </configuration>
>
>
> "Gene" <eu*******@hotmail.com> wrote in message
> news:e2****************@TK2MSFTNGP09.phx.gbl...
> > THX,
> > but would you mind telling me more on this?
> > like where is the config file?
> >
> > "EricJ" <er********@ThiSbitconsult.be.RE> ¼¶¼g©ó¶l¥ó·s»D
> > :40**********************@news.skynet.be...
> > > hey
> > >
> > > you will always have to point your connection string to the right sql
> > > server.
> > > there are several ways to do this i would suggest that you set

the value
> > in
> > > the load of your form, you can hard code it or set a value in your > config
> > > file (progname.exe.config) that way you can change it whithout
> > recompiling.
> > >
> > > hope it helps
> > >
> > > eric
> > >
> > > "Gene" <eu*******@hotmail.com> wrote in message
> > > news:ui****************@TK2MSFTNGP12.phx.gbl...
> > > > hi guys,
> > > > I'm currently using Sql server 2000 for database,
> > > > I use the data adapter wizard for most of the connection in vb, > > > > and it is connected to the machine name of my computer,
> > > > if i create a setup using for my project,
> > > > Is there a problem for my project to use in another machine
> > > > using that machine's database?
> > > > what can i do to work probably on other machine?
> > > > and how to include the database and install on anonther machine > > > > using the setup created?
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #8

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

Similar topics

5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
2
by: Felix | last post by:
Out of no where I'm starting to get these problems and my Deployment projects won't build anymore. Does anyone have any idea what's causing this? I've tried copying these files from another...
1
by: Richard Lewis Haggard | last post by:
I'm new to C# deployment project way of doing things and have run into a problem with a deployment project that has me stumped. I've put together a deployment of a project which works just fine for...
2
by: Scanner2001 | last post by:
This may not be the best group to post to, so if there are any suggestions as to a different group, please let me know. Here is what we are doing, we have a couple of dlls that are shared (i.e....
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: feng | last post by:
Hi, I am having a strange problem right now and I don't even know how to go about it. Someone please help me! Any inputs will be highly appreciated. We have an application that has a VB.Net...
0
by: Michael | last post by:
After a week of beating my head against a wall I still continue to receive the following error message when trying to deploy a package using the cabinet option. The same error occurs with a...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
1
by: =?Utf-8?B?dmNs?= | last post by:
Short version: IE7 and .NET Framework 2.0 breaks no touch deployment for .NET 1.1 applications. IE6 and .NET Framework 1.1 + 2.0 works fine. IE7 with .NET Framework 1.1 only is fine, once we add...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.