Click here to Skip to main content
15,914,943 members
Home / Discussions / Database
   

Database

 
GeneralRe: Derived Columns in where clause Pin
SatyaKeerthi1529-Jul-10 0:25
SatyaKeerthi1529-Jul-10 0:25 
GeneralRe: Derived Columns in where clause Pin
Jörgen Andersson29-Jul-10 0:45
professionalJörgen Andersson29-Jul-10 0:45 
AnswerRe: Derived Columns in where clause Pin
Estys29-Jul-10 0:13
Estys29-Jul-10 0:13 
GeneralRe: Derived Columns in where clause Pin
SatyaKeerthi1529-Jul-10 0:29
SatyaKeerthi1529-Jul-10 0:29 
AnswerRe: Derived Columns in where clause [modified] Pin
Luc Pattyn29-Jul-10 0:55
sitebuilderLuc Pattyn29-Jul-10 0:55 
GeneralRe: Derived Columns in where clause Pin
SatyaKeerthi1529-Jul-10 1:03
SatyaKeerthi1529-Jul-10 1:03 
GeneralRe: Derived Columns in where clause Pin
Eddy Vluggen29-Jul-10 2:37
professionalEddy Vluggen29-Jul-10 2:37 
QuestionFailed to connect to server Pin
Alduin28-Jul-10 11:31
Alduin28-Jul-10 11:31 
I had a hard time trying to decide whether I should post this in the database side of things or the vb.net.
This is coming from a vb.net 3.5 application connecting to a SQL Server 2008 database. We currently have this application on 50 different SQL Servers though all of these other ones are SQL Server 2000/2005.

This section of a code comes from a routine where we are validating that the database exists and makes sure that it is up to date. By this point we have already validated that the connection string (strADOConnString) is valid and that we can connect to the server. When we run this section of code where we check for the database name in the server the only difference between this and our normal connection string is that we are looking at the "master" database instead of our database. This section of code blows up with the "Failed to connect to server" error message.

I've validated that the user does have the proper permissions on this server and this is further verified by our ErrHandler routine which writes the error to the database using the strADOConnString. I've tested this locally using SQL Server 2008 and have had no issues. They have tested this using the SA account leading me to suspect that it is not a simple permissions issue. I've made sure that they can logon to SQL Server Management Studio with this user with no pop ups and I've made sure that they can connect to the server through an ODBC with this particular SQL user.
What else could be causing this error?


Dim strADOConnStringMaster As String = strADOConnString
strADOConnStringMaster = strADOConnStringMaster.ToString.Replace("Initial Catalog=" & objSystem.DatabaseName & ";", "Initial Catalog=master;")
Try
Dim connection As New SqlConnection(strADOConnStringMaster)
server = New Server(New ServerConnection(connection))
bDbExists = server.Databases.Contains(objSystem.DatabaseName)

connection.Close()
Catch ex As Exception
strStep = ".STEP01"
Call ErrHandler(_moduleName & strStep, _className, String.Format("Server defined in database configuration does not exist. Message:{1}.", lDBVersion.ToString, Err.Description), Not bCmdLine)
If Not bCmdLine Then
MsgBox("Unable to locate server defined in database configuration.", MsgBoxStyle.Critical)
End If
Exit Sub
End Try
Some people sail through life on a bed of roses like a knife slicing through butter.

AnswerRe: Failed to connect to server Pin
Luc Pattyn28-Jul-10 11:51
sitebuilderLuc Pattyn28-Jul-10 11:51 
AnswerRe: Failed to connect to server Pin
David Mujica29-Jul-10 2:52
David Mujica29-Jul-10 2:52 
QuestionDecimals in integer operations Pin
shreekar28-Jul-10 6:11
shreekar28-Jul-10 6:11 
QuestionRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:20
shreekar28-Jul-10 6:20 
AnswerRe: Decimals in integer operations Pin
Eddy Vluggen28-Jul-10 6:33
professionalEddy Vluggen28-Jul-10 6:33 
GeneralRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:35
shreekar28-Jul-10 6:35 
GeneralRe: Decimals in integer operations Pin
Eddy Vluggen28-Jul-10 6:53
professionalEddy Vluggen28-Jul-10 6:53 
AnswerRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:34
shreekar28-Jul-10 6:34 
GeneralRe: Decimals in integer operations Pin
David Skelly28-Jul-10 6:38
David Skelly28-Jul-10 6:38 
AnswerRe: Decimals in integer operations Pin
David Skelly28-Jul-10 6:37
David Skelly28-Jul-10 6:37 
AnswerRe: Decimals in integer operations Pin
Luc Pattyn28-Jul-10 6:35
sitebuilderLuc Pattyn28-Jul-10 6:35 
GeneralRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:56
shreekar28-Jul-10 6:56 
GeneralRe: Decimals in integer operations Pin
Luc Pattyn28-Jul-10 7:25
sitebuilderLuc Pattyn28-Jul-10 7:25 
GeneralRe: Decimals in integer operations Pin
David Skelly28-Jul-10 22:28
David Skelly28-Jul-10 22:28 
QuestionMSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 1:50
SarahMcM28-Jul-10 1:50 
AnswerRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
Eddy Vluggen28-Jul-10 5:19
professionalEddy Vluggen28-Jul-10 5:19 
GeneralRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 12:02
SarahMcM28-Jul-10 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.