动态创建数据库(.mdf) [英] Create Database(.mdf) dynamically

查看:93
本文介绍了动态创建数据库(.mdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,有人请帮助我,我想动态创建.mdf数据库。但我有一个错误 - 建立与SQL Server的连接时发生网络相关或特定于实例的错误。未找到服务器或无法访问服务器。验证实例名称是否正确并且SQL Server配置为允许远程连接。(提供者:命名管道提供程序,错误:40 - 无法打开与SQL Server的连接)



我必须为它安装SQL服务器吗? ??因为我使用内置的Visual Studio SQL服务器。

请帮助

谢谢。

Hey anybody please help me i wanna create .mdf database dynamically. But i m having an error-"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

and i have to install SQL server for it??? because i m using Visual Studio SQL server which is inbuilt in it.
Please help
Thanks.

推荐答案

我认为您的计算机上没有安装SQL Server,或者您的系统上没有运行SQL服务。
I think either you do not have SQL Server installed on your machine or The SQL services are not running on your system.


这篇关于动态创建数据库(.mdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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