- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.xowl.infra.server.xsp.XSPReplyApiError.<init>()
方法的一些代码示例,展示了XSPReplyApiError.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSPReplyApiError.<init>()
方法的具体详情如下:
包路径:org.xowl.infra.server.xsp.XSPReplyApiError
类名称:XSPReplyApiError
方法名:<init>
暂无
代码示例来源:origin: org.xowl.platform/xowl-service-connection
/**
* Realizes the action to pull an artifact
*
* @return The operation's result
*/
protected XSPReply doPullArtifact() {
Artifact artifact = input.poll();
if (artifact == null)
return new XSPReplyApiError(ConnectionService.ERROR_EMPTY_QUEUE);
return new XSPReplyResult<>(artifact);
}
代码示例来源:origin: org.xowl.platform/xowl-kernel-impl
@Override
public XSPReply setPolicy(String actionId, String policyDefinition) {
ASTNode definition = JSONLDLoader.parseJSON(Logging.get(), policyDefinition);
if (definition == null)
return new XSPReplyApiError(HttpApiService.ERROR_CONTENT_PARSING_FAILED);
SecuredActionPolicy policy = SecuredActionPolicyBase.load(definition);
if (policy == null)
return new XSPReplyApiError(HttpApiService.ERROR_CONTENT_PARSING_FAILED, "Invalid policy definition");
return setPolicy(actionId, policy);
}
}
代码示例来源:origin: org.xowl.platform/xowl-connector-semanticweb
/**
* @param reader The reader to read from
* @param resourceIRI The IRI for the resource to load
* @param syntax The expected syntax
* @return The reply
*/
public XSPReply load(Reader reader, String resourceIRI, String syntax) {
BufferedLogger bufferedLogger = new BufferedLogger();
try {
Collection<Quad> quads = load(bufferedLogger, reader, resourceIRI, syntax);
if (quads == null || !bufferedLogger.getErrorMessages().isEmpty())
return new XSPReplyApiError(HttpApiService.ERROR_CONTENT_PARSING_FAILED, bufferedLogger.getErrorsAsString());
return new XSPReplyResultCollection<>(quads);
} catch (TranslationException exception) {
bufferedLogger.error(exception);
return new XSPReplyApiError(HttpApiService.ERROR_CONTENT_PARSING_FAILED, bufferedLogger.getErrorsAsString());
}
}
代码示例来源:origin: org.xowl.platform/xowl-service-impact
@Override
public HttpResponse handle(SecurityService securityService, HttpApiRequest request) {
if (!HttpConstants.METHOD_POST.equals(request.getMethod()))
return new HttpResponse(HttpURLConnection.HTTP_BAD_METHOD, HttpConstants.MIME_TEXT_PLAIN, "Expected POST method");
byte[] content = request.getContent();
if (content == null || content.length == 0)
return XSPReplyUtils.toHttpResponse(new XSPReplyApiError(ERROR_FAILED_TO_READ_CONTENT), null);
BufferedLogger logger = new BufferedLogger();
ASTNode root = JSONLDLoader.parseJSON(logger, new String(content, IOUtils.CHARSET));
if (root == null)
return XSPReplyUtils.toHttpResponse(new XSPReplyApiError(ERROR_CONTENT_PARSING_FAILED, logger.getErrorsAsString()), null);
return XSPReplyUtils.toHttpResponse(perform(new XOWLImpactAnalysisSetup(root)), null);
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply unassignRoleToGroup(String group, String role) {
// check input data
PlatformGroup groupObj = getGroup(group);
if (groupObj == null)
return new XSPReplyApiError(ERROR_INVALID_GROUP, group);
PlatformRole roleObj = getRole(role);
if (roleObj == null)
return new XSPReplyApiError(ERROR_INVALID_ROLE, role);
// check for current user with admin role
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_UNASSIGN_ROLE_TO_GROUP);
if (!reply.isSuccess())
return reply;
// execute
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(GROUPS + group));
parameters.put("role", nodes.getIRINode(ROLES + role));
reply = database.executeStoredProcedure(procedures.get("procedure-unassign-role"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply addAdminToGroup(String user, String group) {
// check input data
PlatformGroup groupObject = getGroup(group);
if (groupObject == null)
return new XSPReplyApiError(ERROR_INVALID_GROUP, group);
PlatformUser newUser = getUser(user);
if (newUser == null)
return new XSPReplyApiError(ERROR_INVALID_USER, user);
// check the current user is either the platform admin or the group admin
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_ADD_ADMIN_TO_GROUP, groupObject);
if (!reply.isSuccess())
return reply;
// execute
Map<String, Node> parameters = new HashMap<>();
parameters.put("group", nodes.getIRINode(GROUPS + group));
parameters.put("admin", nodes.getIRINode(USERS + user));
reply = database.executeStoredProcedure(procedures.get("procedure-add-admin"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply assignRoleToUser(String user, String role) {
// check input data
PlatformUser userObj = getUser(user);
if (userObj == null)
return new XSPReplyApiError(ERROR_INVALID_USER, user);
PlatformRole roleObj = getRole(role);
if (roleObj == null)
return new XSPReplyApiError(ERROR_INVALID_ROLE, role);
// check for current user with admin role
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_ASSIGN_ROLE_TO_USER);
if (!reply.isSuccess())
return reply;
// execute
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(USERS + user));
parameters.put("role", nodes.getIRINode(ROLES + role));
reply = database.executeStoredProcedure(procedures.get("procedure-assign-role"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply removeAdminFromGroup(String user, String group) {
// check input data
PlatformGroup groupObject = getGroup(group);
if (groupObject == null)
return new XSPReplyApiError(ERROR_INVALID_GROUP, group);
PlatformUser newUser = getUser(user);
if (newUser == null)
return new XSPReplyApiError(ERROR_INVALID_USER, user);
// check the current user is either the platform admin or the group admin
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_REMOVE_ADMIN_FROM_GROUP, groupObject);
if (!reply.isSuccess())
return reply;
// execute
Map<String, Node> parameters = new HashMap<>();
parameters.put("group", nodes.getIRINode(GROUPS + group));
parameters.put("admin", nodes.getIRINode(USERS + user));
reply = database.executeStoredProcedure(procedures.get("procedure-remove-admin"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply unassignRoleToUser(String user, String role) {
// check input data
PlatformUser userObj = getUser(user);
if (userObj == null)
return new XSPReplyApiError(ERROR_INVALID_USER, user);
PlatformRole roleObj = getRole(role);
if (roleObj == null)
return new XSPReplyApiError(ERROR_INVALID_ROLE, role);
// check for current user with admin role
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_UNASSIGN_ROLE_TO_USER);
if (!reply.isSuccess())
return reply;
// execute
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(USERS + user));
parameters.put("role", nodes.getIRINode(ROLES + role));
reply = database.executeStoredProcedure(procedures.get("procedure-unassign-role"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply renameUser(String identifier, String name) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
PlatformUser userObject = getUser(identifier);
if (userObject == null)
return new XSPReplyApiError(ERROR_INVALID_USER, identifier);
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_RENAME_USER, userObject);
if (!reply.isSuccess())
return reply;
synchronized (cacheUsers) {
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(USERS + identifier));
parameters.put("newName", nodes.getLiteralNode(name, Vocabulary.xsdString, null));
reply = database.executeStoredProcedure(procedures.get("procedure-rename-entity"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
cacheUsers.remove(identifier);
return XSPReplySuccess.instance();
}
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply renameGroup(String identifier, String name) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
PlatformGroup groupObject = getGroup(identifier);
if (groupObject == null)
return new XSPReplyApiError(ERROR_INVALID_GROUP, identifier);
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_RENAME_GROUP, groupObject);
if (!reply.isSuccess())
return reply;
synchronized (cacheGroups) {
// rename the entity
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(GROUPS + identifier));
parameters.put("newName", nodes.getLiteralNode(name, Vocabulary.xsdString, null));
reply = database.executeStoredProcedure(procedures.get("procedure-rename-entity"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
cacheGroups.remove(identifier);
return XSPReplySuccess.instance();
}
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply renameRole(String identifier, String name) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
PlatformRole roleObject = getRole(identifier);
if (roleObject == null)
return new XSPReplyApiError(ERROR_INVALID_ROLE, identifier);
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_RENAME_ROLE, roleObject);
if (!reply.isSuccess())
return reply;
synchronized (cacheRoles) {
// rename the entity
Map<String, Node> parameters = new HashMap<>();
parameters.put("entity", nodes.getIRINode(ROLES + identifier));
parameters.put("newName", nodes.getLiteralNode(name, Vocabulary.xsdString, null));
reply = database.executeStoredProcedure(procedures.get("procedure-rename-entity"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
cacheRoles.remove(identifier);
return XSPReplySuccess.instance();
}
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply createRole(String identifier, String name) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_CREATE_ROLE);
if (!reply.isSuccess())
return reply;
// check identifier format
if (!identifier.matches("[_a-zA-Z0-9]+"))
return new XSPReplyApiError(ERROR_INVALID_IDENTIFIER, "[_a-zA-Z0-9]+");
// create the group data
Map<String, Node> parameters = new HashMap<>();
parameters.put("role", nodes.getIRINode(ROLES + identifier));
parameters.put("name", nodes.getLiteralNode(name, Vocabulary.xsdString, null));
reply = database.executeStoredProcedure(procedures.get("procedure-create-role"),
new BaseStoredProcedureContext(Collections.<String>emptyList(), Collections.<String>emptyList(), parameters));
if (!reply.isSuccess())
return reply;
PlatformRoleBase role = getRole(identifier, name);
EventService eventService = Register.getComponent(EventService.class);
if (eventService != null)
eventService.onEvent(new PlatformRoleCreatedEvent(role, securityService));
return new XSPReplyResult<>(role);
}
代码示例来源:origin: org.xowl.platform/xowl-kernel-impl
@Override
public XSPReply cancel(Job job) {
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
XSPReply reply = securityService.checkAction(ACTION_CANCEL, job);
if (!reply.isSuccess())
return reply;
boolean success = executorPool.remove(job);
if (success) {
// the job was queued and prevented from running
job.onTerminated(true);
return XSPReplySuccess.instance();
}
switch (job.getStatus()) {
case Unscheduled:
case Scheduled:
job.onTerminated(true);
return XSPReplySuccess.instance();
case Running:
return job.cancel();
case Completed:
return new XSPReplyApiError(ERROR_ALREADY_COMPLETED);
case Cancelled:
return new XSPReplyApiError(ERROR_ALREADY_CANCELLED);
default:
return new XSPReplyApiError(ERROR_INVALID_JOB_STATE, job.getStatus().toString());
}
}
代码示例来源:origin: org.xowl.platform/xowl-kernel-impl
/**
* Responds to a request for the login resource
*
* @param request The web API request to handle
* @return The HTTP response
*/
private HttpResponse handleRequestLogin(HttpApiRequest request) {
if (!HttpConstants.METHOD_POST.equals(request.getMethod()))
return new HttpResponse(HttpURLConnection.HTTP_BAD_METHOD, HttpConstants.MIME_TEXT_PLAIN, "Expected POST method");
String login = request.getParameter("login");
if (login == null)
return XSPReplyUtils.toHttpResponse(new XSPReplyApiError(ERROR_EXPECTED_QUERY_PARAMETERS, "'login'"), null);
String password = new String(request.getContent(), IOUtils.CHARSET);
XSPReply reply = login(request.getClient(), login, password);
if (!reply.isSuccess())
return XSPReplyUtils.toHttpResponse(reply, null);
String token = ((XSPReplyResult<String>) reply).getData();
HttpResponse response = new HttpResponse(HttpURLConnection.HTTP_OK, HttpConstants.MIME_JSON, getCurrentUser().serializedJSON());
response.addHeader(HttpConstants.HEADER_SET_COOKIE, AUTH_TOKEN + "=" + token +
"; Max-Age=" + Long.toString(securityTokenTTL) +
"; Path=" + PlatformHttp.getUriPrefixApi() +
"; Secure" +
"; HttpOnly");
return response;
}
代码示例来源:origin: org.xowl.platform/xowl-service-connection
/**
* Responds to the request to push an artifact to a connector
* When successful, this action creates the appropriate job and returns it.
*
* @param connectorId The identifier of the connector to delete
* @param request The request to handle
* @return The response
*/
private HttpResponse onMessagePushToConnector(String connectorId, HttpApiRequest request) {
String artifact = request.getParameter("artifact");
if (artifact == null)
return XSPReplyUtils.toHttpResponse(new XSPReplyApiError(ERROR_EXPECTED_QUERY_PARAMETERS, "'artifact'"), null);
JobExecutionService executor = Register.getComponent(JobExecutionService.class);
if (executor == null)
return XSPReplyUtils.toHttpResponse(XSPReplyServiceUnavailable.instance(), null);
Job job = new PushArtifactJob(connectorId, artifact);
executor.schedule(job);
return new HttpResponse(HttpURLConnection.HTTP_OK, HttpConstants.MIME_JSON, job.serializedJSON());
}
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply changeUserKey(String identifier, String oldKey, String newKey) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
PlatformUser platformUser = authenticate(identifier, oldKey);
if (platformUser == null)
return new XSPReplyApiError(ERROR_INVALID_USER, identifier);
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_UPDATE_USER_KEY, platformUser);
if (!reply.isSuccess())
return reply;
// execute
reply = server.getUser(identifier);
if (!reply.isSuccess())
return reply;
XOWLUser xowlUser = ((XSPReplyResult<XOWLUser>) reply).getData();
return xowlUser.updatePassword(newKey);
}
代码示例来源:origin: org.xowl.platform/xowl-service-security-internal
@Override
public XSPReply resetUserKey(String identifier, String newKey) {
// check authorization
SecurityService securityService = Register.getComponent(SecurityService.class);
if (securityService == null)
return XSPReplyServiceUnavailable.instance();
PlatformUser platformUser = getUser(identifier);
if (platformUser == null)
return new XSPReplyApiError(ERROR_INVALID_USER, identifier);
XSPReply reply = securityService.getPolicy().checkAction(securityService, SecurityService.ACTION_RESET_USER_KEY, platformUser);
if (!reply.isSuccess())
return reply;
// execute
reply = server.getUser(identifier);
if (!reply.isSuccess())
return reply;
XOWLUser xowlUser = ((XSPReplyResult<XOWLUser>) reply).getData();
return xowlUser.updatePassword(newKey);
}
代码示例来源:origin: org.xowl.platform/xowl-service-consistency
@Override
public XSPReply deleteRule(ConsistencyRule rule) {
StorageService storageService = Register.getComponent(StorageService.class);
if (storageService == null)
return XSPReplyServiceUnavailable.instance();
TripleStore live = storageService.getLiveStore();
XSPReply reply = live.removeRule(rule);
if (!reply.isSuccess())
return reply;
reply = live.sparql("DELETE WHERE { GRAPH <" +
TextUtils.escapeAbsoluteURIW3C(IRI_RULE_METADATA) +
"> { <" +
TextUtils.escapeAbsoluteURIW3C(rule.getIdentifier()) +
"> ?p ?o } }", null, null);
if (!reply.isSuccess())
return reply;
Result sparqlResult = ((XSPReplyResult<Result>) reply).getData();
if (sparqlResult.isFailure())
return new XSPReplyApiError(ArtifactStorageService.ERROR_STORAGE_FAILED, ((ResultFailure) sparqlResult).getMessage());
EventService eventService = Register.getComponent(EventService.class);
if (eventService != null)
eventService.onEvent(new ConsistencyRuleDeletedEvent(rule, this));
return XSPReplySuccess.instance();
}
代码示例来源:origin: org.xowl.platform/xowl-service-consistency
@Override
public XSPReply addRule(ConsistencyRule rule) {
StorageService storageService = Register.getComponent(StorageService.class);
if (storageService == null)
return XSPReplyServiceUnavailable.instance();
TripleStore live = storageService.getLiveStore();
XSPReply reply = live.addRule(rule.getDefinition(), rule.isActive());
if (!reply.isSuccess())
return reply;
reply = live.sparql("INSERT DATA { GRAPH <" + TextUtils.escapeAbsoluteURIW3C(IRI_RULE_METADATA) + "> {" +
"<" + TextUtils.escapeAbsoluteURIW3C(rule.getIdentifier()) + "> <" + TextUtils.escapeAbsoluteURIW3C(Vocabulary.rdfType) + "> <" + TextUtils.escapeAbsoluteURIW3C(IRI_RULE) + "> ." +
"<" + TextUtils.escapeAbsoluteURIW3C(rule.getIdentifier()) + "> <" + TextUtils.escapeAbsoluteURIW3C(KernelSchema.NAME) + "> \"" + TextUtils.escapeStringW3C(rule.getName()) + "\" ." +
"<" + TextUtils.escapeAbsoluteURIW3C(rule.getIdentifier()) + "> <" + TextUtils.escapeAbsoluteURIW3C(IRI_DEFINITION) + "> \"" + TextUtils.escapeStringW3C(rule.getDefinition()) + "\" ." +
"} }", null, null);
if (!reply.isSuccess())
return reply;
Result sparqlResult = ((XSPReplyResult<Result>) reply).getData();
if (sparqlResult.isFailure())
return new XSPReplyApiError(ArtifactStorageService.ERROR_STORAGE_FAILED, ((ResultFailure) sparqlResult).getMessage());
EventService eventService = Register.getComponent(EventService.class);
if (eventService != null)
eventService.onEvent(new ConsistencyRuleCreatedEvent(rule, this));
return new XSPReplyResult<>(rule);
}
本周我将在 Windows Server 2008 上设置一个专用的 SQL Server 2005 机器,并希望将其精简为尽可能简单,同时仍能发挥全部功能。 为此,“服务器核心”选项听起来很有吸引力
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 已关闭 8 年前。 Improve
我获取了 2014 版本数据库的备份,并尝试在另一台服务器中将其恢复到具有相同名称和登录名的数据库中。此 SQL Server 版本是 2016。 恢复备份文件时,出现此错误: TITLE: Micr
我获取了 2014 版本数据库的备份,并尝试在另一台服务器中将其恢复到具有相同名称和登录名的数据库中。此 SQL Server 版本是 2016。 恢复备份文件时,出现此错误: TITLE: Micr
TFS 是否提供任何增强的方法来存储对 sql server 数据库所做的更改,而不是使用它来对在数据库上执行的 sql 语句的文本文件进行版本控制? 或者我正在寻找的功能是否仅在第 3 方工具(如
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 9 年前。 Improve this ques
我即将将我的 SQL Server 2012 实例升级到 SQL Server 2014。 我已经克隆了主机 Windows VM 并将其重命名为 foo-2012至 foo-2014 . 重新启动时
我想为 SQL Server 登录授予对数据库的访问权限。我知道 sp_grantdbaccess,但它已被弃用。我可以改用什么以及如何检查登录名是否还没有访问数据库的权限? 场景:UserA 创建数
客户别无选择,只能在接下来的几天内从 sql server 2000 迁移到 2008。测试显示 2005 年的重要功能出现了 Not Acceptable 性能下降,但 2008 年却没有。好消息是
我有一个测试数据库,我需要将其导出到我们客户的测试环境中。 这将是一次性的工作。 我正在使用 SQL Server 2005(我的测试数据库是 SQL Server 2005 Express) 执行此
我需要将一个 CSV 文件导入到 mongoDB 不幸的是我遇到了以下错误: error connecting to host: could not connect to server: se
我以为 R2 是一个补丁/服务包。我一直在寻找下载,但没有看到。因此,我假设 R2 是一个新版本,并且我需要 sqlserver 2008 r2 的安装介质来进行升级? 另外,我需要为新许可证付费吗?
我无法使用 SQL Server Management Studio 连接到 SQL Server。 我有一个连接字符串: 我尝试通过在服务器名中输入 myIP、在登录名中输入 MyID、在密码中
我们希望使用 SQL Server 加密来加密数据库中的几个列。我们还需要在生产和测试环境之间传输数据。看来最好的解决方案是在生产和测试服务器上使用相同的主 key 、证书和对称 key ,以便我可以
有没有可以分析 SQL Server 数据库潜在问题的工具? 例如: a foreign key column that is not indexed 没有 FILL FACTOR 的 uniquei
我正在尝试从我的 SQL 2012 BI 版本建立复制,但我收到一条奇怪的错误消息! "You cannot create a publication from server 'X' because
如果您使用 SQL Server 身份验证 (2005),登录详细信息是否以明文形式通过网络发送? 最佳答案 如您所愿,安全无忧... 您可以相当轻松地配置 SSL,如果您没有受信任的证书,如果您强制
我想将数据从一个表复制到不同服务器之间的另一个表。 如果是在同一服务器和不同的数据库中,我使用了以下 SELECT * INTO DB1..TBL1 FROM DB2..TBL1 (to copy w
我希望得到一些帮助,因为我在这个问题上已经被困了 2 天了! 场景:我可以从我的开发计算机(和其他同事)连接到 SERVER\INSTANCE,但无法从另一个 SQL Server 连接。我得到的错误
我正在尝试从我的 SQL 2012 BI 版本建立复制,但我收到一条奇怪的错误消息! "You cannot create a publication from server 'X' because
我是一名优秀的程序员,十分优秀!