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

Curser in SQL(for coonectiong to deifferent servers)

Hi all,,

Can someone please give me an idea about writing a stored procedure script which will do the following--

1. Connect to remote server(if allready coonected delete the current server object and create a new server object).

2. login to the database on the remote server.

3. check if a specif stored procedure is there or not(if stored procedure exist delete it and create new... with all the new functionality of that stored procedure)

4. there is a table name(user log) get all the data from the userlog..

Can you please help me with that , i need to connect to 4 servers and do that same for all of them.

if some one can give me an example that will be great other wise please tell me -

1. how can i detect a server object and if it exist how can i delete it(through sql)

2. how can i detect ant delete, create stored procedure on remote server through this stored procedure

Regards,

Vineet Bindal
Feb 26 '09 #1
0 1111

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: SQLDBA | last post by:
Is there any third party s/w that lists SQL servers in a network and query more info about the server?
6
by: alex via SQLMonster.com | last post by:
Hi, anybody can help me. How can i synchronize 2 tables on 2 different sql servers 2000 i mean TABLE1(col1, col2, col3, col4) and TABLE1(col1, col2, col3, col4, col5, col6) the first 3...
6
by: GB | last post by:
Hello: I have 2 MS SQL Servers 2000 Developer edition. Both have same settings and databases. I'd like to have them as mirrored servers - all transaction on one server must be performed on the...
1
by: Sean McKaharay | last post by:
I am trying to find a way to return a list of my sql servers other then using SQLDMO. Can it be done? Can someone drop an example if it can. Thanks, Sean
2
by: abcd | last post by:
I want to pop up a list of SQL servers on the domain in to a list box or combo box. How can I pop up this list using asp.net. thanks
2
by: happyjenny52 | last post by:
Hi, I work as an IT Administrator and part of my job role is to use Enterprise Manager and Query Analyzer to backup the logins and permissions for each database on our SQL Servers. This...
1
by: Microsoft | last post by:
In my app I want to create a drop down that lists the available SQL Servers on the Network. How do I discover what servers are out there? This is exactly like when you use File/Connect in Query...
0
by: raghutumma | last post by:
Hi, I need help from you... I want to find SQL Servers which are available in Network and Databases in Each Server Using Batch file. If i run this Batch file it should find SQL Servers &...
1
by: DR | last post by:
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers memory limits? e.g. lets say my clr stored...
1
by: ljpitre | last post by:
I need to write a compound query to access two different SQL servers. When I specify the server name as a prefix to the database name i get syntax error. I can not seem to find any examples of how...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.