Set SSIS variable = database connection manager name

Is it possible to set a SSIS string to only the name of a database connection manager or even the connection string it uses ? I don't see an option for that in Evaluate as expression property of ssis variable.
This is what I mean - 
SSIS Connection manager name = SQL_DBASE
SSIS String str_managerName = SSIS Connection manager name: Can you do this dynamically in SSIS ?

I'm guessing what they really want to do is evaluate some indicator (some input from a user or an infrastructure setting) and then dynamically connect to any one of 10 (arbitrary example) database servers based on what they get as input.  They
don't care about the connection manager per se.  What seems reasonable is the that the Connection Manager might take a server variable but if they wanted to do things like that they would have bought Datastage.
You might try attacking this problem at the Control Level and then connect to the database you want based on a variable you set.   I'm seeing that a Sequence Container can branch on the contents of a variable. 
Or if the dba is your friend you might get the dba to add all your servers as linked servers to a central connection machine and then you might be able to do this by putting the ssis variable in a "Sql Command from a Variable" variable. 
It might look something like this:
Server is designated in ssis var @[User::Machine]
then executing from a variable
"select top 100 * from " + @[User::Machine] + ".mydb.dbo.mytable"
Be careful as hades about levels of indirection and what quotes you want at what level.  Evaluate Expression in ssis helps with this.  The syntax I show works only with an ms sql connection server to a remote ms sql server.  This is what a
dynamic connection to a linked server connection to Oracle would look like:
"select * from
openquery("+ @[User::Machine] + ",'select * from oradb.oratable where rownum < 100')"
When ever a thousand of your best friends are helping you connect to your database (using tools like linked servers as opposed to direct connections) it's probably best to use with only small specific updates or queries, large queries or large
updates would probably take a long time and or might not finish.  But try it before you give up.   We are actually doing fairly large Oracle queries (5-10 million rows) through ms sql linked server.

