Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2005, 07:14 PM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Modifying windows service

HI

I have to copy a large text file with records in sql server.
so i created a windows service using stored procedure for actuak work,
It worked fine but when the file gets bulky around 70-80 mbs it failed
can anyone tell how to modify my windows service or tell some another better way.
I am using bulk insert in the backgrounnd.

avats


 
Old July 1st, 2005, 08:16 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi avats,

wht do u exactly mean by "it fails"???????
does it give sum Error???

Ashu


 
Old July 6th, 2005, 01:34 PM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi ashu

fails means it didn't work but i work out a solution for that problem

Now ,do u have any knowledge how to install any Windows service developed on my computer to another computer having same version of vs.net installed as that on mine.I added a installer to the developed Window service which worked fine if i have to install on my computer on which i developed it but didn't install that service on other computers.

how can i do it


thanx

Anand


 
Old July 9th, 2005, 04:49 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

Hi Anand

After long time of browsing the web I finally found an article describing how to install/uninstall a service with only two lines of code.

Install:

String []installParams= {filename};
System.Configuration.Install.ManagedInstallerClass .InstallHelper(installParams);

Uninstall:

String []installParams= {"/u", filename};
System.Configuration.Install.ManagedInstallerClass .InstallHelper(installParams);

You have to add System.Configuration.Install reference manually.

Ashu


 
Old July 9th, 2005, 12:56 PM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi ashu

thanx for looking forward

but where i have to use these 2 lines of code
In which file of the installation package created by VS.NET i have to insert the lines and where to insert it?

pl clarify a bit to me on it
can u tell me webaddress of the article/site/code for these lines , so that i can look at it

thanx

Anand


 
Old July 10th, 2005, 08:53 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi anand,

actually i saw tht article on Google
and i dont exactly remember the web link :(


Ashu


 
Old August 6th, 2005, 09:40 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi all,
       I want to knw as to how we install windows service in a remote system i searched the web but i get all unclarified ans so if any 1 knws it please tell me

Karthi







Similar Threads
Thread Thread Starter Forum Replies Last Post
Impersonate with windows service for Service A/C vinod_yadav1919 C# 0 October 18th, 2008 02:29 PM
windows service MunishBhatia WinForms/Console Application Design 0 September 27th, 2007 10:27 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
Windows Service bmains Pro VB.NET 2002/2003 2 January 21st, 2005 03:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.