Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





The Connection Name 'LocalSqlServer' Was Not Found In The Applications Configuration Or The Connection String Is Empty.


Hi,

I'm having a BIG problem, this is my 3rd day looking for answer !

I'm trying to create a custom membership provider with MS SQL database 2005 but not the default ASPNETDB.
I've changed the web.config to be as following:<connectionStrings>

<add name="sqlConn" connectionString="Data Source=.;Integrated Security=True;Initial Catalog=ASPNETDB;"
providerName="System.Data.SqlClient" />

</connectionStrings> <system.web>

<trace enabled="true" />
<roleManager enabled="true" />
<authentication mode="Forms" />

<membership defaultProvider="MySqlProvider">
<providers>

<remove name="AspNetSqlProvider"/>
<add name="MySqlProvider" connectionStringName="SqlConn"
type="System.Web.Security.SqlMembershipProvider" applicationName="/" />

</providers>
</membership>

But when I try to login to the site using the login control the following error occurs:


Server Error in '/etest' Application.


Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

Source Error:





Line 149: <roleManager>
Line 150: <providers>
Line 151: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 152: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 153: </providers>
Source File: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configmachine.config    Line: 151





Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.213

 It is clear that this is a prblem with my Machine.Config file - since I've "worked!" on this file for a while. But when I've checked the Machine.config file I've found the LocalSqlServer connection it is talking about! .

I'm lost and I dunno what to do, can anyone help?

Here is the mahine.config in case if you need it:<connectionStrings>

<add name="LocalSqlServer" connectionString="data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /></connectionStrings>

<system.data><DbProviderFactories>

<add name="Odbc Data Provider" invariant="System.Data.Odbc" description=".Net Framework Data Provider for Odbc" type="System.Data.Odbc.OdbcFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><add name="OleDb Data Provider" invariant="System.Data.OleDb" description=".Net Framework Data Provider for OleDb" type="System.Data.OleDb.OleDbFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<add name="OracleClient Data Provider" invariant="System.Data.OracleClient" description=".Net Framework Data Provider for Oracle" type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<add name="SQL Server CE Data Provider" invariant="Microsoft.SqlServerCe.Client" description=".NET Framework Data Provider for Microsoft SQL Server 2005 Mobile Edition" type="Microsoft.SqlServerCe.Client.SqlCeClientFactory, Microsoft.SqlServerCe.Client, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /></DbProviderFactories>

</system.data><system.web>

<processModel autoConfig="true" /><httpHandlers />

<membership><providers>

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /></providers>

</membership><profile>

<providers><add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers></profile>

<roleManager><providers>

<add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /><add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers></roleManager>

</system.web>




View Complete Forum Thread with Replies

Related Forum Messages:
The Connection Name 'name' Was Not Found In The Applications Configuration Or The Connection String Is Empty
 

I have seen another thread with this same problem, but the problem seemed to be a typo.  I am getting an error when I try to access the web site ..
 

The connection name 'USASH-AS0013' was not found in the applications configuration or the connection string is empty.
 
However, in my web.config file I do have a connection named USASH-AS0013.  Here is my web.config file (with my user/pwd hidden).  Any help would be greatly appreciated.
 


<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    WindowsMicrosoft.NetFrameworkv2.xConfig
-->
<configuration>
 <appSettings/>
 <connectionStrings>
  <add name="USASH-AS0013" connectionString="Provider=SQLOLEDB;Data Source=USASH-AS0013;User ID=****;Password=*****;Initial Catalog=&quot;Smart Factory&quot;"
   providerName="System.Data.OleDb" />
 </connectionStrings>
 <system.web>
  <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
    <compilation debug="true" strict="false" explicit="true"/>
    <pages theme="MySkin" >
   <namespaces>
    <clear/>
    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <add namespace="System.Web"/>
    <add namespace="System.Web.Caching"/>
    <add namespace="System.Web.SessionState"/>
    <add namespace="System.Web.Security"/>
    <add namespace="System.Web.Profile"/>
    <add namespace="System.Web.UI"/>
    <add namespace="System.Web.UI.WebControls"/>
    <add namespace="System.Web.UI.WebControls.WebParts"/>
    <add namespace="System.Web.UI.HtmlControls"/>
   </namespaces>
  </pages>
  <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
  <authentication mode="Windows"/>
  <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
 </system.web>
</configuration>

