可以从连接字符串设置默认架构吗? [英] Possible to set default schema from connection string?

查看:56
本文介绍了可以从连接字符串设置默认架构吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SQL Server 2005和2008是否可以从连接字符串设置默认架构?如果我们不必使用SQL代码手动设置架构,那就容易得多。

With SQL Server 2005 and 2008 is it possible to set the default schema from the connection string? It'd be a lot easier if we didn't have to manually set the schema with SQL code.

推荐答案

不,这是在数据库用户级别而不是在连接字符串中完成的。

No, this is done at the database User level, not in the connection string.

作为参考,以下是可以在连接字符串中设置的所有属性: https://www.connectionstrings.com/all-sql-server-connection-string-keywords/

For reference, here are all of the properties which can be set in a connection string: https://www.connectionstrings.com/all-sql-server-connection-string-keywords/

这篇关于可以从连接字符串设置默认架构吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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