[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.4

SQL Server does not exist or access denied

Asked by CRIIT in MS SQL Server

Tags: does, exist, access, sql, server

Hi,
I keep getting this error when I move my site over to the production server from my local machine server, and I can't figure out why.  It's a simple page, with little complicated code.  And it works perfectly fine from my machine...which leads me to believe it has something to do with IIS, Windows Authorization, or some setting in SQL.  Does anyone have any ideas???  I feel like I've tried all sorts of combinations of things, but I can't figure it out.  Thanks!

This is my vb.net code:

Imports System.Data.SqlClient
Public Class Neuroreg
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents Label1 As System.Web.UI.WebControls.Label
    Protected WithEvents Label2 As System.Web.UI.WebControls.Label
    Protected WithEvents Label3 As System.Web.UI.WebControls.Label
    Protected WithEvents Label4 As System.Web.UI.WebControls.Label
    Protected WithEvents Label5 As System.Web.UI.WebControls.Label
    Protected WithEvents Label6 As System.Web.UI.WebControls.Label
    Protected WithEvents Label7 As System.Web.UI.WebControls.Label
    Protected WithEvents Label8 As System.Web.UI.WebControls.Label
    Protected WithEvents Label9 As System.Web.UI.WebControls.Label
    Protected WithEvents Label10 As System.Web.UI.WebControls.Label
    Protected WithEvents Label11 As System.Web.UI.WebControls.Label
    Protected WithEvents Label12 As System.Web.UI.WebControls.Label
    Protected WithEvents Label13 As System.Web.UI.WebControls.Label
    Protected WithEvents Label14 As System.Web.UI.WebControls.Label
    Protected WithEvents Label15 As System.Web.UI.WebControls.Label
    Protected WithEvents Label16 As System.Web.UI.WebControls.Label
    Protected WithEvents Label17 As System.Web.UI.WebControls.Label
    Protected WithEvents Label18 As System.Web.UI.WebControls.Label
    Protected WithEvents Label19 As System.Web.UI.WebControls.Label
    Protected WithEvents Button1 As System.Web.UI.WebControls.Button
    Protected WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
    Protected WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
    Protected WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
    Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
    Protected WithEvents txtfname As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtlname As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtadd1 As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtadd2 As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtcity As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtstate As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtzip As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtemail As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtpatient As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtparent As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtfam As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtphys As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtother As System.Web.UI.WebControls.TextBox

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim strConn As System.Data.SqlClient.SqlConnection
        Dim c As New SqlCommand
        strConn = New System.Data.SqlClient.SqlConnection("Persist Security Info=True;Data Source=CRI; Initial Catalog=CRIWEBData;UID=*****;password=*****;pooling=True;max pool size=100;")

        c.CommandText = "INSERT INTO NEURO_EVENT (FNAME, LNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP, EMAIL, PATIENT, PARENT, FAMILY, PHYSICIAN, OTHER) VALUES(@txtfname, @txtlname, @txtadd1, @txtadd2, @txtcity, @txtstate, @txtzip, @txtemail, @txtpatient, @txtparent, @txtfam, @txtphys, @txtother)"


        c.Connection = strConn
        c.CommandType = CommandType.Text

        c.Parameters.Add("@txtfname", SqlDbType.NVarChar).Value = txtfname.Text
        c.Parameters.Add("@txtlname", SqlDbType.NVarChar).Value = txtlname.Text
        c.Parameters.Add("@txtadd1", SqlDbType.NVarChar).Value = txtadd1.Text
        c.Parameters.Add("@txtadd2", SqlDbType.NVarChar).Value = txtadd2.Text
        c.Parameters.Add("@txtcity", SqlDbType.NVarChar).Value = txtcity.Text
        c.Parameters.Add("@txtstate", SqlDbType.NVarChar).Value = txtstate.Text
        c.Parameters.Add("@txtzip", SqlDbType.NVarChar).Value = txtzip.Text
        c.Parameters.Add("@txtemail", SqlDbType.NVarChar).Value = txtemail.Text
        c.Parameters.Add("@txtpatient", SqlDbType.Int).Value = txtpatient.Text
        If (txtpatient.Text = "") Then
            c.Parameters("@txtpatient").Value = DBNull.Value
        Else
            c.Parameters("@txtpatient").Value = txtpatient.Text
        End If
        c.Parameters.Add("@txtparent", SqlDbType.Int).Value = txtparent.Text
        If (txtparent.Text = "") Then
            c.Parameters("@txtparent").Value = DBNull.Value
        Else
            c.Parameters("@txtparent").Value = txtparent.Text
        End If
        c.Parameters.Add("@txtfam", SqlDbType.Int).Value = txtfam.Text
        If (txtfam.Text = "") Then
            c.Parameters("@txtfam").Value = DBNull.Value
        Else
            c.Parameters("@txtfam").Value = txtfam.Text
        End If
        c.Parameters.Add("@txtphys", SqlDbType.Int).Value = txtphys.Text
        If (txtphys.Text = "") Then
            c.Parameters("@txtphys").Value = DBNull.Value
        Else
            c.Parameters("@txtphys").Value = txtphys.Text
        End If
        c.Parameters.Add("@txtother", SqlDbType.Int).Value = txtother.Text
        If (txtother.Text = "") Then
            c.Parameters("@txtother").Value = DBNull.Value
        Else
            c.Parameters("@txtother").Value = txtother.Text
        End If

        strConn.Open()
        c.ExecuteNonQuery()
        strConn.Close()

        Response.Redirect("neurothanks.aspx")

    End Sub
End Class
[+][-]03/08/05 04:48 PM, ID: 13492069Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/08/05 04:51 PM, ID: 13492078Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/08/05 04:57 PM, ID: 13492103Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/08/05 05:00 PM, ID: 13492122Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/08/05 08:11 PM, ID: 13492909Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/05 07:42 AM, ID: 13496983Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/05 10:13 AM, ID: 13498751Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/05 03:34 PM, ID: 13501596Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/05 08:28 AM, ID: 13507741Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/05 08:51 AM, ID: 13508041Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/05 10:27 AM, ID: 13509081Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/05 11:55 AM, ID: 13509941Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/05 02:14 PM, ID: 13511539Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/05 12:06 PM, ID: 13615353Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/05 02:03 PM, ID: 13616529Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/04/05 11:35 AM, ID: 13700399Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MS SQL Server
Tags: does, exist, access, sql, server
Sign Up Now!
Solution Provided By: CRIIT
Participating Experts: 2
Solution Grade: B
 
[+][-]04/04/05 11:49 AM, ID: 13700546Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/05/05 07:13 PM, ID: 13713337Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81