View Replies !
The Connection Name 'name' Was Not Found In The Applications Configuration Or The Connection String Is Empty
I have been trying to host my website on Go Daddy for about 3 weeks and I have cleared several problems but this one remains. I can get into the ASPNETDB database for doing logins , etc but I cant access my database called "PINEmgt".
To try to understand where the problem is located,I built a very simple application without login controls and put on  it one Detailform accessing a single line table "Signin". I continually get the error message I got with my real app :"The connection name 'PINEMgtConnectionString2' was not found in the applications configuration or the connection string is empty. " There is only one connection string in my app -'PINEMgtConnectionString2'. When I run the app locally on my machine it works. After I move everything to Go Daddy, I get the error message and the following dump"
 




Line 24: </Fields>
Line 25: </aspetailsView>
Line 26: <aspqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStringsINEMgtConnectionString2 %>"
Line 27: InsertCommand="INSERT INTO Signup(first_name, last_name, email, customer_id) VALUES (,,,)"
Line 28: SelectCommand="SELECT * FROM [Signup]"></aspqlDataSource>

This is indeed the code from my single page app.
 
The dump is:




[InvalidOperationException: The connection name 'PINEMgtConnectionString2' was not found in the applications configuration or the connection string is empty.]
System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +3039085
ASP.default_aspx.__BuildControlSqlDataSource1() in d:hostinguck7scoutDefault.aspx:26
ASP.default_aspx.__BuildControlform1() in d:hostinguck7scoutDefault.aspx:10
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in d:hostinguck7scoutDefault.aspx:1
ASP.default_aspx.FrameworkInitialize() in d:hostinguck7scoutDefault.aspx.vb:912306
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


After Googleing, asking Go Daddy for info (which they dont give) , etc for three weeks, I need serious mental help
in the form of a solution of this problem. Your help with the problem or the name of a good mental health professional in eastern N.C. (maybe both) would be appreciated.

