473,503 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to deploy stored procedures onsite

Hi,

I created an sql script for my stored procedures. How can i execute this
script on customers sites ?

At the moment i can use the query analyser but its not going to be available
at customer sites.

What are my options ?

Many thanks for any information.
Scott
Nov 19 '05 #1
3 966
Scott,

You will need to have an access to the database server with enough rights
for creating stored procedures. You, or your customer, need to talk to IT
guys who are in charge of the database server and ask them to provide an
access for you. That's the down side of using stored procedures.

Eliyahu

"scott" <no****@yahoo.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I created an sql script for my stored procedures. How can i execute this
script on customers sites ?

At the moment i can use the query analyser but its not going to be available at customer sites.

What are my options ?

Many thanks for any information.
Scott

Nov 19 '05 #2
You can give a VB Script file as below.

Dim cn
Dim cmd
Dim rs
Dim params
Dim param
set cn=createobject("ADODB.Connection")
set cmd=createobject("ADODB.Command")
set rs=createobject("ADODB.Recordset")
cn.Provider = "SQLOLEDB"
cn.Open "Data Source = <SQL Server Name>", "testlogin"
Set cmd.ActiveConnection = cn
cmd.CommandType = &H0004
cmd.CommandText = "mainproc"
cmd.CommandTimeout = 0
' Prepare the command
cmd.Prepared = True
Set rs = cmd.Execute
Wscript.echo rs(0)
cn.Close
Set cmd = Nothing
Set cn = Nothing

--
Vijayakrishna
Software Architect
"scott" wrote:
Hi,

I created an sql script for my stored procedures. How can i execute this
script on customers sites ?

At the moment i can use the query analyser but its not going to be available
at customer sites.

What are my options ?

Many thanks for any information.
Scott

Nov 19 '05 #3
the most common approach is a bat file and the osql utility.

-- bruce (sqlwork.com)

"scott" <no****@yahoo.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I created an sql script for my stored procedures. How can i execute this
script on customers sites ?

At the moment i can use the query analyser but its not going to be
available at customer sites.

What are my options ?

Many thanks for any information.
Scott

Nov 19 '05 #4

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

Similar topics

2
3508
by: M Wells | last post by:
Hi All, I'm wondering if anyone can tell me if it's possible to search for stored procedures by their contents? I tend to leave very descriptive notes in stored procedures and they're...
11
10708
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
2
2792
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the...
2
9196
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
5
3457
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
2
3314
by: Eli | last post by:
Hi all We currently have a strange problem with calling a Stored Procedure (SQL Database) in our C# Project. The only error I get is "System error" which says a lot :) Background: We have...
45
3361
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
28
72329
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
11
3392
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
0
7199
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
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
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,...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5572
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,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.