安装SQL 2012 Express后,我无法连接到localhost或(本地)到本地服务器.
我必须输入我的computername/instance名称才能连接到服务器.
谁能帮我这个?
我正在使用SQL Server 2012 Express.
我正在使用Service Broker异步运行存储过程.
激活过程必须访问另一个数据库以执行另一个存储过程.这是代码:
CREATE PROCEDURE [dbo].[GetNewCodes]
@gintNewCodes bigint,
@presNewCodes tinyint,
@levelNewCodes bigint,
@quantityNewCodes smallint
AS
-- Get new codes from INCIC database.
DECLARE @return_value int,
@xmlGenerated xml,
@xmlString NVARCHAR(MAX)
SET NOCOUNT ON;
-- Set that this stored procedure is running
update dbo.RunningSPs with (serializable) set conf_value = 1
where sp_name = N'GetNewCodes'
if @@rowcount = 0
begin
insert dbo.RunningSPs(sp_name, conf_value) values (N'GetNewCodes', 1)
end
EXEC @return_value = [INCIC].[dbo].[ReadCodeBuffer]
@gint = @gintNewCodes,
@pres = @presNewCodes,
@level = …Run Code Online (Sandbox Code Playgroud) t-sql sql-server stored-procedures service-broker sql-server-2012-express
我正在将一个应用程序从SQL Server 2008移动到SQL Server 2012 Express,一切都很好,但是有几个存储过程说我有语法错误.我已经在线查看并且没有找到答案 - SQL Server 2008(标准版)中是否支持SQL Server 2012 Express中不支持的语法类型?
我收到此错误:
在语句完成之前,最大递归100已用尽
当我运行这个功能时:
WITH allDays AS (
SELECT @DateEarly AS date
UNION ALL
SELECT DATEADD(dd, 1, date) as date
FROM allDays s
WHERE DATEADD(dd, 1, date) <= @DateLate
)
SELECT *
from allDays
where dbo.isFestivo(date)>0
Run Code Online (Sandbox Code Playgroud)
我试图附加这个选项:
OPTION (MAXRECURSION 200);
Run Code Online (Sandbox Code Playgroud)
但我在"选项"字之前得到一个错误156.你知道为什么吗?
t-sql sql-server stored-procedures sql-server-2012 sql-server-2012-express
我正在研究ac#program,将由20到60个用户同时使用.用户将信息输入到各种文本字段中,并从组合框中进行选择,然后将信息保存到共享数据库.我的问题是如何为数据库的每个条目创建一个唯一的ID,以便以后可以通过ID进行搜索?根据喜好,我希望ID小于8个字符或数字.该数据库是在SQL Server 2012 Express中设计的.
感谢分享!
尝试使用EF的Generate Database向导连接到我的SQLEXPRESS数据库时,我收到以下错误.
建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称是否正确,以及SQL Server是否配置为允许远程连接.(提供者:命名管道提供程序,错误:40 - 无法打开与SQL Server的连接)
我按照以下问题启用了SQLEXPRESS的TCp/IP.
为SQL Server Express 2012启用远程连接
我刚刚启用了tcp/Ip设置(没有更改IP2和所有设置)并重新启动了sql server进程.
重新启动服务后,在连接属性对话框窗口中未检测到我的服务器.
为什么会这样?我现在应该怎么做?
我正在制作页面以显示来自表格的信息(如任何电子邮件网站的收件箱页面).但我得到以下错误:
关键字'to'附近的语法不正确.
下面是我的C#代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class Inbox : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();
SqlCommand cmmd = new SqlCommand();
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString=@"Data Source=(LocalDB)\v11.0;AttachDbFilename=c:\Users\user\documents\visual studio 2012\WebSites\Email\App_Data\Database.mdf;Integrated Security=True";
con.Open();
label1.Text = Session["uid"].ToString();
cmmd.CommandText = "select frm from Inbox where to='" + Session["uid2"].ToString() + "'";
cmmd.Connection= con;
SqlDataAdapter daa = new SqlDataAdapter(cmmd);
DataTable dtt = new DataTable();
daa.Fill(dtt);
if(dtt.Rows.Count > 0) …Run Code Online (Sandbox Code Playgroud)