View Replies !
Connection String For Selling Web Applications?
If I'm wanting to sell my Web Applications to clients that run using SQL Server, is it best to use a UserID and Password in the connection string, or would using Windows Integrated Security (SSPI) do? The reason I'm wondering is because I wouldn't know my customer's UserID and Password when they purchased one of my web apps, I would have to recompile the app with the new connection string (I'm not storing it in the web.config file)..

What is the best way to handle this on a global level, so that it would work on any system?

for example, would having the following connection string be a good idea for a production site?

string strMyConnectionString = " Data Source = (local); Integrated Security = SSPI; Initital Catalog = MyDBSource; ";

View Replies !
Aspnetdb Connection String Not Found
Why I don't have connection string in web.config for aspnetdb.mdf database although the site works?Help plz?

View Replies !
Help On Using SqlDataAdapter InsertCommand Targeting LocalSqlServer Connection
 I am trying to use a sqldataadapter to log a record to a table with a stored procedure call. I am getting the following error: "System.NullReferenceException: Object reference not set to an instance of an object.
at ContactUs.LogEmail() in c:inetpubwwwrootMDWelcomeContactUs.aspx.vb:line 55"Here is my code: Protected Sub LogEmail()
'Trace.IsEnabled = True
Dim strConnect As String = ConfigurationManager.ConnectionStrings("LocalSqlServer").ToString
Dim strCommandText As String = "dbo.EmailsLogged_Insert"
Dim objConnect As New SqlConnection(strConnect)
Try
objConnect.Open()
Dim objDataAdapter As New SqlDataAdapter(strCommandText, objConnect)
objDataAdapter.InsertCommand.CommandText = strCommandText'this is line 55 in my source where error is thrown
objDataAdapter.InsertCommand.CommandType = CommandType.StoredProcedure
With objDataAdapter.InsertCommand.Parameters
.Add("@emailaddress", SqlDbType.VarChar, 255).Value = UsersEmail.Text
.Add("@subject", SqlDbType.VarChar, 255).Value = Subject.Text
.Add("@company", SqlDbType.VarChar, 255).Value = Company.Text
.Add("@phone", SqlDbType.VarChar, 255).Value = Phone.Text
.Add("@emailbody", SqlDbType.VarChar, 255).Value = Body.Text

End With
objDataAdapter.InsertCommand.ExecuteNonQuery()
objConnect.Close() 'then close the connection
Catch SQLError As SqlException
Response.Write("<H1>SQL Exception:</H1>")
Response.Write("<h2>" & SQLError.Procedure & "</h2><br />")
Response.Write("<h2>" & SQLError.Message & "</h2><br />")
Dim lineNum As Integer
Dim errMsgArray() As String = Split(SQLError.StackTrace, vbCrLf, , Microsoft.VisualBasic.CompareMethod.Text)
Do While lineNum <= errMsgArray.Length - 1
If Trim$(errMsgArray(lineNum)) <> "" Then
Response.Write("<br>" & errMsgArray(lineNum))
End If
lineNum = lineNum + 1
Loop
Catch objError As Exception
Dim oMsg As String
'display error details
oMsg = "<b>* Error while accessing data</b>.<br />" _
& objError.Message & "<br />" & objError.Source

Trace.Write(oMsg)
Response.Write(oMsg)
Response.End()
End Try
End Sub
 I think the connection is OK (debugging shows that objConnect.State is open) but I am unclear why this is incorrect code here. 

View Replies !
The Resource Cannot Be Found. - Problems With Connection String
I created a site and served it from my local computer and it
works great. Now I uploaded to our dedicated server and I can't seem to make it
work. Everything comes up correctly but it doesn't connect to the database. I'm
confident that it’s the connection string but I've looked all over to try to
find the way it should be and I can't find anything.

Where can I see a tutorial on connection strings or can someone help me?

Server: [company name]SQLEXPRESS

DBName: pswebb.mdf

I haven't added any users or anything so I don't know how exactly to set that
up.

Any help is immensely appreciated!

View Replies !
The Connection &&"&&" Is Not Found. This Error Is Thrown By Connections Collection When The Specific Connection Element Is Not Found
I've got a package which reads a text file into a table and updates another.  I set up configurations so that I could import it into the SSIS store on both my dev and live servers.  Now, I'm getting this error.  I tried removing the configs and am still getting it.

I've been through each step and everything looks okay.  Does anyone have any idea (a) what's wrong, (b) how to localise the error or (c) get any additional information?  Or do I just have to recreate the package from scratch?

 

TITLE: Package Validation Error
------------------------------

Package Validation Error

------------------------------
ADDITIONAL INFORMATION:

Error at PartnerLinkFlatFileImporter: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at PartnerLinkFlatFileImporter [Log provider "SSIS log provider for SQL Server"]: The connection manager "" is not found. A component failed to find the connection manager in the Connections collection.

 (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
BUTTONS:

OK
------------------------------

View Replies !
Cannot Set Connection Property Of Backup Database Task If Connection String Is Customized In Connection Object
I added a connection (ADO.NET) object by name testCon in the connection manager - I wanted to programmatically supply the connection string. So I used the "Expressions" property of the connection object and set the connectionstring to one DTS variable. The idea is to supply the connection string value to the variable - so that the connection object uses my connection string.

Then I added a "Backup Database Task" to my package with the name BkpTask. Now whenever I try to set the connection property of BkpTask to the testCon connection object, by typing testCon, it automatically gets cleared. I am not able to set the connection value.

Then after spending several hours I found that this is because I have customized the connection string in testCon. If I don't customize the connection string, I am able to enter the "testCon" value in the connection property of the BkpTask.

Is this an intrinsic issue?

View Replies !
Methods Of Storing The Connection String In Package Configuration
hi!

I want to store the value of the Connection String in an Common table exisiting for the whole project and retrieve it for the whole package to Run. I want to know if there is a way of doing this.

I do not want to have a config file which is created trhough the package configuration.

In case of Parent package variable the Value of the variable needs to exist which again needs to execute the SQL Task which requires a connection string.

In case of Environment variabIe.I have very less knowledge about the environment variable . Even if we store it? how can we access it and change it in  client place.

In case of SQL server . Can we store in an existing table. what is the configuration filter? what is the vlaue for it.

I do not want to execute any command line.............................

Thanks,

jazz

View Replies !
Cannot Set Connection String For Bulk Insert Source Connection
I came across something strange today. I was wondering I was doing something wrong.

View Replies !
Edit Connection Manager Connection String At Runtime With C#
This is the first time I have used SSIS, so please bear with the ignorance.

 

I have a super simple package that inserts x000's of rows into a temporary table. The data source is a file that the user will upload. I need to be able to tell the package what file to upload. I'm thinking the simplest thing would be to edit the connectionString property of the SourceConnectionFlatFile at runtime. Is this possible? What form should the file path be in (UNC, other)? And, are there any other considerations I should be aware of?

 

Thanks!

View Replies !
Variable Connection String For OLE DB Connection
Good Morning,

 

I hope that I am just missing a step in the process somewhere.  I have established a string variable called DatabaseServer and another called DatabaseName.  In the OLE DB connectionstring expression I have the following:




Code Snippet

"Data Source=" +   @[User::DatabaseServer] + ";Initial Catalog=" +  @[User::DatabaseName] + ";Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;"

 

My understanding is that changing the variable from SERVERA to SERVERB should repoint the connection.  (Test to pre-production to production in my current promotion environment.)  This should also take effect in any dataflow task using the database connection above right?  When I try to repoint the server variable (and only the server variable) I am either a.)throwing errors saying the original connection cannot be found in the data flow task, or b.)the job appears to be processing fine, but the repoint did not take place and data is still flowing to the original server.

 

