.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

How Create Database in Remote computer using TSQL...

Posted By: Sajid P K     Posted Date: November 29, 2010    Points:2   Category :Sql Server
Dear frdz ,

I have to create database in remote computer dynamically from TSQL.


Actually my requirement from a store procedure I have to create database in remote server. Here remote server is dynamic.

I have all the TSQL statement for creating table & store procedure.

What is the best method for doing this?


Responses
Author: Narayanan             
Posted Date: July 28, 2011     Points: 20   

http://social.msdn.microsoft.com/Forums/en/transactsql/thread/b4540bf8-d85a-460c-8c6a-c46b40d40207

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Ravi Ranjan Kumar             
Posted Date: July 30, 2011     Points: 20   

Its better to create script and then run it using SQLCMD which will connect it to remote instance and then run the script.
you can also look at given link having same question with same suggested answer.
http://www.dotnetspider.com/forum/271683-How-Create-Database-Remote-computer-using-TSQL.aspx

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend