SqlServer的校验和在C#

编程入门 行业动态 更新时间:2024-10-24 10:25:06
本文介绍了SqlServer的校验和在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用SQL Server 2008 R2中的chechsum功能,我想获得在C#应用程序相同的INT值。 是否有在C#中的任何等同方法,返回像SQL校验功能的价值? 感谢名单

I'm using the chechsum function in sql server 2008 R2 and I would like to get the same int values in a C# app. Is there any equivalent method in c# that returns the values like the sql checksum function? Thanx

推荐答案

校验文档没有披露如何它计算哈希值。如果你想要一个散列你可以在T-SQL和C#中使用,从的 HASHBYTES

CHECKSUM docs don't disclose how it computes the hash. If you want a hash you can use in T-SQL and C#, pick from the algorithms supported in HashBytes

更多推荐

SqlServer的校验和在C#

本文发布于:2023-06-01 10:26:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/412986.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SqlServer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!