Can anyone offer suggestions as to what I am missing?

 

The properties values in the DB connection:

ConnectionManagerType is OLEDB

DataSourceID is blank

DelayValidation is False (Setting to true changes nothing in my test)

Expression for ConnectionString is (see above)

RetainSameConnection is False

SupportsDTCTTransactions is True (and appears to be unchangeable.)

 

View Replies !
Connection Not Found Error
when i try to execute the package i keep getting an error like below even though all the connections in the connection manager is working fine.. how can I resolve thsi problem?

Error: 0xC001000E at : The connection "{616CB160-84E6-4A65-B362-4F2B1D1767F9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error: 0xC001000E at : The connection "{B593900A-434B-4A7A-9AF1-CC248A22D106}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error: 0xC001000E at : The connection "{616CB160-84E6-4A65-B362-4F2B1D1767F9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

View Replies !
Error: 0xC001000E - Connection Not Found
Hello,

Does anyone know what this error means and how to resolve it? I get this error when I attempt to run a Data Flow Task. The Data Flow Task has one subcomponent, a Flat File Source. I have set up the connection manager to access the flat file, which is on a local directory. I have tried everything to fix this. What could possibly be the problem??

Thanks

Error: 0xC001000E at : The connection "{B9E11DD7-21A1-4FD7-986F-6BDC5B81F51D}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

 

View Replies !
Configuration/Connection Problem
Back home at my office I built an ASP.net app that successfully connected to my SQL Server 2000 database, which resides on a different computer from my laptop, which is my development machine.

I'm now traveling and wanted to keep on working.  So I installed SQL Server 2005 Express and successfully restored my database on it.  But I'm having problems making the initial connection to the database.

In the Web.config file I have these pertinent variables:

<appSettings>
   <add key="DataBaseServer" value="server"/>
   <add key="DataBase" value="Incentives"/>
   <add key="UserId" value="sa"/>
   <add key="Password" value=""/>
</appSettings>

And back home, everything works fine.  So I thought the obvious thing to change was the value of "DataBaseServer".  My laptop's name is "RMDW" so I first tried that.  Didn't work.  Then I tried "RMDWSQLEXPRESS".  Didn't work.  Then I tried "localhost".  Didn't work.  Finally I tried "localhostSQLEXPRESS".  Didn't work.

I'm thinking that perhaps I have the syntax wrong.  But also, when I did install SQL Express I chose "Windows Authentication" mode and am thinking now that I shouldn't have.

Might anyone have any ideas to help me resolve this?

Robert W.

View Replies !
Indirect Configuration Of Connection Manager
Greetings All;
I am having trouble getting an indirect configuration to work.  Can someone offer a hand?

Here's the deal....
I have a package the currently has an OLE DB Connection manager.  I have an XML configuration file set up to acquire the connection string.  That works fine.  I have a package variable that contains the absolute path to the .dtsconfig file.

How can I get the connection manager to read the package variable (which has the path to the *.dtsconfig file) instead of the hard coded value?

Thanks in advance.

View Replies !
How To Do XML Configuration With Different Connection Manager In SSIS
Hi

 

I want know  how to config SSIS Package With  different connection Manager.

Sample .

 

      When Design time i  gave  The Connection Manager(Devlopement Server) Name : STG1.XXXSchema

 Server Name STG.ssss

Password   : xxxxx

I make  the  The XML configuration file .

after deploy the Package i want from Development Server to  Production Server . so i  will change the Package Config File Open wiht Notepad .

  Server Name STG.qqq

 Password       :xxxxxx

after Edit  Connection String I run the Package . It Always Taking Whatever  igave the Connection String When Design time only .is not taking  what connection string edit hte in the Package Config File. Please Any one give the Solution .

How we can Change the connection string in XML Config File .Whne I tested . It always taking what ever  we  given in the Desing Time .

 

 

Thanks & Regards,

Jeyakumar .M

 

 

 

View Replies !
Oracle Connection Using Configuration File
I created a package that uses configuration file for db connections. SQL Server connection works fine, but for oracle it fails.

I m putting servername=alias from tnsnames.ora file.

the connection works fine from ide

 

 

View Replies !
Oracle Connection Manager Configuration Help
Hi, I dont know if I should post this question here, or on oracle forums, but here goes ...

I made a simple package that performs 2 Excecute SQL Tasks, one task does a select query on a SQL Server DB Table, the other task does a select query on an Oracle DB Table.

The package runs fine in BIDS when debugging, but when I deployed the package to a file system and added it to an sql server agent Job, it all went wrong ...

