附加sql 2000的数据库(Attaching databases of sql 2000)
我在windows 2000上有很少的sql 2000数据库。我可以将这些数据库附加到安装了Windows 2003的另一台机器上的另一个SQL Server 2000实例吗? 数据库的附加和分离是否与平台无关?
I have few databses of sql 2000 on windows 2000. Can I attach these databases to another instance of SQL Server 2000 on anothermachine having windows 2003 installed?? Does attach and detach of databases are platform independent??
原文:https://stackoverflow.com/questions/2673630
更新时间:2023-01-04 13:01
最满意答案
import ldap import os ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) l = ldap.initialize('ldaps://172.31.133.12:636') l.set_option(ldap.OPT_REFERRALS, 0) l.set_option(ldap.OPT_PROTOCOL_VERSION, 3) l.set_option(ldap.OPT_X_TLS_CACERTFILE, os.getcwd()+"/cacert.pem") l.set_option(ldap.OPT_X_TLS,ldap.OPT_X_TLS_DEMAND) l.set_option(ldap.OPT_X_TLS_DEMAND, True) l.set_option(ldap.OPT_DEBUG_LEVEL, 255) #l.start_tls_s()
import ldap import os ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) l = ldap.initialize('ldaps://x.x.x.x:636') l.set_option(ldap.OPT_REFERRALS, 0) l.set_option(ldap.OPT_PROTOCOL_VERSION, 3) l.set_option(ldap.OPT_X_TLS_CACERTFILE, os.getcwd()+"/cacert.pem") l.set_option(ldap.OPT_X_TLS,ldap.OPT_X_TLS_DEMAND) l.set_option(ldap.OPT_X_TLS_DEMAND, True) l.set_option(ldap.OPT_DEBUG_LEVEL, 255) #l.start_tls_s()
相关问答
更多-
如何安装python-ldap[2022-10-26]
1. 首先需要安装python-ldap的模块 2. 在这里用的是windows系统,当然比较容易 3. 安装后在python 的交互环境里输入import ldap 如果没有问题就说明安装成功了。 -
我得到了与你完全相同的错误,我所做的是在做绑定之前添加此行(如Christopher建议的),l.set_option(ldap.OPT_REFERRALS,0),例如 conn.protocol_version = ldap.VERSION3 conn.set_option(ldap.OPT_REFERRALS, 0) conn.simple_bind_s(user, pw) 之后,我与LDAP的连接运行良好。 I was getting the exact same error as you, wha ...
-
我失踪了 l.set_option(ldap.OPT_REFERRALS, 0) 从init。 I was missing l.set_option(ldap.OPT_REFERRALS, 0) From the init.
-
我不能安装python-ldap(I can't install python-ldap)[2024-05-08]
该网站说,python-ldap是基于OpenLDAP的,所以你需要有开发文件(头文件)来编译Python模块。 如果你在Ubuntu上,这个包就叫做libldap2-dev 。 Debian / Ubuntu : sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev RedHat / CentOS : sudo yum install python-devel openldap-devel The website sa ... -
*-dev依赖项通常仅用于编译。 在编译python-lap ,不再需要这些依赖项了。 尝试删除这些依赖项并测试容器。 The *-dev dependencies is generally only needed for compilation. After compiling python-lap, these dependencies should not be needed anymore. Try removing theses dependencies and test the containe ...
-
从您的错误消息,似乎没有安装gcc编译器,但需要编译您尝试安装的python包。 以root身份运行(或使用sudo),安装它 yum install gcc 更进一步,“开发工具”组中包含其他方便的开发包,包括gcc。 以root身份运行(或使用sudo),您可以使用以下命令安装它: yum groupinstall “Development Tools” From your error message, it seems that the gcc compiler is not installed ...
-
是的,存在异常层次结构,您应始终开始捕获更具体的异常,并最终捕获更广泛的异常。 层次结构通常由继承确定。 在您的情况下,因为您最后捕获该异常,应该是因为您首先捕获的超时异常是引用另一个包或命名空间。 你捕获的最后一个异常是其他异常的超类。 Yes there is a hierarchy of exceptions, you should always start catching the more specific exceptions and finally catch the broader exce ...
-
对Active Directory中的安全组的Python LDAP身份验证(Python LDAP authentication to a Security Group in Active Directory)[2022-10-04]
为了将LDAP身份验证限制为特定的AD组,我使用了“search_s函数”来查找经过身份验证的用户是否属于AD组。 conn.search_s("OU={AD Security Group},OU=group,OU=Groups,dc=twpn,dc=root,dc=domain,dc=com", ldap.SCOPE_SUBTREE, "(cn=userid)") To restrict the LDAP authentication to a specific AD group I used the ... -
import ldap import os ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) l = ldap.initialize('ldaps://172.31.133.12:636') l.set_option(ldap.OPT_REFERRALS, 0) l.set_option(ldap.OPT_PROTOCOL_VERSION, 3) l.set_option(ldap.OPT_X_TLS_CACERTFILE, ...
-
Python-Ldap lib。(Python-Ldap lib. Import LDIF)[2022-11-07]
python-ldap包含一个LDIF Parser模块 。 使用它来解析LDIF并将结果字典提交给ldap_connection.add_s() 。 用法示例: from StringIO import StringIO import ldif from ldap import modlist ldif_file = StringIO("""dn: cn=vpupkin,cn=people,ou=company,dc=domain,dc=com c: UA cn: vpupkin """) parse ...