Similar Messages

  • Workspace- Database Connection Manager error while connectiong to HFM

    We are on 9.3.1.using only FR and WA. I am using admin id to login to the workspace. Open Tools -> Database Connection Manager -> New-> Properties Box opens and input all the info. right and can see the appropriate HFM application. But when i click ok to add the connection i get the following error Message " *+8001: The Database Connection could not be found: a7ad1bb_11d06b21811_-7e73*+"
    I checked the FRWebApp logs
    10-16 13:36:34 ERROR ConnectionManager     Exception occured: Error Loading DatasourceList to Repository
    10-16 13:36:34 ERROR ConnectionManager     com.hyperion.reporting.util.HyperionReportException: Error Loading DatasourceList to Repository
         at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.load(Unknown Source)
         at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.getDatasources(Unknown Source)
         at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.getDatasources(Unknown Source)
         at com.hyperion.reporting.connection.ConnectionManager.refreshDatasources(Unknown Source)
         at com.hyperion.reporting.api.HRReportServer.getHRReports(Unknown Source)
         at com.hyperion.reporting.api.HRInstanceManager.getInstance(Unknown Source)
         at org.apache.jsp.common.HRClientRefTracker_jsp._jspService(HRClientRefTracker_jsp.java:1079)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
         at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Its the same story in FR studio.
    Help will be greatful.
    Thanks

    Hi,
    Yes i was able to solve it. Actually what happened was i remember registering Reporting and Analysis using the same database reusing the same old repository. And after that this issue came up.
    So i took the back up of repository database and also luckily still on testing environment and had not much to loose. So i reconfigured the relational database dropping all the databases. It resolved the issue.
    But why it happened and the real cause is not know even Oracle support was unable to answer this.
    Peace

  • Workspace Database Connection Manager error 8001

    In workspace, when I use the database connection manager to add a new connection I get the following error:
    *8001: The Database Connection could not be found: 6c1c06bf_129b3ad1455_-7ee9*
    Since this is a reinstallation over a previous installation, there are no reports to run to test if they will run.
    Any ideas?

    Hi,
    Yes i was able to solve it. Actually what happened was i remember registering Reporting and Analysis using the same database reusing the same old repository. And after that this issue came up.
    So i took the back up of repository database and also luckily still on testing environment and had not much to loose. So i reconfigured the relational database dropping all the databases. It resolved the issue.
    But why it happened and the real cause is not know even Oracle support was unable to answer this.
    Peace

  • HFM Database Connection Manager error in Workspace

    We are on 9.3.1.using only FR and HFM. I am using admin id to login to the workspace. Open Tools -> Database Connection Manager -> New-> Properties Box opens and input all the info. right and can see the appropriate HFM applications. But when i click ok to add the connection i get the following Error Message " 8001: The Database Connection could not be found: a7ad1bb_11d06b21811_-7e73"
    I tried with all the applications we have in HFM and all are giving the same Error message.
    I checked the FRWebApp logs
    10-16 13:36:34 ERROR ConnectionManager Exception occured: Error Loading DatasourceList to Repository
    10-16 13:36:34 ERROR ConnectionManager com.hyperion.reporting.util.HyperionReportException: Error Loading DatasourceList to Repository
    at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.load(Unknown Source)
    at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.getDatasources(Unknown Source)
    at com.hyperion.reporting.datasource.HrDatasourceManagerImpl.getDatasources(Unknown Source)
    at com.hyperion.reporting.connection.ConnectionManager.refreshDatasources(Unknown Source)
    at com.hyperion.reporting.api.HRReportServer.getHRReports(Unknown Source)
    at com.hyperion.reporting.api.HRInstanceManager.getInstance(Unknown Source)
    at org.apache.jsp.common.HRClientRefTracker_jsp._jspService(HRClientRefTracker_jsp.java:1079)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Unknown Source)
    Its the same story in FR studio.
    Help will be greatful.
    Thanks

    Hi There,
    Were you able to resolve your query? We are having the same issue. Could you let me know what you did?
    Regards

  • How to remove the date extensions from a filename in SSIS Flat File Connection Manager dynamically at run time

    Hello,
    I have to load data from a csv file to SQL Database. The file is placed into a directory by another program but the file name being same, has different extensions based on time of the day that it is placed in the directory. Since I know the file name
    ahead of time, so, I want to strip off the date/time extension from the file name so that I can load the file using Flat File Connection Manager. I am trying to use 'variable' and 'expression editor' so that I can specify the file name dynamically. But I
    don't know how to write it correctly. I have a variable 'FileLocation' that holds the folder location where the file will be placed. The file for example:  MyFileName201410231230  (MyFileName always the same, but the date/time will be different)
    Thanks,
    jkrish

    I don't want to use ForEach Loop because the files are placed by a FTP process 3 times a day at a specific time, for ex. at 10 AM, 12 PM and 3 PM. These times are pretty much fixed. The file name is same but the extension will have this day time stamp. I
    have to load each file only once for a particular reason, meaning I don't want to load the ones I already loaded. I am planning on setting up the SSIS process to load at 10:05, 12:05 and 3:05 daily. The files will be piling up in the folder. As it comes,
    I load them. At some point in time, I can remove the old ones so that they won't take up space in the server.  In fact, I don't have to keep the old ones at all since they are saved in a different folder anyways. I can ask the FTP process to
    remove the previous one when the new one arrives. So, at any point in time, there will be one file, but that file will have different extensions every time.
    I am thinking of removing the extensions before I load every time. If the file name is 'MyFileNamexxxxxxx.csv', then I want to change it to 'MyFileName.csv' and load it.
    Thanks,
    jkrish
    You WILL need to use it eventually because you need to iterate over each file.
    Renaming is unnecessary as one way or another you will need to put a processed file away.
    And having the file with the original extension intact will also help you troubleshoot.
    Arthur
    MyBlog
    Twitter

  • JDeveloper problem setting up a database connection

    I am having some problem setting up a connection to my database. Before I say any more let me explain what I need. I need 2 database connections 1 to a 10g R3 database and one to an 8.0.5.
    I do realize that JDeveloper will only connect back to 8.1.7 because of the JDBC version that is installed with it.
    What I really need to know is "Is it possible to define and use 2 different versions of JDBC" I really don't want to move back to the version that works with both because I am afraid of what performance/benefits I will lose from the latest and greatest.
    The latest version that I can determine will work with 8.0.5 is the last version for 9i.
    Any Ideas would be helpful.
    The reason for this situation is that I have a production database that I will have to keep up with until the full version of the system is complete so that is why I even care about 8.0.5.
    Thanks alot for your time,
    Thom

    I have a similar problem and I would much appreciate any help in this matter.
    I have a wireless network set at home with two computers connected to it:
    My workstation called Home-ws and my laptop called Acer. I can access the d:\ drive of my workstation from my laptop without any problem.
    On my workstation I installed the Oracle 10g product and on my laptop I installed Oracle SQL Developer. On SQL developer I am trying to create a connection to the Oracle server:
    My settings are as below:
    Connection name: orcl_system
    User name: system
    Password: ******
    Host name: Home-ws
    Port: 1521
    SID: orcl
    When I push test I am getting the following error message:
    Status: Failure –Io exception: The Network Adapter could not establish the connection
    Are there any special settings that should be made set up a wireless connection to my database?
    Then I did the following things below:
    1. I downloaded from oracle.com the instantclient-basic-win32-10.2.0.2-20060508.zip file and unzipped it in a folder called instantclient_10_2. There were a number of DLL and two jar files plus sqlplus.exe
    2. I started sqlplus from that server
    3. sqlplus failed with a similar error as sql developer.
    4. I checked for tnsping. There is no tnsping such and exe on my laptop. I looks like I have to install the DLLs I downloaded them but there are no instructions about how to install them. Should I just copy them in system32 folder?
    5. I looked for firewalls on my Home-ws workstation (where my oracle server is installed) and on my Acer laptop. The firewalls were activated. I added on exception called oracle for port 1521 on both computers and tried to connect again. I tried with both TCP and UDP options and it did not work in both cases.
    I am out of ideas. Any help would be much appreciated.
    Thank you in advance for your help.
    Julian

  • Set SSIS variable property 'EvaluateAsExpression' to true dynamically

    I have a variable in SSIS.Initially i will set the value 'EvaluateAsExpression' property to false.
    In my package.I have a foreach  loop container.Once the execution enters in to the for each loop container.I want to set the 'EvaluateAsExpression' to true.Is that possible??
    Can anyone please help

    Hi Abhinav530,
    It’s not supported to change the EvaluateAsExpression property of a SSIS variable at runtime. I guess the sceanrio may be that you want the variable to use the default value when the package execution hasn’t entered the Foreach Loop Container phase, while
    the variable get value from the expression when the execution of the Foreach Loop Container starts. In this circumstance, you can create another variable with the same name but in the Foreach Loop Container scope. In this way, you don’t need to make changes
    to the existing expressions that reference the variable, and the variable in Foreach Loop Container scope will override the same name variable in package scope when the Foreach Loop Container executes.
    Regards,
    Mike Yin
    TechNet Community Support

  • SSIS 2012 EXCEL Connection manager error

    Hello all,
    When i try to make any excel connection manager in ssis 2012 its show below error.
    "Could not retrieve the table information for the connection manager 'Excel Connection Manager'. Failed to connect to the source using the connection manager 'Excel Connection Manager' in ssis 2012 error"
    I try for it EXCEL source and EXCEL destination. Both time same error happen. 
    Before i m use ssis 2008 then its work well bt after install 2012 its start this problem. I m also change debug 64 bit in false from true.
    Thanks for help

    Hi is there any way to install 32 ACE OLE DB in 64 bit system without uninstall my other software .
    I tried yesterday to instal 32 bit ACE but its told me u need to uninstall 64 bit software first :(
    thanks
    When using the command line, you can force the installation of the 32-bit version while the 64-bit version has already been installed.
    http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/mssqlserver/force-ace-installation/
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • Set password for database connection at runtime

    Hi there,
    is it possible to set the password and/or the user for the database connection at runtime.
    The use case is to read the values from a file and decrypt them, and the to establish the conenction. So that i don't habe to redeploy everything if there is a change.
    Thanks in advance.

    How exactly do i set these values for the datasource?
    Edited by: Alex on 15.02.2012 09:50
    €: JDeveloper 11.1.1.5.0
    The use case is, that there is a file with an encrypted password. This should be decrypted and then be used for the connection. So when this encrypted passowrd changes, i don't want to edit and deploay the app once again. Instead the new encrypted password should be decrypted via code an then be used.
    Edited by: Alex on 15.02.2012 10:00

  • Database Connection Manager

    Hi all,
    We are implementing Hyperion planning version 11.1.2.1.0.83(latest I believe) and I am trying to establish a connection between financial reporting to one of the planning db's. In the past even in 11.1.2.1 you would go to Tools > Database connection and go from there. I dont even see that option on this version. I have looked online and in admin guides and they all point to the same as in above. Has this function changed or moved?
    Thanks,
    Jeff

    You need to open the Explore tab first before you can see this option.
    Otherwise check your permissions ;-)
    Cheers, Iain

  • Setting substitution variable to connection string (not ODBC name)

    Hi,
    I havce a question regarding the use of a sub variable in SQL data loads as the data source. I find this works great when the variable is set to an existing ODBC. What I would really like to do is skip the ODBC creation step and have the substitution variable be the actual connection string, such as "Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;"
    Can anyone confirm or deny whether this functionality exists? As usual, the documentation is vague on the subject and doesn't exclude the possibility, but doesn't include it, either.
    Thanks!

    My first thought is that no, you can't do that. Even if you could, I'm not sure if you'd want to do that. The easiest way to find out is simply to try. But more than likely I think you should just have "hard-coded" values for the source/target server. If you are trying to stay with the same load rule for dev/test/prod servers, you might just be better off coming up with a naming scheme that let's you keep them all separate.
    Cheers,
    Jason Jones
    [http://www.jasonwjones.com]

  • How to set a pooled database connection with oc4j

    I am testing my application with ocj4 to see how it performs. But I have some doubts about connection pooling.My application only contains jsp and servlets. My database is oracle 8.1.7 and I use the following data-source.xml entry:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="pooledPC"
    location="pooledPC-location"
    pooled-location="jdbc/pool/poolPC"
    xa-location="jdbc/xa/HypersonicXADS"
    ejb-location="jdbc/ejb/poolPCDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="user"
    password="pswd"
    url="jdbc:oracle:thin:@localhost:1521:sid"
    inactivity-timeout="30"
    max_connections="40"
    min_connections="10"
    />
    I have some doubts about:
    - which class should I use: I can choose between com.evermind.sql.DriverManagerDataSource, com.evermind.sql.ConnectionDataSource, com.evermind.sql.OrionPooledDataSource, com.evermind.sql.DriverManagerConnectionPoolDataSource, etc.
    - From where I should take the connections: from location, pooled-location , ..
    Could someone clarify me this issues?
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by [email protected]:
    Are there some other documents about oc4j that you could sent?
    I have been looking on orionserver but the documentation is not complet.<HR></BLOCKQUOTE>
    For Orion, your best bet is not the documentation but to search for your topic via the extensive mailing list. It is quite active and discusses such topics as pooled connections...also for other sorts of information, look at www.orionsupport.com and www.jollem.com.

  • Custom SSIS Source: How do I make it create a new connection manager and display its properties window?

    I am writing a custom SSIS source that uses a standard SSIS Flat File Connection Manager. I have got a working UI that shows all usable connection managers in a dropdown list and allows the user to pick one. I would like to be able to have a button that
    the user can click on to create a new connection manager, and it would open the properties window for the new connection manager so it can be set up.
    Abridged code:
    Public Class MyNewSourceUI
    Implements IDtsComponentUI
    Private MetaData As IDTSComponentMetaData100
    Public Function Edit(ByVal parentWindow As IWin32Window, _
    ByVal variables As Variables, _
    ByVal connections As Connections) As Boolean _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Edit
    Dim UIwin As New MyNewSourcePropertiesWindow(MetaData, connections)
    Return (UIwin.ShowDialog() = DialogResult.OK)
    End Function
    Public Sub Initialize(ByVal dtsComponentMetadata As IDTSComponentMetaData100, _
    ByVal serviceProvider As System.IServiceProvider) _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Initialize
    MetaData = dtsComponentMetadata
    End Sub
    End Class
    Public Class MyNewSourcePropertiesWindow
    Inherits System.Windows.Forms.Form
    Private _metadata As IDTSComponentMetaData100
    Private _cnxions As Connections
    Public Sub New(ByVal ComponentMetaData As IDTSComponentMetaData100, ByVal connections As Connections)
    InitializeComponent()
    _metadata = ComponentMetaData
    _cnxions = connections
    ShowConnections()
    'Setup Existing Metadata '
    End Sub
    Private Sub ShowConnections()
    Me.cboConnection.Items.Clear()
    Me.cboConnection.Items.AddRange((
    From i As ConnectionManager In _cnxions _
    Where CType(i.Properties("CreationName").GetValue(i), String) = "FLATFILE" _
    AndAlso CType(i.Properties("Format").GetValue(i), String) = "Delimited" _
    Select i.Name).ToArray())
    End Sub
    Private Sub btnNewConnection_Click(ByVal sender as Object, ByVal e as System.EventArgs) Handles btnNewConnection.Click
    Dim newconn As ConnectionManager = _cnxions.Add("FLATFILE")
    ShowConnections()
    Me.cboConnection.SelectedItem = newconn.Name
    End Sub
    Private Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click
    Me.DialogResult = DialogResult.Cancel
    Me.Close()
    End Sub
    Private Sub btnOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOK.Click
    'Store any metadata changes '
    Me.DialogResult = DialogResult.OK
    Me.Close()
    End Sub
    End Class
    That's what I've got so far. I had assumed that adding a new connection would automatically display the properties window to the user (right?). However, in my tests, what actually happens is that it creates the new source with a random GUID for a name and no
    other properties set up, and puts it in the connections pane, and that's it. Not real useful.
    Obviously, something else is required to make the properties window appear, but I can't find what it is. There's no ShowUI() member on any of the classes I have, and I haven't been able to find out the name of the UI class that's used by the flat file source.
    Does anyone know how this is done? I know it can be done, because such a button exists in the normal Flat File Source UI.

    Yes, you need to drive the UI creation. I see you create a custom connection manager, in this case on how to build its UI please refer to http://kzhendev.wordpress.com/2013/08/07/part-2-adding-a-custom-ui-to-the-connection-manager/
    Arthur My Blog

  • Setting User# variable according to TS Client name

    I need to set the user# environment variable upon RDP login according to which client the users are connecting from. The server is Windows 2008 R2 and the clients are currently Win XP Pro. The username is not important, only the name of the client computer.
    The variable is needed to tell our POS software where the users are located. I have no scripting experience other than creating .bat files but that doesn't work in Windows 2008. Thanks in advance.

    I am referring to an environment variable "User#" that needs to be a number (1-13) that corresponds to a workstation number defined within our software. The software looks for this variable to decide which workstation the user is logging in from
    and therefor which address, phone number, location, etc. to print on reciepts and such. Each workstation is assigned a unique number and there cannot be duplicates as the number also determines which workstations can process credit card sales (i.e. cash registers).
    This is easy using the RDP connection software on the workstation when I set it to run a specific .bat file on the server to set the variable within the users session when the user first logs on. I would rather not use that method. I want to set
    that variable based on the name of the workstation and not the username. I cannot set a permenant user# for each user as our users will use workstations at different locations. If set permenantly and a user logged in from location 1 instead of location 2 the
    reciepts and other things would not be correct. I hope that is clear enough. I would post a screenshot as an example but I don't know how on this forum. Thanks for any help you can provide.
    I don't mean to sound like a newbie but I am new to scripting. Therefore I may require some help actually writing the script and putting it in the right place.

  • DSN connection not available in connection manager

    Hi -- I am having problems connecting to an ODBC data source with SSIS.
    I am trying to connect to a mysql database.  The connection is set up in "Administrative Tools" as a System DSN, and I can sucessfully connect using "Test" from there.
    But the connection is not shown as available in SSIS.
    In Connection Manager, I create a new ADO.NET connection, choose New, ODBC data provider, but my system DSN connection is not in the dropdown (no ODBC connections are), and if I try to specify it with a connection string
    Dsn=ConnectionName;
    I get:
    Test connection failed because of an error initalizing provider.  Error [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified.
    I have tried recreating it, creating a new data source with a new name, but none of the Dsn's come are seen by SSIS.
    To make it more frustrating, it was working just days ago and I don't know what changed...
    Any help appreciated,
    Mike

    The BIDS development environment is 32 bit. So it looks for the 32 bit providers at design time. However, when the package is run in BIDS, it will use the 64-bit providers, as long as the Use64BitRuntime property of the project is set to TRUE.
    Outside of BIDS, which set of providers is used depends on which version of DTEXEC you run. There is a 32-bit version and 64-bit version - each will load the matching provider. Something else to be aware of - not all providers have 32- and 64-bit versions. The Jet providers (used for Excel and Access) only have 32-bit versions, for example.

Maybe you are looking for

  • Date variable- delivery report

    Hi all, In my report, there are two structures designed :- Pending deliveries and Reservation deliveries. For Pending deliveries: I have used Confirmation Del Date(ZCNFDT) and Open Qty as the restrictions. The Date variable is built upon Confirmation

  • How does my application save the raw data to binary file?

    Hi all, At first, please look at my attachment. There is the part of my code (it is inside of a while loop) which saves a raw data from my firewire camera. I am thinking how does this saving process work? How does it save the data in each while loop'

  • How to put JScrolPAne in a JText Area

    JTextArea TArea=new JTextArea("",20,20); JScrollPane SPane= new JScrollPane(TArea); c.add(TArea,0); how??

  • Imac not seeing wifi

    My imac is not seeing my wifi. my macbook is connecting to the wifi at the same place.

  • Autosys job scheduling on particular instance

    I have to run one procedure which WARMUPs the memory and keep the data in BUFFER POOL as we set the BUFFER_POOL for few tables as KEEP. But I want to make sure my proc runs on both the nodes/instance of my database. Can you please suggest if this is