I tried the ms oledb dataprovider (ole db) for oracle but also the oracleclient data provider (ado.net) but the package always fails.

The error messages in the logfile are these:








event
OnError

computer
ComputerName

operator
NT AUTHORITYSYSTEM

source
Execute SQL Task PLSQL

sourceid
{B29C4FC9-3345-4657-8680-F770B8C2E136}

executionid
{7312A7EC-2555-4268-BB29-38659507BADD}

starttime
14/04/2006 16:40

endtime
14/04/2006 16:40

datacode
-1073573396

databytes
0x

message
Failed to acquire connection "aaa.bbb.oracleClient". Connection may not be configured correctly or you may not have the right permissions on this connection.

the OnError logrow for the package itself says almost the same.

Now my question is: What do I need to configure to get it all working? I think I need to configure the oracle db no? What should I configure? ...

View Replies !
SQL Server 2005 Connection And Configuration
Hi,

A couple of small questions for anyone who can help. I am writing an application and am a newbie with SQL Server 2005 Express Edition and Visual C# (using Visual Studio 2005 pro).

My application will need to run on 6 different PC's at one time with our office server hosting the database. Since the server is hosting the database, is it necessary for the individual PC's to have SQL Server 2005 Express Edition installed on their hard drives also to communiucate back to the server?

Also, where can I find some nice example code for connecting and performing some simple tasks under C#?

View Replies !
Failed OLEDB Connection: Cannot Aquire Connection From Connection Manager
I have a package that uses a for loop to iterate through an unknown amount of excel files and pull their data into a table.  However, there will be cases when the file is corrupted or has some sort of problem so that either the transformation will fail or the excel data source will fail with an oledb connection error.
Could anyone suggest a clean way to trap these errors?  Specifically, the "Cannot Aquire Connection from Connection Manager", which is the excel connection.
 
Thanks,
 
John T

View Replies !
Secure Connection Info In Configuration Files
Hi All

€™m just starting out with SSIS and am trying to establish architecture standards that are sound and workable. We will be developing BI solutions for customers who use our banking and finance package that runs on an IBM System i. Modularity is important as all our BI solutions will have a combination of re-used functionality along with varying degrees of unique functionality for each customer. My current area of interest is in externalizing all environmental factors and ensuring such things as passwords are protected.
 
I understand how configuration files work and how to use environment variables to provide a layer of indirection to them. At this stage we want to avoid encryption of packages and plan to use file system based deployment.  We plan to use windows security for SQL server so I have no issue in exposing connection info here but for our DB2 connections we need to include user id and passwords.  As I understand it, configuration files can not be encrypted so how do I store this externally while preserving its security. Nothing I have read so far has given me exactly what I need.



 

 

 

View Replies !
Configuration File For Connection Info (how Do I Set Password)
Hi All,

I'm new to SSIS.  I'm trying to build a simple package, run it on dev and migrate it to our stg and tst environments.  It works on my dev environment great!  It simply loads data from a flat file into a table.  The trouble i'm having is exporting the connection string info to an xml file and runnign it on other environments. I am not storing the package on the db.  I am saving to a file and running through SQL Server BI Development Studio.

I go to "Configuration File" and export InitialCatalog, ServerName, User, Password to the file.  I can manually change the xml to the new environment but don't know how to set the password. It's not in the xml and i am constantly getting "Login failed for 'sa'" errors.  Anyone know how to do this.  I CAN get this whole process to work if i use Windows authentication security but this isn't an option.  I need to use the db security.

Thanks,
Dave

View Replies !
Creating Connection Manager From Configuration File.
Hello,
I am new to SSIS. Could someone please tell me how to make the Connection Manager use the connection string from the configuration file?
I am trying to have connection information set in one place for all the packages to use.
I have already created a .dtsConfig file based on my existing Connection Managers.
Do I need seperate dtsConfig files for each database?
 
Thank you.
MG

View Replies !
Reporting Services Configuration (Database Connection)
Hi,

I want to configure my Reporting Service.

And if I want to configure the Database Connection I the action

"Create a Grants Rights Script" fails.

I tried all credential types by it doesn't work.

 

Does anybody have an idea? Thanks for your help!

 

Jo-Jo

 

View Replies !
Connection Handshake Failed - Easiest Possible Configuration
Hi there!

Often discussed, but not really solved in my opinion - the connection between the partners and the witness causes problems.

My case: Three Servers in the same domain, three endpoints on 5022 with windows negotiation, all endpoints can be reached by telnet from each server. Mirrorring works. So far so good.

But one of these partners is not able to connect to the witness. The witness' error log is full with that:

"2006-06-01 13:45:20.32 Logon       Database Mirroring login attempt failed with error: 'Connection handshake failed. An OS call failed: (8009030c) 0x8009030c(Der Anmeldeversuch ist fehlgeschlagen.). State 67.'.  [CLIENT: 130.143.205.54]"

My Endpoints are created like

  CREATE ENDPOINT [EASYRIS_Mirroring]

  AUTHORIZATION [code1dephbrsaa1-sys108]

  STATE=STARTED

  AS TCP (LISTENER_PORT = 5022, LISTENER_IP = ALL)

  FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE

  , ENCRYPTION = SUPPORTED ALGORITHM RC4);

 

What catches my eyes is that

  GRANT CONNECT ON ENDPOINT::EASYRIS_Mirroring TO [code1dephbrsaa1-sys108];

doesn't cause these user to appear in the result set of

  SELECT EP.name, SP.STATE,

  CONVERT(nvarchar(38), suser_name(SP.grantor_principal_id))

  AS GRANTOR,

  SP.TYPE AS PERMISSION,

  CONVERT(nvarchar(46),suser_name(SP.grantee_principal_id))

  AS GRANTEE

  FROM sys.server_permissions SP , sys.endpoints EP

  WHERE SP.major_id = EP.endpoint_id

  ORDER BY Permission,grantor, grantee;

By the way, these mentioned user is sysadmin and grantor.

Has anyone an idea?

Torsten

 

 

View Replies !
Why Are The Advanced Options Greyed Out, In The Connection Configuration
I have added several SqlDataSource controls to my C# project, but when I try to configure them, there seems to be a lot of greyed out buttons. Either the  WHERE, ORDER BY, and ADVANCED buttons are greyed out, or when they are active, the ADVANCED button always displays the advabced options which are always greyed out. I doesn't make any sense to me. Please explain (in baby language please)

View Replies !
Remote Connection Failed, Even With Proper Configuration
I am unable to connect to a SQL instance on the server from a workstation on the same network.

SQL Express SP1 is installed on the server, and allows mixed authentication. The instance name is <SERVERNAME>SQLEXPRESS.

Both the Database and Browser services are running.

Local and remote connections are enabled under SAC. I also used sp_configure to make the same changes.

All Protocols for SQLEXPRESS have been Enabled using the Configuration Manager.

The firewalls on both machines have been disabled.

Rebooting the server or restarting services after various changes hasn't affected the outcome.

Local connections made directly on the server are always successful using either authentication mode.

SQL Native Client Driver is installed on the workstation.

The workstation user is trusted. However, neither authentication mode is successful.

The connection string from the workstation uses the named instance above and the SQL Native Client driver.

Other services on the server are working and avaialble to the workstation, such as shared folders.

 

When I attempt a connection from the workstation I receive the following errors:

Connection failed:

SQLState: '08001'

SQL Server Error: -1

[Microsoft][SQL Native Client]SQL Networtk Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].

Connection failed:

SQLState: 'HYT00'

SQL Server Error: 0

[Microsoft][SQL Native Client]Login timeout expired

Connection failed:

SQLState: '08001'

SQL Server Error: -1

[Microsoft][SQL Native Client]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default setting SQL Server does not allow remote connections.

 

I have tried all of the recommendations I can find here without any luck. What am I missing?

 

View Replies !
Changing Connection Manager Provider In Package Configuration
I originally developed SSIS packages with the destination DB to be SQL Server 2005 for unit testing on my desktop.  We are planning on deploying to Oracle.  After changing the Provider and other attributes in the configuration file the package loads, however there are lots of issues.  The primary one is that the mappings are gone.  I'm not sure if that is the result of how the table names are stored "Oracle"."File" versus [SQLSERVER].[File] .  Even after attempting to change the way the table names appear I still get the message "the external metadata column is out of sync with the data source columns".  Then it lists all of the columns that need to be added. 
 
Is there any way to accomplish this that you are aware of.
 
Thanks
 
John Shaening

View Replies !
How Do You Set Up SSIS Configuration Files To Control Connection Strings?
How do you go about setting up configuration files to control connection strings when SSIS packages are migrated from a test environment to a production environment? Specifically, changing the server you are connecting to and possibly different login and password.

View Replies !
Source Script Component Using A Flat File Connection - System.ArgumentException: Empty Pathname Is Not Legal.
I am using a Foreach loop container to go thru all the files downloaded from the ftp site and I am assigning the file name of each file to a variable at the foreach loop level called filename.  In the dataflow task inside the foreach loop container, I have a source script component that uses a flat file connection.  The connection string of the flat file connection is set to the filename variable declared at the foreach loop level.  However the script component has a error System.ArgumentException: Empty pathname is not legal.

