vs 2005 - vb .net (desktop app) - XP Pro
Trying to manipulate data form a desktop app. to a remote hosted website?
Just trying to connect for now. Anyone know what I can change to make
connection?
xxxxxx, yyyyyy and DB are substituted for real values.
Below is the code:
Imports Microsoft.SqlSe rver
Imports System.Data.Sql
Imports System.Data.Sql Client
Dim Con
Dim Sql As String
Sql = "Server=67.19.2 3.66;Database=d ialer;Uid=xxxxx x;Pwd=yyyyyy;"
Con = New SqlConnection(S ql)
Try
Con.Open()
Catch ex As Exception
TextBox1.Text = ex.ToString
End Try
Below is error message:
System.Data.Sql Client.SqlExcep tion: Cannot open database requested in login
'DB'. Login fails.
Login failed for user 'xxxxxx'.
at
Microsoft.Visua lBasic.Compiler Services.Symbol s.Container.Inv okeMethod(Metho d
TargetProcedure , Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
at
Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.CallMe thod(Container
BaseReference, String MethodName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags
InvocationFlags , Boolean ReportErrors, ResolutionFailu re& Failure)
at Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.LateCa ll(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean
IgnoreReturn)
at DialerTest.frmD ialerMain.btnCr eateDB_Click(Ob ject sender, EventArgs e)
in C:\DialerTestFo lder\DialerTest VB\DialerTest\F orm1.vb:line 17
Thank You
Trying to manipulate data form a desktop app. to a remote hosted website?
Just trying to connect for now. Anyone know what I can change to make
connection?
xxxxxx, yyyyyy and DB are substituted for real values.
Below is the code:
Imports Microsoft.SqlSe rver
Imports System.Data.Sql
Imports System.Data.Sql Client
Dim Con
Dim Sql As String
Sql = "Server=67.19.2 3.66;Database=d ialer;Uid=xxxxx x;Pwd=yyyyyy;"
Con = New SqlConnection(S ql)
Try
Con.Open()
Catch ex As Exception
TextBox1.Text = ex.ToString
End Try
Below is error message:
System.Data.Sql Client.SqlExcep tion: Cannot open database requested in login
'DB'. Login fails.
Login failed for user 'xxxxxx'.
at
Microsoft.Visua lBasic.Compiler Services.Symbol s.Container.Inv okeMethod(Metho d
TargetProcedure , Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
at
Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.CallMe thod(Container
BaseReference, String MethodName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags
InvocationFlags , Boolean ReportErrors, ResolutionFailu re& Failure)
at Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.LateCa ll(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean
IgnoreReturn)
at DialerTest.frmD ialerMain.btnCr eateDB_Click(Ob ject sender, EventArgs e)
in C:\DialerTestFo lder\DialerTest VB\DialerTest\F orm1.vb:line 17
Thank You
Comment