MS Access传递查询到SQL Server我需要什么字符卫生 [英] What character sanitation do I need for an MS Access Pass Through Query to SQL Server

查看:132
本文介绍了MS Access传递查询到SQL Server我需要什么字符卫生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将MS Access与SQL Server进行接口连接,并且我想确保自己不容易受到SQL Injection攻击.

I am attempting to interface MS Access with SQL Server and I want to make sure I am not vulnerable to SQL Injection attacks.

我已经看到使用ADO创建查询的参数化版本的建议,但是我想学习如何使用DAO传递对输入进行清理.

I have seen suggestions to use ADO to create a paramaterized version of the queries, but I wanted to learn how to sanitize my input with a DAO pass through.

此刻,我正在转义单引号和反斜杠.

At the moment I am escaping single quotations and backslashes.

VBA中是否有标准的SQL Server注入清理方法?

Are there any standard SQL Server injection sanitation methods in VBA?

推荐答案

VBA中是否有标准的SQL Server注入清理方法?

不.我会非常担心是否有一个.我不使用PHP,但是我读过有关其标准SQL注入卫生方法"的恐怖故事.只需查看带有问题即可.显示标记为'php'"rel =" tag> php 和

  • Creating ADODB parameters on the fly
  • Materializing any ADODB query

在VBEX信息库中的GitHub上可以找到具有某些错误和其他功能的类 ,其中也恰好包含大量其他有用的工具(根据GPLv3许可).请注意,尽管我确实编写了某些代码,或者某些代码启发了其中的内容,但我并不主张与VBEX存储库有任何形式的隶属关系.我 did 将这些类的原始版本上传到我自己的 VBTools 存储库中,以及所有Stack Exchange内容均根据CC-by-SA许可.

The classes, with some bugs fixed and other features, can be found on GitHub in the VBEX repository, which also happens to contain a truckload of other useful tools (licensed under GPLv3). Note, while I did author some of that code, or some code that inspired what's on there, I do not claim affiliation of any kind with the VBEX repository. I did upload the original versions of these classes to my own VBTools repository though, licensed under CC-by-SA, as is any Stack Exchange content.

这篇关于MS Access传递查询到SQL Server我需要什么字符卫生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