Please let me know how to correct this?  The connectionString property of the flat file connection is set to the complete filename including the path.  Does a script component need to have a flat file name specified in the flat file connection that it is using?  I need to have a script source component as the flat file I am reading from is not in any of the standard formats.

The flat file connection manager's connection string property is blanked out the moment I specify an Expression for the connection string.  Is this a defect or is it expected behavior.

Any inputs appreciated. 

PS:  I looked thru Jamie's blog at

http://blogs.conchango.com/jamiethomson/archive/2005/05/30/1489.aspx

when implementing the above package.

Thanks,

Manisha

View Replies !
I Wrote My Own Configuration Tool To Maintain The Connection Strings In A SQL Table
I wrote my own VB app to maintain all of my connection strings and link them to packages.  I then grab them at run time and set them as variables in memory.

View Replies !
HTTP Connection Manager Connectionstring, Web Tasks, And Runtime Configuration
At one point in my package I call a simple web service that kicks off a process on a remote server using a Web Service Task . I need to be able to point the task at a test instance while I'm testing and a different one when it goes to production. The simple answer (you'd hope anyway) is to just store the ConnectionString for the HTTP Connection Manger in Package Configurations for TEST and PROD. I did this and when the package runs, the connection manager's connectionstring does get changed, but the web service task doesn't use this value. It uses the value defined in the WSDL file which in my case contains the URL for the TEST instance.
 
Am I missing something obvious? Do I really have to get the WSDLs from PROD and TEST and deploy both of them to the appropriate environment? What does the ConnectionString in the HTTP Connection Manager actually do then?
 
Thanks for any insight you might have.
 
Kevin S

View Replies !
How It Is Working Using SQL Server Configuration Type To Store Connection Strings
Hello,
I am wondering how it is going to work using SQL Server configuration type to store connection string in the SQL Server table. How does SSIS know what database to connect to if its connection string is store in the database? Thanks
 

View Replies !
SQL Server Configuration Manager: Connection To Target Machine Could Not Be Made In A Timely Fashion
I have a SQL Server 2005 box that was moved from a domain environment to a non-domain environment and was never dropped from its original domain before moving over.  Subsequently a new domain was created at the data center this SQL Server box now resides in.  The machine was dropped from its old domain and joined to the new one.
 
All the while the service accounts were set to the local admin account.  When I tried to start the Configuration Manager I got the message "Connection to target machine could not be made in a timely fashion.".  I read some blog entries and tried changing all the service accounts to Local System and the error message still came up.
 
All of the SQL Server services run fine.  It is just this management console that I cannot open.  I wasn't with this employer when this box was moved to the data center so I do not know if it worked prior and there isn't anyone here that could give me its history.
 
Any help would be appreciated.

View Replies !
Connection String
how can I use server.mappath in an aspx page inside a sqldatasource tag
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("users.mdb")
this works in aspx.vb page but not works in the aspx page
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("users.mdb")   this line causes error
ProviderName="System.Data.OleDb" SelectCommand="SELECT * FROM [track]">
</asp:SqlDataSource>

View Replies !
Connection String Help
  hello all
i use (RDB Relational Data Base)
and i need the correct connection string to use it in my asp project  Page_load
  i dont want to us dsn to connect to my database
 
this is my DSN info

View Replies !
Connection String Help
Hello all,
Please help me as i am not able to connect to my database
i have my databse in datab directory
and this is my connection string
<add name="Connstrmy" connectionString="my server ; AttachDbFilename=&quot;datadirectory est.mdf&quot;;uid=username; pwd=passowrd;"
providerName="System.Data.SqlClient" />
 
hosting people have said that you are using uid and password for databse and not of server
i have to add user id and password for server also
how do i do that?
is user id=uid
pwd=password?
please help me

View Replies !
Connection String In J#?
 hi all...i need the code for providing connection string in visual J#....am declaring the connection string globally in webconfig file using the key 'SqlCon' am integrate the connection in all my pages..in C# am using like this             string Strconnection1 = System.Configuration.ConfigurationSettings.AppSettings["SqlCon"];            SqlConnection Sql_con1 = new SqlConnection(Strconnection1);            Sql_con1.Open();  but in J# i dont know how to implement the connection....if anybody have an idea let me know quickly....thanks in advance.... 

View Replies !
Help With Connection String
Could someone help me with my connection string and how I should create it?
I have a Windows 2003 server running MS Sql 2005.  This is a separate server, meaning I'm developing my ASPX code on my laptop and FTP the code over to the server.   I'm not sure how to write my connection string.   Should My current connection string point to my locally hosted DB.  Now that I have my own server should I replace my current 'localhost' entry with the server's IP address?  Do I need to create a DNS on the server?  Sorry, I'm very new to all this and I'm lost.  Any help would be greatly appricated. 
 

