Hash of CF and SQL Server
Hello
Basically, I receive a hash of a pk and would like to compare this hash value a pk in SQL Server. It has no hash value that is stored in this table. So I have to use CF function compare to compare the entire table while loop. As a result, it's slow. Y at - it functions in SQL server, or something that I can get a faster result of comparison?
Here is essentially the loop of the table and the comparison.
< name cfquery = "name" >
SELECT id
FROM tbl
< / cfquery >
< cfloop query = "name" >
< cfset hashID = HASH (name.id, "SHA") >
< cfif COMPARE(url.id,hashID) EQ 0 >
[do something]
< / cfif >
< / cfloop >
You certainly don't want the single quotes around the id, because who would literally be passing the 'id' string to the function. You may need to wrap the id in a CAST statement to convert an int to a string.
Then
HASHBYTES ('SHA1', ID)
would become
HASHBYTES ('SHA1', CAST (id as varchar (10)))
-Carl V.
Tags: ColdFusion
Similar Questions
-
Hi, we would like to ensure that we are aware and actively involved in the preparation and planning in support of our product lines using the newest and the most innovative platforms and those whose primary Microsoft - Windows, Internet Explorer and SQL Server products and would like to find the best and most reliable way to receive alerts about new products , version beta and official release information notification automatically either by subscription or other alert.
Post in the Windows Server Forums:
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/ -
State SQL 28000 and SQL Server error 18452
I have a SQL 2000 Server on a server with Windows Server 2003 computer.
I have a laptop with Windows Vista, for which we are unable to connect to the database and it gives an error 24000 state SQL and SQL Server error 18452 with description as "failed to connect to the user (null). Reason: Not associated with approved connection SQL server.
Please provide a solution to this problem.
Thank you
Hello
Questions like these are much better handled in the TechNet IT Pro Forums.
My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET -
For TMS Win2008 Server and SQL Server client access licenses?
Where, I read that the TMSXE interface requires a CAL on the Exchange Server. What I can't seem to locate is all information about client access licenses how are required to Win2008 R2 Server Standard Edition and SQL Server 2008 R2 Standard. Is there a reference document that I'm missing with this information. It seems that according to Microsofts definitions, you might need a CAL by user device and/or managed web that connects to the web interface.
Can someone clarify the situation?
Hello world
So should put the closure of this thread, I have now clarified what follows when it comes to TMS and MS licenses:
Users and administrators to connect to TMS authenticate AD, the server that hosts the TMS must be allowed to support authenticated connections. Don't authenticate TMS Managed/configure with AD devices via the web server. As a result, and as managed devices does not authenticate against IIS with AD login, these types of connections don't require licenses. Only users who connect to the Web site would be.
The issue of Exchange and SQL are similar, that is, authenticated connections how are made?
Of MSDS, all connections to SQL server use the same authenticated account, by default uses a SQL login. Web site users are not authenticated to SQL Server. Therefore, and in the case of an external SQL Server, this would be equal to one.
When communicating with Exchange, all connections are through a unique service account. Created for managed systems the mailboxes are not connected by users or MSDS for normal operation. As a result, and as with an external SQL Server, this would be also equal to one.
Hope that clarifies completely now
Rgds,
Dale
-
PDF IFilter support for 8.1 Windows and SQL Server 2014
Hello
We use Adobe PDF iFilter Version 64 11.0.01 (here: https://www.adobe.com/support/downloads/detail.jsp?ftpID=5542) full-text support for PDF files on SQL Server and Windows Server 2012 2012. This works also on Windows Server R2 from 2012 to 2014 of SQL-Server even if both is not listed in the list of the applications/OS supported. But it does not work for the combination of 8.1 to Windows and SQL-Server, 2014.
Can anyone provide a solution to make it work for this combination, or know when it will be officially supported?
Kind regards
Stefan
Hi stefankainz663,
Please see this KB for the workaround iFilter PDF search doesn't work on Windows 8 x 64.
Kind regards
Nicos -
Number of databases such as Oracle and SQL Server in the same application ADF
Hello
In my application, I need to use two different databases such as Oracle and SQL Server. There are screens that I need to develop in the ADF where I need to involve fields of the tables in these two different databases. I just want to know - is it possible to do so in application of the ADF?
Or to create a sort of link between these databases in the backend? Then create a view object involving some distributed SQL queries. What can I do with this type of request than anything? I mean, can I use the two insert or update operation using this VO?
Or y at - it another way to do this?
Please help, help here would be really appreciated. I've been stuck with this problem for a while now. I did search our forums for the same problem, but was not able to find a reliable solution.
Thank you
VijayIt's still not clear to me if you need two db tables in a query, or a transaction.
If this is the case, your best option (to my knowledge) is to use a db link. in this way, you only need to access (for example the oracle db) and can access the objects from the other data from the oracle database.
I don't understand
>
(3) a model project with a meeting of the two datasource. I selected a data source and created OT and VO. When I have selected a different data source and select tables to create VO and EO and finished but these EO and VO is displayed in project. >(2) If you need to link data from these two dbs you can not use this approach (see the note at the top of the post)
Timo
-
Unlike char in ORACLE and SQL SERVER
Hello gurus,
I tried to querying data from Oracle to sql server through linked server, but get me an error! set length corresponds to the error! I know there are CHAR data type in sql server and thus as in oracle.
But when I use the CAST FUNCTION with CHAR it works fine
----- error code select * from openquery( linkoracle11 select col1, col2, col3 from test_table ) -- say col3 char(1) -- data type
I was wondering, what is the difference between oracle and sql server for the CHAR data type?-- working code select * from openquery ( linkoracle 11 select col1, col2, cast (col3 as char(1)) as col_3 from test_table )
The gurus of the idea?
Thank youWhat is the error you get?
What is the characters in database and NLS_LENGTH_SEMANTICS game on your Oracle system?
SELECT * FROM v$nls_parameters WHERE name LIKE '%CHARACTERSET'; SQL> SHOW PARAMETER nls_length_semantics;
What is the character set of data in SQL Server?
If your local database is a variable length character set (like UTF8) and NLS_LENGTH_SEMANTICS is set to (default) BYTES, a char (1) allocate 1 byte of storage which may not be sufficient for a single character. The receiving application may need to allocate a buffer with 3 times more many bytes as there are characters in order to ensure that it will be able to process the result. I don't know why add an implicit CAST that would change, but since we are several levels removed from the code to figure out how large a buffer to allocate, it is not very surprising.
Justin
-
LC 8.2.1.3/JBoss and SQL Server 2008 R2
Anyone know if there are problems with JBoss and SQL Server 2008 r2? I tested the connection to a sql 2008 in the adobe file server - ds.xml and was getting errors in my server log.
The version of JBoss was what came with 8.0. Should I update JBoss before being able to connect to sql server 2008?
Thank you
John
Laughing out loud
Page 11:
http://help.Adobe.com/en_US/LiveCycle/8.2/prepareinstallsingle.PDF
-
Sort of the differences between Oracle and SQL Server
Hi all
This question is linked by both Oracle and SQL Server
I have a requirement where I want to compare 2 tables line by line. A table is in Oracle and other table in SQL Server
And suppose that both tables do not have a primary key. Now when I sort records by using the order by clause for a column, then-
Rows with null values in that column of Oracle are placed in the background.
When that rows with null values in the same column in SQL Server are placed right at the top.
How can I make one of them to behave like any other.
My only goal is to have same order of lines in Oracle and SQL Server tables so that I can compare line by line.YADQ: Yet another Doc Question
Can you please avoid them?
Take your SQL reference manual, search for the ORDER BY clause and notice that it has
NULL FIRST or LAST values NULL values.------------
Sybrand Bakker
Senior Oracle DBA -
corresponding data types n/b oracle and sql server
everyone here knows that if there is a list of the data types supported by oracle and sql server (no matter releases and versions?
an immediate response would be appreciated.
Thank you.Hello
Next post might be useful for you:
http://msdn.Microsoft.com/en-us/library/ms151817.aspx
If that's what you're looking for, then mark the question answered and closed.
Kind regards
Naveed. -
IIS and sql server 2000/2005 if problems ip address and host name changed
Windows Server 2003, IIS 6.0 + SQL SERVER 2000/2005
Is there a problem if ip address and host name of the server is changed?
for example
IIS 6.0 may still work properly?
SQL Server 2000/2005 can still start correctly?
Thank you!
Hello
Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. You can follow the link to your question:
http://social.technet.Microsoft.com/forums/en-us/winservergen/threads
I hope this helps.
-
Windows server 2003 and SQL server 2008
Is
SQL Server 2008 Standard Edition for small business Compatible with SBS 2003 Standard edition? Try SQL 2000 and he was not.
Thank you
Michael Coleman
ADDA USA
Fr. resp.
Orange, Ca 92867.
714-674-7920.Hi mikecoleman_us,
Please see article about your question:
http://www.Microsoft.com/sqlserver/2008/en/us/small-business.aspx
If you still need assistance, I suggest posting your question in the following forum:
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer
I hope this helps!
-
How to display dynamic menu with the parent and the child using c# and sql server
Hello
Can you tell me
What is menu given Dynamics example
How can u use my dynamic menu added project in c#
This menu is display with only the data from sql database.
Menu with the help of a parent node and a child.
check the element all in sql server and adding one by a dynamic menu.
Hello
Thank you for writing to Microsoft Communities.
I recommend you post your query in the following forum.
http://social.msdn.Microsoft.com/forums/en/category/SQLServer/
Hope this information is useful.
-
Hello
We are a cluster of servers vRO, using SQL Server 2012. After that we report the vRO servers to SQL server (create without and whatnot), we do not see a complete library:
Anyone seen this before? I have snapshot isolation and read options committed snapshot enabled on the SQL Server. Before the passage of postgres internal to SQL, the library has been completely filled.
Thank you
James
In your Configuration Orchestrator on the Troubleshooting tab you will need to click on this latest Version reset and restart services (correct names cannot be listed here as running memory). This forces Orchestrator re - import all packages library of plug-ins installed
-
vCenter Server and SQL server affinity
Is there a best practice for the rules of the affinity between a vCenter server and a SQL server VM in the same cluster?
Thank you
I think that separation would be mainly for safety. Maybe to keep the SQL Server in a broadcast domain separate servers so that they do not receive all the Windows usual chatter.
Most of the environments I've worked have been small enough to either do not have more than a few tens of machines virtual hosts/250, or overworked staff that cannot be dedicated to security, s/n, etc., and the decision was taken to run the DB in SQL Server on the same server as the application of vCenter to reduce the complexity and rely on the host/network/SQL Server security and properly locking to the bottom of vCenter.
As I said before, there is a good chance you won't notice a difference, performance wise, anyway.
Maybe you are looking for
-
Very frustrating... under windows ' programs/uninstall a program "list, Mozilla Thunderbird is still listed AFTER that I have removed completely (I thought) from my computer. I clicked on 'uninstall' several times and nothing happens. I can't take th
-
Update on each start upward.
I have a windows vista service pack 2. In the last few weeks whenever I shut down the computer, a simple update rises, that on the next cast causes wait 6 + minutes before I can start working. This happens even when I start several times a day. What
-
Color LaserjetPro 200 M276nw MFP
The system is Win 7 Ultimate 64-bit Service pack 1 latest updates applied. Giving software package installed for the MFP and firmware updated to update to the latest version. The device is unable to scan to pc, I ran HP print and scan doctor and the
-
original title: Partition of mystery I just got a new computer. It has a 2 TB hard drive that apparently has already been partitioned, creating a drive E. I have not create the partition. The files on the partition are old EULA, the .cabs, and .dll f
-
Installation of the PSU on RAC (ACFS 12.1.0.2 database files) with
Hi guru,.I hope that someone has experience with my problem. I want to install the latest patch of power supply on my cluster of two nodes (test) CAR 12.1.0.2 system. I'm running an Oracle multitentant 12.1.0.2 on this subject. Because I have the dat