G
Guest
Hi
I have still not been able to sort out the issue of a non-development machine not being able to open a connection to an SQL database.
Aaron, if you read this thanks for any help you can/could give me
The details are as below
My connection code is (using VB.net):
myConnection = New SqlConnection("data source=SPEEDY;initial catalog=OpsAdminTest;integrated security=True"
MessageBox.Show("connection string: " + myConnection.ConnectionString
MessageBox.Show("myConnection.Database: " + myConnection.Database
MessageBox.Show("myConnection.DataSource:" + myConnection.DataSource
MessageBox.Show("myConnection.Workstationid:" + myConnection.WorkstationId
Tr
myConnection.Open(
Catch ex As Exceptio
MessageBox.Show("Error opening connection"
End Tr
MessageBox.Show("finished initialization"
This is done immediately after the InitializeComponent() call in the application
When I compile/release the code for installation and then install on the same machine that I developed it on, it works fine.
But when I install on the non-development machine, it fails to open the connection
The non-development machine has the SystemDSN connection to the OpsAdminTest database as it is an active database that we use for test developement of other services. My company does interactive voice services for various tv/radio/magazines and we use SQL to maintain the services
We are using windows authentication for the SystemDSN connection to the database
Sorry this question eludes my limited knowledge. How would I use SQL Profiler in my code to see if I am connection to the server
Again, thanks for any help
I have still not been able to sort out the issue of a non-development machine not being able to open a connection to an SQL database.
Aaron, if you read this thanks for any help you can/could give me
The details are as below
My connection code is (using VB.net):
myConnection = New SqlConnection("data source=SPEEDY;initial catalog=OpsAdminTest;integrated security=True"
MessageBox.Show("connection string: " + myConnection.ConnectionString
MessageBox.Show("myConnection.Database: " + myConnection.Database
MessageBox.Show("myConnection.DataSource:" + myConnection.DataSource
MessageBox.Show("myConnection.Workstationid:" + myConnection.WorkstationId
Tr
myConnection.Open(
Catch ex As Exceptio
MessageBox.Show("Error opening connection"
End Tr
MessageBox.Show("finished initialization"
This is done immediately after the InitializeComponent() call in the application
When I compile/release the code for installation and then install on the same machine that I developed it on, it works fine.
But when I install on the non-development machine, it fails to open the connection
Are you using DSN, if so, is there an appropriate DSN connection on the non development machine
The non-development machine has the SystemDSN connection to the OpsAdminTest database as it is an active database that we use for test developement of other services. My company does interactive voice services for various tv/radio/magazines and we use SQL to maintain the services
Are you using Windows or SQL authentication
We are using windows authentication for the SystemDSN connection to the database
Have you used SQL Profiler to see if you are even touching the SQL server
Sorry this question eludes my limited knowledge. How would I use SQL Profiler in my code to see if I am connection to the server
Again, thanks for any help