Sync AD user credentials with a SQL database

Hi folks!
I need some help to how Sync the user and password from my Active Directory, to a SQL Database.
Actualy, my enviroment have a database with users and password added, my custom applications uses it like a passport, but now I want to use Active Directory to control these users, but I can't use windows authentication in my old apps. I was reading about
Forefront Identity Manager to do this, but I need a free solution.
The Sharepoint database sync user credentials with AD? Any ideas how I can do this?
Thanks in advance!
MCTS Exchange 2010. @pedrongjr

Looks like you need a linked SERVER to AD
create table #t (email varchar(100),sAMAccountName varchar(100),EmployeeID varchar(100))
insert into  #t Exec master..spQueryAD 'SELECT EmployeeID, SamAccountName, mail
 FROM ''LDAP://dc=companyname,dc=com'' WHERE objectCategory=''person'' and objectclass=''user''', 0
USE [master]
GO
/****** Object:  StoredProcedure [dbo].[spQueryAD]    Script Date: 17/03/2014 13:56:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[spQueryAD] (@LDAP_Query varchar(255)='', @Verbose bit=0)
as
--verify proper usage and display help if not used properly
if @LDAP_Query ='' --argument was not passed
    BEGIN
    Print ''
    Print 'spQueryAD is a stored procedure to query active directory without the default 1000 record LDAP query limit'
    Print ''
    Print 'usage -- Exec spQueryAD ''_LDAP_Query_'', Verbose_Output(0 or 1, optional)'
    Print ''
    Print 'example: Exec spQueryAD ''SELECT EmployeeID, SamAccountName FROM ''''LDAP://dc=domain,dc=com'''' WHERE objectCategory=''''person'''' and objectclass=''''user'''''', 1'
    Print ''
    Print 'spQueryAD returns records corresponding to fields specified in LDAP query.'
    Print 'Use INSERT INTO statement to capture results in temp table.'
    Return --'spQueryAD aborted'
    END
--declare variables
DECLARE @ADOconn INT -- ADO Connection object
      , @ADOcomm INT -- ADO Command object
      , @ADOcommprop INT -- ADO Command object properties pointer
      , @ADOcommpropVal INT -- ADO Command object properties value pointer
      , @ADOrs INT -- ADO RecordSet object
      , @OLEreturn INT -- OLE return value
      , @src varchar(255) -- OLE Error Source
      , @desc varchar(255) -- OLE Error Description
      , @PageSize INT -- variable for paging size Setting
      , @StatusStr char(255) -- variable for current status message for verbose output
SET @PageSize = 1000 -- IF not SET LDAP query will return max of 1000 rows
--Create the ADO connection object
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Create ADO connection...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OACreate 'ADODB.Connection', @ADOconn OUT
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOconn , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--SET the provider property to ADsDSOObject to point to Active Directory
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Set ADO connection to use Active Directory driver...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OASETProperty @ADOconn , 'Provider', 'ADsDSOObject'
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOconn , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Open the ADO connection
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Open the ADO connection...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OAMethod @ADOconn , 'Open'
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOconn , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Create the ADO command object
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Create ADO command object...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OACreate 'ADODB.Command', @ADOcomm OUT
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOcomm , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--SET the ADO command object to use the connection object created first
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Set ADO command object to use Active Directory connection...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OASETProperty @ADOcomm, 'ActiveConnection', 'Provider=''ADsDSOObject'''
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOcomm , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Get a pointer to the properties SET of the ADO Command Object
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Retrieve ADO command properties...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OAGetProperty @ADOcomm, 'Properties', @ADOcommprop out
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOcomm , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--SET the PageSize property
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Set ''PageSize'' property...'
    Print @StatusStr
    END
IF (@PageSize IS NOT null) -- If PageSize is SET then SET the value
BEGIN
    EXEC @OLEreturn = sp_OAMethod @ADOcommprop, 'Item', @ADOcommpropVal out, 'Page Size'
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommprop , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
              RETURN
        END
    EXEC @OLEreturn = sp_OASETProperty @ADOcommpropVal, 'Value','1000'
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommpropVal , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
              RETURN
        END
END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--SET the SearchScope property to ADS_SCOPE_SUBTREE to search the entire subtree 
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Set ''SearchScope'' property...'
    Print @StatusStr
    END
BEGIN
    EXEC @OLEreturn = sp_OAMethod @ADOcommprop, 'Item', @ADOcommpropVal out, 'SearchScope'
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommprop , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
              RETURN
        END
    EXEC @OLEreturn = sp_OASETProperty @ADOcommpropVal, 'Value','2' --ADS_SCOPE_SUBTREE
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommpropVal , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--SET the Asynchronous property to True
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Set ''Asynchronous'' property...'
    Print @StatusStr
    END
BEGIN
    EXEC @OLEreturn = sp_OAMethod @ADOcommprop, 'Item', @ADOcommpropVal out, 'Asynchronous'
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommprop , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
              RETURN
        END
    EXEC @OLEreturn = sp_OASETProperty @ADOcommpropVal, 'Value',True
    IF @OLEreturn <> 0 
        BEGIN -- Return OLE error
              EXEC sp_OAGetErrorInfo @ADOcommpropVal , @src OUT, @desc OUT
              SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
              RETURN
    END
END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Create the ADO Recordset to hold the results of the LDAP query
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Create the temporary ADO recordset for query output...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OACreate 'ADODB.RecordSET',@ADOrs out
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOrs , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Pass the LDAP query to the ADO command object
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Input the LDAP query...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OASETProperty @ADOcomm, 'CommandText', @LDAP_Query 
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOcomm , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Run the LDAP query and output the results to the ADO Recordset
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Execute the LDAP query...'
    Print @StatusStr
    END
Exec @OLEreturn = sp_OAMethod @ADOcomm, 'Execute' ,@ADOrs OUT
IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOcomm , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
--Return the rows found
IF @Verbose=1
    BEGIN
    Set @StatusStr = 'Retrieve the LDAP query results...'
    Print @StatusStr
    END
EXEC @OLEreturn = sp_OAgetproperty @ADOrs, 'getrows'
    IF @OLEreturn <> 0 
    BEGIN -- Return OLE error
          EXEC sp_OAGetErrorInfo @ADOrs , @src OUT, @desc OUT
          SELECT Error=CONVERT(varbinary(4),@OLEreturn), Source=@src, Description=@desc
          RETURN
    END
IF @Verbose=1 Print Space(len(@StatusStr)) + 'done.'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • I need to host a website with a SQL database - Azure pricing details are too confusing

    Hello,
    I need to give a potential client a hosting price for a somewhat simple web application they want me to build. I told them it shouldn't be a problem. After gathering the requirements, I figured I would use the following technology to build and host
    it:
    ASP.NET 4.5
    MVC 5
    1 SQL Database ~ 25GB with options to expand and also with a backup
    SSL certificate needed
    Hosting would be on Azure because I have some experience using Visual Studio 2012 and integrating the Visual Studio Online (TFS) source code and scrum web applications. I've never actually spun up a website with a SQL database using Azure before, but I
    imagined it wasn't too difficult to find a general hosting plan to support the above requirements.
    The use of the website will be very simple and limited to the basic CRUD operations. Will support forms authentication using the Identity 2.0 framework. The web applications main purpose is to fill out a form for new accounts, have a search page for
    those accounts, a page to view a created account and add notes to it. So performance wise, it isn't asking for much. I just want it to be fast and secure.
    So I start looking on the Azure's pricing landing page which is here: (can't put links in here, but search Azure pricing on Bing) and I see this Pricing Calculator, so I click it
    First thing I notice is the Websites tab doesn't mention SQL Database - in fact the Data Management is a separate tab from Websites. And if I made my selections on the Websites tab, the estimated monthly price doesn't stay the same when I go to the Data
    Management tab - so I get the illusion I have to have two separate purchases.
    I'm not exactly sure if the Pay as You Go billing feature would be okay because it's just a bit scary to leave every monthly payment up to chance; somewhat. Would love to know if there is other payment options that I could see for what I described above.
    I want to use Azure to host my asp.net website - it makes sense and the integration with Visual Studio is amazing. I love the publish feature for both MVC 5 Projects and SQL Database Projects.
    Thanks in advance for the help!

    Hello jdevanderson,
    I suggest that you start by looking at the pricing TIERS for the Azure website. This link will give you clarity on different Service TIERS that are availaible:
    http://azure.microsoft.com/en-in/pricing/details/websites/
    You can guage your requirement and choose the Service TIER accordingly.
    And regarding the database, you are right about it. You will be charged seperately for the database. You can refer to this link that will give you clarity on SQL database pricing:
    http://azure.microsoft.com/en-in/pricing/details/sql-database/
    Refer to this link for more information on 'How pricing works':
    http://azure.microsoft.com/en-in/pricing/
    Use the full calculator to add your website and the database to get an estimated cost:
    http://azure.microsoft.com/en-in/pricing/calculator/?scenario=full
    Thanks,
    Syed Irfan Hussain

  • Form created with Livecycle Designer with a SQL database - do you need LiveCycle Forms installed?

    Hello,
    I'm REALLY hoping someone here can help me, I have spent over four hours on the phone to Adobe in the last 3 days and I'm getting no where what-so-ever. I can't even find out where /how to complain about it! (but thats another story)
    Here's my situtation:
    I work for a company with approx 140 staff. On one computer, we have Adobe Livecycle Designer ES installed, and we have used that program to create a form which has a link to a SQL database.
    The link in this form doesn't work on the other computers which has the basic (free) Adobe Reader. From doing research within these forums
     , I have found that the form will not work on other computers unless they have Adobe Livecycle forms installed on their machines. 
    What I need to know (and what they cannot seem to tell me when I call), is two things:
    Is it correct that in order to use a form created in Livecycle Designer which has a link to a SQL database, that the machine must have LiveCycle forms installed?
    How much does Adobe LiveCycle Forms costs?
    PLEASE, if you can answer this question, I would REALLY appriciate it....
    Thank you!

    I presume you are asking if you need Livecycle Forms ES? Forms ES is a component of the livecycle software suite intended as a document service which will be installed on a server within the organisation. A couple of things this document service can do is to render XDP into multiple formats (PDF, html, etc.), execute script server side (for example the database connection) on behalf of the client (reader, etc.), integrate with backend components, etc. So no you do not install this on each client.
    For database connections to work, you either have a server with Forms ES installed which can connect on each clients behalf (ie. Client->Forms ES Server->Database), or you have a reader-extended PDF to allow connections to be use in the free basic Reader (i.e. direct calls to the database or using web service calls to your own database components). However, reader-extended pdf would probably require Reader Extensions ES component installed on a server (you once off extend your developed pdf through this and then hand it out to each of the end users). Not sure if the Acrobat Reader extensions will cover this functionality since I have not tried that. I dont think it does. Otherwise you would need full acrobat on each client.
    How much database integration is your form actually doing at the moment? read only? Full access? And how many clients do you expect to hit your database? Depending on what you need the form to do, there is always the option to try and build the integration yourself. Do simple http submits from the browser (hosting reader as a plugin) to some component somewhere which in turn hits your database. Wouldnt require additional licensing but alot more development work.
    As for cost for the various components, thats a question only Adobe can answer for you since they all sit squarely in the enterprise space and licensing for that is not as simple as off the shelf products.
    Maybe someone else has a view on it or has an alternative.

  • SAP Netweaver MDM 7.1 Installation with MS SQL Database

    Hello Experts,
    I have installed MDM  7.1 System on IBM AIX and connected to Oracle database. I have observed whenever we create Repositories MDM Created Table Spaces/ Data files under the one Oracle_SID that is how it should be . Now we had to install MDM  on windows machines using with MS SQL DB. I have installed it and connected to MS SQL Server.
    The problem is when ever we create or copy new repositories it is creating new database for each repository under MS SQL Server, Although we have created a separate SQL Database and mentioned the same name while initializing the database connection.
    Example while connecting MDM For first time to the DB , I have used 4 schema options , Now if i create a new repository it is creating 4 Database instances under MS SQL DB. On oracle it will just create Table Spaces.
    Is there any one who worked on MDM Using MS SQL DB. Is this a problem or This is how it works on MS SQL  ?
    Please help , I really appreciate your help.
    Thanks,
    Ravi

    Hi Ravi,
    As per my understanding this is the standard behavior of MS SQL Database. I think this is how it works.
    Please Refer, Step III>> of this blog where he states that For each repository, there are two databases XXXX_m000 and XXXX_z000. /people/balas.gorla/blog/2006/09/08/change-tracking-in-mdm
    Also refer,  Here it says connect to database for repository.
    Step 3) Connect to Database u2013 RepositoryName_Z000 and then open table A2i_CM_History http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10cbe10c-0654-2c10-3d8b-ff99dadc402e?quicklink=index&overridelayout=true
    Regards,
    Mandeep Saini

  • Reconfiguration with new SQL database

    Hi all,
    We just changed our database SQL in our EPM 11.1.1.3 platform.
    I guess I need to reconfigure Shared Services and Essbase.
    I can't configure Shared Services on the new SQL database with the error message "The port 28080 is already in use".
    The log message is :
    (Sep 12, 2011, 00:17:33 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, INFO, Server: Tomcat 5; deployment type = auto
    (Sep 12, 2011, 00:17:33 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, INFO, Server: WebLogic 9; deployment type = both
    (Sep 12, 2011, 00:17:33 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, INFO, Server: WebSphere 6; deployment type = both
    (Sep 12, 2011, 00:17:33 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, INFO, Server: Oracle 10g; deployment type = both
    (Sep 12, 2011, 00:17:35 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, INFO, AppServerSelectionPanel in queryExit
    (Sep 12, 2011, 00:17:35 PM), com.hyperion.cis.config.wizard.AppServerSelectionPanel, DEBUG, AppServer selected: Tomcat 5
    (Sep 12, 2011, 00:17:37 PM), com.hyperion.cis.config.wizard.AppServerDeploymentPanel, DEBUG, serverLocation:
    (Sep 12, 2011, 00:17:37 PM), com.hyperion.cis.config.wizard.AppServerDeploymentPanel, DEBUG, Deploy component [0]: Shared Services
    (Sep 12, 2011, 00:17:37 PM), com.hyperion.cis.config.wizard.AppServerDeploymentPanel, DEBUG, Server Name: SharedServices9
    (Sep 12, 2011, 00:17:37 PM), com.hyperion.cis.config.wizard.AppServerDeploymentPanel, DEBUG, Listen Port: 28080
    (Sep 12, 2011, 00:17:37 PM), com.hyperion.cis.config.wizard.AppServerDeploymentPanel, DEBUG, port in use error
    Indeed when I look in the server, I see that the port is already used by SharedServices.exe. I suppose that's my first configuration...
    How can I debug it ?
    Thanks in advance

    Now that's ok with the configuration, great !
    But now, the Essbase service disappears of the list of the server and when I launch Essbase from the Program menu, nothing happens. The log is :
    [Mon Sep 12 17:35:58 2011]Local/ESSBASE0///Error(1051223)
    Echec de l'appel de la fonction d'authentification unique [css_init] avec l'erreur [CSS Error: CSS method invocation error: com.hyperion.css.CSSSystem.<init>]
    [Mon Sep 12 17:35:58 2011]Local/ESSBASE0///Info(1051198)
    Echec de l'initialisation de l'authentification unique
    [Mon Sep 12 17:35:58 2011]Local/ESSBASE0///Info(1051232)
    Utilisation de French_France.Latin1@Default comme environnement local Essbase
    Have you any idea ?
    Thanx.

  • How do I ensure all processes are done with a SQL database so that I can delete it?

    I close and dispose of the sql connection when leaving a form and opening another form. In the new form I identify a sql database to delete. I use a 'System.IO.File.Delete(filepath_file_to_DELETE)
    I get a error because the file is being used by another process. How do I make sure I am completely releasing the database when leaving the original form or when loading the next form?
    Thanks

    Dispose of any SqlCeConnection objects in use by your app and any other apps accessing the same file.
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • Help with structuring SQL databases for multiple photo galleries..help!?!

    Hello all,
    As a new PHP/SQL developer I have found great technical assistance from both this forum and from David Powers and his wonderful books. I am at a crucial point in my web development and although I believe I know which direction I need to go, I am still uncertain and so I appeal to you all for your help, especially David Powers.
    The website I am building is one which will house many photo galleries. I was able to successfully modify the code provided in David Powers’ book ‘php Solutions’ so that I got the photo galleries constructed and working in the manner I desired.
    That being said, a person browsing my website will be presented with a link to see the photo galleries. There will be five (5) categories in which the photos will be separated, all based on specific styles. Now that I have the galleries working, I need to know how to structure things so that I can create a page, like a TOC (table o’ contents) that shows all photo galleries by displaying a thumbnail image or two along with the description. Perhaps I’ll limit the TOC page to only show the latest 25 galleries, arranged with the most current always on top.
    The way I have my galleries set up, I have a separate database for each one, containing the photo filenames and other relevant data. To build my TOC structure, should I have an overall database that contains each gallery database filename along with category? This is where I have no idea what I’m doing so if my question sounds vague, please understand I have no other idea how to ask.
    The site will grow to the point of having hundreds, if not thousands of photo galleries. I simply want to know how to (organize them) or otherwise allow me to build a method to display them in a TOC page or pages.
    I know this is a bit dodgy, but with some info and questions back from you, I feel confident that I should be able to get my point across.
    Lastly, I am still developing this site locally, so I have no links to provide (though I feel that shouldn’t be necessary right now).
    Many sincere thanks to you all in advance,
    wordman

    bregent,
    I'm chewing this over in my head, reading up on DB's in 'phpSolutions' and I think that things are slowly materializing.
    Here is the structure of the website that I have planned:
    MAIN PAGE
    User is presented with a link on the main page to select photo galleries (other links are also present). Clicking the link takes them to the Category Page.
    CATEGORY PAGE
    On this page, the User will then have 5 choices based on categories (photo style). CLicking any of these 5 links will take them to respective TOC pages.
    TOC PAGE
    On this page, the user is greeted with a vertical list of galleries or photosets; one to three thumbs on the left, a small block of descriptive text on the right (ideally containing date/time info to show how recent the gallery is). Newest galleries appear at the top. Eventually, when there are tens or hundreds of galleries in any given catrgory, I'll need to adopt a method for breaking up the qualntity in groups (we can pick 20 for example) that can be scrolled through using a small navbar. This will keep the TOC Pages from getting endlessly long and avoid endless scrolling. User selects a gallery on this page to view.
    THUMBNAIL PAGE
    On choosing a gallery, a thumbnail page is generated (I have this working already)
    IMAGE PAGE
    On selecting any thumbnail in the grid, the user is taken to the full-sized photo with a navbar and photo counter at the top. Navlinks allow forward and back, a link to the first image, a link to the last image and one link back to the thumbnail page. (I have this working already).
    I provide this info in an effort to help understand the basic structure of my site. The description above is as close to a step-by-step illustration as possible.
    Thank you!
    Sincerely,
    wordman

  • Sender JDBC Adapter with Mutiple SQL Database Tables.

    Hi All,
    My requirement is SQL->PI7.0->BI.
    I have a plan to go with the senario like this : JDBC sender->SAPPI->ABAP Proxy.
    And also I need fetch the data from more than 10 data tables with different database tables with key fields.
    Could you please suggest me, How to extract all tables data to SAP PI System. Either need to go with Stored procedures or Any Join conditions or each table like as one Interface.
    Please provide me your suggestions.
    Regards,
    Chandra

    Hi ,
    Chandra ,
    Best way is Database Views
    Involve a Database guy in your scenario : Tell DBA the fields required , tell DBA the PrimaryKey and ForeignKey Relation Between All your 10 Tables.
    DBA will create a View for you on 10 Tables.
    So in Ur SELECT Query . you can write simply
    Select * from <ViewName>;
    And One more thing to Tell DBA to create a UPDATABLE VIEW not only READ-ONLY View.
    By this way you can way you can Update VIEW  also in UPDATE QUERY of sender Adapter...
    Regards
    PS

  • Enterprise studio Configuration pbm with MS SQL Database 2005.

    We are using MS SQL 2005 database in our project. While configuring Oracle 10g Enterprise studio with database we are getting the following exception.
    weblogic.application.ModuleException:
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    [<I> 10/06/09 21:43:24]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    [<I> 10/06/09 21:43:24]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16)
    [<I> 10/06/09 21:43:24]      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:216)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.prepare(DeploymentReceiverCallbackDeliverer.java:40)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.callDeploymentReceivers(AwaitingContextUpdateCompletion.java:164)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.handleContextUpdateSuccess(AwaitingContextUpdateCompletion.java:66)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.contextUpdated(AwaitingContextUpdateCompletion.java:32)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.targetserver.TargetDeploymentService.notifyContextUpdated(TargetDeploymentService.java:225)
    [<I> 10/06/09 21:43:24]      at weblogic.deploy.service.internal.DeploymentService$1.run(DeploymentService.java:189)
    [<I> 10/06/09 21:43:24]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    [<I> 10/06/09 21:43:24]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [<I> 10/06/09 21:43:24]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [<I> 10/06/09 21:43:24] Caused by: weblogic.common.ResourceException: [BEA][SQLServer JDBC Driver][SQLServer]xa_open (0) returns -3
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnectionEnvFactory.java:454)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:154)
    [<I> 10/06/09 21:43:24]      at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
    [<I> 10/06/09 21:43:24]      at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
    [<I> 10/06/09 21:43:24]      at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:146)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:385)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:326)
    [<I> 10/06/09 21:43:24]      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:251)
    [<I> 10/06/09 21:43:24]
    [<I> 10/06/09 21:43:24]
    [<I> 10/06/09 21:43:24] Exiting WebLogic Scripting Tool.
    [<I> 10/06/09 21:43:24]

    Hi,
    Quick question. Have you configured SQL Server for XA? This is sometimes my problem installing Oracle BPM Enterprise running on WebLogic for SQL Server.
    Specifically, here are the steps I follow to configure XA. I've heard you can also follow the instructions included with WebLogic Server (http://e-docs.bea.com/wls/docs92/jdbc_drivers/mssqlserver.html#wp1075232). However the short instructions provided below also describes how to do this:
    1) Copy <WebLogic Home>\weblogic\server\lib\sqljdbc.dll to C:\Program Files\Microsoft SQL Server\MSSQL\Binn
    2) Copy <WebLogic Home>\weblogic\server\lib\instjdbc.sql to C:\Program Files\Microsoft SQL Server\MSSQL\Binn
    3) Also copy the same files to C:\Program Files\Microsoft SQL Server\80\Tools\Binn
    4) Execute "C:\Program Files\Microsoft SQL Server\80\Tools\Binn\isql.exe" -Usa -Ppassword -Slocalhost -i"c:\Program Files\Microsoft SQL Server\MSSQL\Binn\instjdbc.sql"
    5) Using regedit, set the property HKEY_LOCAL_MACHINE\Software\Microsoft\MSDTC\Security\XaTransactions to 1 (instead of 0)
    6) In addition, you may also need to do following step (if not configured already – check whether it is already done before making these changes.
    Create a registry named-value:
    a. Use Registry Editor and navigate to registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\XADLL
    b. Create a new registry named-value:
    * Name is the file name of the XA DLL (in the format dllname.dll)
    * Type is String (REG_SZ)
    * Value is the full path name (including the file name) of the DLL file
    Name: sqljdbc.dll     
    Type: String (REG_SZ)
    Value: c:\Program Files\Microsoft SQL Server\MSSQL\Binn\sqljdbc.dll
    c. Note: You must create an entry for each XA DLL file that you plan to use. Also, if you are configuring MS DTC on a cluster, you must create these registry entries on each node in the cluster.
    7) Using the SQL Server Service Manager (available from the Start menu), restart SQL Server and the Distributed Transaction Coordinator
    Hope this helps,
    Dan
    Edited by: Daniel Atwood on Jun 11, 2009 6:29 AM

  • How to validate user credentials in pl-sql?

    I want to write a pl-sql procedure that will take the login/password parameters and return some information about user I prefer it to be the information if the user belongs to Admin group or not. Where should I start? should I use some procedures or try to obtain the objects directly from system tables?

    Hi.
    what is Admin group? is it Oracle role or some application role, membership in MS AD o?
    in first case you might query dba_role_privs.
    in other cases query your application tables or write appropriate modules to obtain user data.
    ps. in most cases you dont need user password.

  • Sync of user data with Active Directory

    I would like to connect the Active Directory with our SAP 4.6C system. Goal is to synchronize the user data (address, company, department,...) of AD with SAP user data, so we would only have to maintain this kind of data in the AD.
    Can anyone give me some hints on how that can be done? (LDAP connector? SAP connect?) I did find a lot of information on connecting SAP to Exchange in order to send mails via SAP, but that is not what I am looking for.
    Best regards
    Martin

    Hi Martin,
    if you haven't done yet please visit
    http://help.sap.com/saphelp_webas610/helpdata/en/e6/0bfa3823e5d841e10000000a11402f/frameset.htm
    At
    http://www.computerservice-wolf.com/schulung/was-ldap-search.html
    there is a description (unfortunaly in german and for Release 4.7) how to realise an access from sap to ldap.
    Perhaps it gives you some hints.
    Regards
    Bernd
    Message was edited by:
            Bernd Köhn

  • Can I sync another users calendar with my pc

    If I have iCloud on my PC, can I sync my Daughter's iPhone calendar with one on my PC?

    Hi there,
    The easiest method may be to share their calendar with yours. Take a look at the article below for more information.
    iCloud: Share a calendar with others
    http://support.apple.com/kb/ph2690
    -Griff W.

  • Working with local SQL databases in AIR

    This question was posted in response to the following article: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118676a5497-7fb4.html

    Hi Randy,
    It is from the retrieving data article.
    The first error that I got was
    1120: Access of undefined property conn.    DatabaseTest.mxml   
    /DatabaseTest/src    line 16    Flex Problem
    I then declared a variable for conn and received the following error as
    the app started to run.
    Error: Error #3109: Operation is not permitted when the
    SQLStatement.sqlConnection property is not set.
         at Error$/throwError()
         at flash.data::SQLStatement/checkAllowed()
         at flash.data::SQLStatement/checkReady()
         at flash.data::SQLStatement/execute()
         at DatabaseTest/init()[C:\Users\Neil\Adobe Flash Builder
    4.6\DatabaseTest\src\DatabaseTest.mxml:28]
         at
    DatabaseTest/___DatabaseTest_WindowedApplication1_creationComplete()[C:\Users\Neil\Adobe
    Flash Builder 4.6\DatabaseTest\src\DatabaseTest.mxml:2]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at
    mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\ UIComponent.as:13152]
         at mx.core::UIComponent/set
    initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
         at
    mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:842]
         at
    mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\ framework\src\mx\managers\LayoutManager.as:1180]
    Neil
    [email protected]

  • Help Needed!! Working with SQL Databases

    Hi All,
    I'm currently working on an application that interfaces with an SQL database, and I seem to have ran into a roadblock.
    I have a multicolumn list box on my front panel which is filled in with data extracted from the database. On selecting any of the rows in the list box, another one is opened displaying another set of data extracted by a generated SQL query. At the moment I am only selecting one row at a time to view it's related data, but I want to expand such that I can select mutiple rows from the list box at a time and see all of their corresponding data.
    With only a single selection, I can pass the index value of the selection to an Index Array Function with the database as the other input and build my SQL statement.
    But with multiple selections, I imagine I would have to build an array on index values and use those as a reference to build the SQL statment. And I am not sure how exactly to go about doing that.
    Here is the code that I currently have working for a single selection from the list box.
    Any help is appreciated. Cheers.
    Solved!
    Go to Solution.

    tdog wrote:
    Hi All,
    I'm currently working on an application that interfaces with an SQL database, and I seem to have ran into a roadblock.
    I have a multicolumn list box on my front panel which is filled in with data extracted from the database. On selecting any of the rows in the list box, another one is opened displaying another set of data extracted by a generated SQL query. At the moment I am only selecting one row at a time to view it's related data, but I want to expand such that I can select mutiple rows from the list box at a time and see all of their corresponding data.
    With only a single selection, I can pass the index value of the selection to an Index Array Function with the database as the other input and build my SQL statement.
    But with multiple selections, I imagine I would have to build an array on index values and use those as a reference to build the SQL statment. And I am not sure how exactly to go about doing that.
    Here is the code that I currently have working for a single selection from the list box.
    Any help is appreciated. Cheers.
    Regarding building the array:
    I can see hat you multicolumn listbox has not multiselection enabled, and is limited to one or zero selected item at once. To enable multiselction; simply rightclick your multicolumn listbox and change your selection mode to support multiple selected items. The NewVal at the event structure should change from a single index number to a 1D array of indexed numbers. No coding needed. Then just retrive out all the items (since you know the indexes) and create the quiry. The quiry part I dont really know (long time no see SQL), but it looks like a for loop to create the string should do the trick?

  • Link my website (Zend Framework 1.12) with SQL database on Azure

    Hello community!
    Recently I uploaded my website on Azure portal. I built my website with Zend Framework 1.12.
    My problem comes when i am trying to link my website with my SQL database.
    I have already post a question to Stackoverflow stackoverflow.com/questions/20638706/link-zend-framework-1-12-on-azure-with-a-database-on-azure
    Can anyone help me to running over with this problem?
    Thanks in advance!

    I have already tried this, but i received error and my website doesn't load!
    This is my whole cone in application.ini file
    [production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    includePaths.library = APPLICATION_PATH "/../library"
    bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
    bootstrap.class = "Bootstrap"
    appnamespace = "Application"
    resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
    resources.frontController.params.displayExceptions = 1
    resources.view.encoding = "UTF-8"
    resources.view.doctype = "XHTML1_STRICT"
    resources.view.contentType = "text/html;charset=utf-8"
    resources.view[] = ""
    autoloaderNamespaces[] = "Skoch_"
    resources.db.adapter="pdo_mysql"
    resources.db.params.host="Server_Name.database.windows.net"
    resources.db.params.port=1433
    resources.db.params.username="login_name"
    resources.db.params.password="password"
    resources.db.params.dbname="Database_name"
    resources.db.isDefaultTableAdapter=
    true
    resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
    [staging : production]
    resources.frontController.params.displayExceptions = 1
    [testing : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1
    [development : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1

Maybe you are looking for

  • Need to Re-install iTunes - here is how to do it

    If you need to re-install the current version of iTunes here is a trouble free way of doing so... this may or may not take care of other problems as well, if so good luck... my only assumption here is you already have a good and problem free System..

  • Makeing the scripts a plugin & sharing is fun!

    Hello world of scripters and fellow adobe enthusiasts. I've been tossing around the idea of making all my scripts into plugins for illustrator, and since they are all done in JS how hard would it be to do this?  Would it only be a matter of downloadi

  • Staging Area with OWB 10.2 - necessary or not?

    Hi to all, I have read so much about Staging Area and OWB 10.2 that I am totally confused: Some documents and powerpoints in the web say you do not need one, others say you need one. The thing is I am planning a DWH and now I am not sure if a staging

  • Help with OOP

    In writing my first object and driver programs for object oriented programming I have several questions since my textbook and the java compiler seem to have different ideas of what constitutes correct code... The errors I'm getting that I can't resol

  • Worse gaming performance than Kubuntu 12.10?

    Title. I'm using KDE 4.10 (installed kdebase package), Pulse, nVidia propietary drivers with VSync disabled, same programs than on Kubuntu, compositing manually suspended, yet performance is worse on TF2 and Serious Sam 3: BFE. FPS is high... enough,