如何从SQL Server数据库检测为只读. [英] How to detct Read-Only from SQL Server Database.

查看:192
本文介绍了如何从SQL Server数据库检测为只读.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在附加数据库.我得到了只读的,如何检测只读的.我需要编辑该数据库.我正在使用SQL Server 2008 R2.

Dear All,

I am attaching the Database. i got the Read-Only, how to detect Read-Only. i need edit that database. i am using SQL Server 2008 R2.

推荐答案

使用FileInfo类来检查文件, ^ ]
Use the FileInfo class to check the file, http://msdn.microsoft.com/en-us/library/system.io.fileinfo.isreadonly.aspx[^]


这篇关于如何从SQL Server数据库检测为只读.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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