View Replies !
Connection String Help
here is sample conenction string i want o use for my web site 
<add name="myconstr" connectionString="data source=//SQLEXPRESS; AttachDbFilename=&quot;data est.mdf&quot;;Trusted_connection=yes; uid=&quot;username&quot;; pwd=&quot;password&quot;; Integrated security=true;Connect Timeout=30;User Instance=True"
providerName="System.data.sqlclient" />
now i am getting this error
 
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
please tell is my connection string wrong?
i have sahred hosting they say its coding problem.
and i guess
its may be becasue
 datasource as SQLEXPRESS
Please help me where I am wrong?
username and passowrd its the one provided by them
data folder i have created under wwwroot
wwwroot s my websites root folder
please help at your earliest as i am new and have no other source of help.
 
 
 

View Replies !
Connection String??
    Hi ,I m using this Connection string Data Source=Dev30/SQLExpress;Server=Dev30;Initial Catalog=Fran;Integrated Security=sspi; i get an error An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections i set the Surface area connection to TCP/IP browser satred..!! Still get this error !!Regards,Francis P.                

View Replies !
Connection String In VB
I have the following code:
' Dim connStr As String = System.Configuration.ConfigurationManager.AppSettings("AppDoc")
Rather than use the AppSettings within Configuration Manager, I just want to use the connection string.  I've seen examples of this in CS but none in VB.  Can someone point me in the right direction?
I thought it would be something like this but it doesn't work:
Dim connStr As SqlDataSource = New SqlDataSource(ConfigurationManager.ConnectionStrings["AppDoc"].ConnectionStrings)

View Replies !
Connection String
Hi , I've been searching for this answer for a few hours now but unfortunately I still can not sort it.
I'm attempting to make a "Database Driven Hierarchical Menu" from this tutorial http://aspalliance.com/822
It explains in the tutorial that you must change the connection string to point to your database and add user name and password. (i dont have a user name or password for my local server, or atleast I dont think I do!)
Below is my connection string:DataSet ds = new DataSet();
string connStr = "server=localhost;Trusted_Connection=true;database=Product.mdf";using (SqlConnection conn = new SqlConnection(connStr))
{string sql = "Select MenuID, Text, Description, ParentID from Menu";SqlDataAdapter da = new SqlDataAdapter(sql, conn);
da.Fill(ds);
da.Dispose();
 
Every time I try to run the page I get this error.
Cannot open database requested in login 'Product.mdf'. Login fails.Login failed for user '*****'
Can anyone see where I'm going wrong?  I'm quite new to all this so I apologies if this seems a bit stupid.
Many Thanks

View Replies !
Connection String
Can VWD generate it by itself? I have a MDF file and I need to get the connection string.

View Replies !
Connection String Help Please
I am using Dreamweaver 8 on Windows XP. I am trying to connect to SQL Server 2005. My connection string isn't right. I ran the OBDC test and it works so I know its the connection string. My webpages give me the error that the server does not exist or access denied. When I use anything else like SQLNCLI.1 for the provider it gives me the error that the provider is not found. What should the connection string consist of and what should I use for Provider?
MYCONN_Conn ="Provider= SQLOLEDB;Data Source=sql2005.loc.mss.edu;Integrated Security=SSPI;Initial Catalog=OPENAssessment;"
Thanks in advance.

View Replies !
SQL Dev And IIS Connection String
hi,
ok im not sure if this is in the right forum, so sorry if its not.
 basicly,
before i optained a licence for SQL Server 2005 Dev i was using SQL Server 2005 Express.
now in IIS iv found the following entery in Connect Strings
data source=.SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true
basicly, what i want to know is do i need this entery, and if so, do i need to edit it?
 thanks

View Replies !
Connection String
hi, i was just wondering what's wrong with my code. i have class library to handle all the classes of my asp.net project. when im compiling a class, i am getting an error "Error    1    The name 'ConfigurationManager' does not exist in the current context " . i have this code for that error message: string connStr = ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString;  im not sure about this because im new in asp.net. am i missing a reference here?if yes, what namespace should i include? by the way, i tested this directly in my asp.net age and it is working fine. when i use visual c#.net, that's where the error prompts me, and i cant build that class library.

View Replies !
CONNECTION STRING
An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
ive got this error and i think its about connection string, help please, can somebody show me how to fix this, obviously im a newbie and this my first time to use .net. thanks!
 

View Replies !
Connection String
my web site is in a host. my mssql db is in other host. how I write the connection string. Please help.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved