Can Verity search a SQL database on a different server? - sql

We have Verity running successfully on our small library website.
We have our Library catalog on a different server and it runs off an SQL database.
We would like to see if we can get Verity to search the catalog while also searching our site.
I have had trouble finding any documentation that could steer us in the right direction. Does anyone know if this is even possible and how we could go about doing it?
Thanks!!

It is possible. CFINDEX supports a query attribute. You first need to create a new collection. Then, you'll have to query the SQL server you're trying to search against, and give the name of that query variable to CFINDEX along with the name of the new collection. Once you do this, you can then use CFSEARCH to search against data in your new collection. More information about CFINDEX can be found here.

Related

Connection to DB2

I'm new in querying the DB2. Am trying to run a select query in DB2 and get the results in a datatable using a C# Windows Application.
Below are the issues which am facing.
I used IBM.Data.DB2.dll as reference but am still getting errors for the classes like DB2Connection, DB2Adapter, etc.
Want to fetch the password from registry for a particular user ID. Am completely unaware of how that can be done. I want this to mention in the Connection string.
Kindly help me on these queries..
Thanks in Advance.!!
Take a look at the official C# Samples for DB2.
Take a look at for instance this example for managing Windows registry using C#.enter link description here

Where to find the 'views' settings from crm 2013 sql

I am having troubles finding the views settings section using sql server. What filtered views would I query to find these settings. I was told briefly to try looking in FilteredUserQuery but did not find all of the columns I am looking for. I have attached a screenshot for more clarification on which settings I am looking for.
I am interested in these columns while using sql server. Please let me know if you have any questions or confusions with my questions.
Here is a link to all of the different filtered views I have access to http://msdn.microsoft.com/en-us/library/dn531182.aspx
Thanks for the assitance!
You need to look into FilteredSavedQuery, the entity SavedQuery holds the system views.

Working with pictures in MS Access and SQL Server

How exactly does one go about:
getting images/pictures into a SQL database
viewing pictures from a SQL database using a MS Access form?
I currently use an ODBC link between the two databases with no problems at all, but I'm struggling to understand what I need to do to achieve what I'm trying to achieve.
I have already tried Google, but haven't yet come across the right information.
Getting pictures in and out of an SQL Server database:
You need the GetChunk and AppendChunk functions for that.
Here's a tutorial: How To Read and Write BLOBs Using GetChunk and AppendChunk.
This tutorial is a bit dated, but as far as I know this is still the best way to load/save pictures in a database from VBA.
Note that in SQL Server, you should use a varbinary(max) field (instead of the image suggested in the tutorial) to store the pictures.
Displaying the pictures in an MS Access form:
You can't display a picture directly from the database. You have to load it from the database (see above), store it in a temp folder and display it from there.
To get Windows' temp folder, use Environ("temp") or the GetTempPath API function.
To display the picture you can either set it as the background of the form:
Me.Picture = "c:\...\temp\picture.jpg"
...or use a image control:
Me.NameOfImageControl.Picture = "c:\...\temp\picture.jpg"

can't find SQL code for XSD schema tables

The following snippet below came from a *.xsd (XML Schema built in Visual Studio) file. I'm trying to figure out where the SQL code lives for the data that can be retrieved with these Strongly Typed .NET tables. I looked everywhere, and cannot find it. Only two of the tables match actual table names in my database. Are these primary and foreign keys configured in Visual Studio for this XSD or are these keys found in the SQL database? If I double click the *.xsd, I can see the tables, but I don't know what data is queried from the database unless I use the SQL profiler. If someone can explain, that would be great.
Found this PDF to be the best resource online so far:
http://oreilly.com/catalog/visualstudiohks/chapter/hack49.pdf
Strongly Typed Datasets starts on page 49. The only problem is that it isn't helping me answer the question I had. When I drag a table from the Server Explorer to the *.xsd file, a TableAdaptor gets created with a method called Fill,GetData(). When created manually, this doesn't get created. It also says it automatically updates the web.config file with connection string information. However, the tables I'm trying to figure out don't have this TableAdaptor. The keys don't seem to be related to SQL at all. They are purely based on the Table in the Visual Studio XSD Designer based on columns created there. I'd still like to know how the data is ultimately mapped to SQL and to what tables.

FluentNHibernate: Getting the Examples.FirstProject to work

Im trying to get the most basic of examples to run in FnH. I started with the Examples.FirstProject. However, I did not use the SQL lite configuration. Instead, I set the configuration to SQL2005 and created the tables as was diagramed in the example.
When stepping through the code, there appears to be no problems when creating the session factory. I do receive an error however when the code reaches the "transaction.commit" line. The error reads:
Could not insert collection: [Examples.FirstProject.Entities.Store.Products#5][SQL:SQL not available]
Im wondering if there was an issue with the way the tables were created in SQL Server. The IDs were "int" type and the names and such were "varchar(50)." I set the PK of Store, Product, and Employee to its respective ID field. I also made the ID increment automatically by 1 (IdentitySpecification column property in SQL Server). StoreProduct is the many-to-many and is also there per the diagram.
Any help would be appreciated. Thanks.
Have you modified the sample in any way other than changing the database provide? Have you been able to save any entities from the sample (ie if you remove the Products code and just save the Store)?
I developed this sample against SQLExpress, so I would imagine there wouldn't be any incompatibilities with SQL 2005.
Also, this question would probably be better be suited to the Fluent NHibernate mailing list, as Stack Overflow isn't great for these kind-of investigatory postings.
Thank you James. I'll look at using Fluent NHibernate mailing list. As a solution to my issue, I did simplify the example a bit and found that rebuilding the tables helped. In the previous attempt I built the tables in the Database diagram tool. That is where I think something was a little off. Just now I rebuilt them using the menus and still made the foreign key connections with the Database Diagram section. Worked like a charm. Thanks again and keep up the good work with FnH.
First thing to check: Are you sure that you have really created a correct table in SQL server, and that the schema is correct? You can verify this by using SQL Express management studio to view the sql database.