+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    1

    Question Running SQl server Scripts

     
    Hi,

    I have a apllication developed in vb.net for which the database used is sqlserver.IF I want to load my application in some other machine then if that mahcine does not have sqlserver or sqlclient then how will I run the sql scripts which is basically having the database creation

    Regards,
    Sonu

  2. #2
    Not Really a Member
    Join Date
    Oct 2001
    Posts
    27,879
    you'll have to ask the user (hopefully an admin) what machine to look for a sqlserver client for and what protocol they use (ie. named pipes vs tcp/ip) and what ports etc to use.
    If you use the .net installer they may have some of that automated for you.

    Welcome to TechIMO
    Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.

  3. #3
    Ultimate Member Nighthawk's Avatar
    Join Date
    Oct 2001
    Location
    Montreal, QC
    Posts
    1,950
    I would guess you would have to have the installer prompt for a SQL server to connect to or have it based on a config file or registry key so that you could construct your SQL statements correctly.

    It's easy to have VB.net create an ADO connection to a copy of SQL server that's not on the machine you're installing onto, just in your connection string you have to have something like "server=yourservernamehere" instead of "server=localhost" or my favorite "server=.".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews