Results 1 to 4 of 4

Thread: [RESOLVED] SQL Database Connection String

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved [RESOLVED] SQL Database Connection String

    Hi,
    I have the following connection string, I dont think I really need the workstation ID in there? What does it do? When I just take it out the connection string wont work anymore, how should it look without it?
    VB Code:
    1. Public ConnectionString = "workstation id=BANTAM;packet size=4096;integrated security=SSPI;data source=DEVSQ" & _
    2.                     "LServer;persist security info=False;initial catalog=Database1"

  2. #2
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016

    Re: SQL Database Connection String

    My connection strings resemble the following
    VB Code:
    1. Public ConnectionString = "[b]Provider=SQLOLEDB.1[/b];integrated security=SSPI;[b]Server[/b]=DEVSQLServer;" & _
    2.                     "persist security info=False;initial catalog=Database1"

    I highlighted the things I'd change.
    Chris

    Master Of My Domain
    Got A Question? Look Here First

  3. #3

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: SQL Database Connection String

    I think yours is for an OLEDB connection though Im wanting to use the vb.net SqlConnection Class

  4. #4

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: SQL Database Connection String

    OK I found it in an old thread.
    VB Code:
    1. Public ConnectionString = "Data Source=DEVSQLServer;Initial Catalog=Database1;Integrated Security=SSPI"
    It directed me to this great site-
    http://www.connectionstrings.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width