我在sql表中保存文件(任何类型),使用varbinary(max),我发现这个数据类型的最大用量是8000,但8000是什么意思?
在线文档说这是8000字节,这意味着要保存的文件的最大大小是8000/1024 = 7.8125 KB ?,
我开始测试,我可以存储的最大文件是29.9 MB,如果我选择一个更大的文件,得到一个Sqlexception"字符串或二进制数据将被截断.该语句已被终止." ...
非常感谢任何评论.
我想知道是否有办法让程序在抛出异常后继续.例如:
Try
line 1
line 2
line 3
line 4 ' (here the exception is thrown and jumps to the catch)
line 5 ' <-- I would like the program to continue its execution, logging the error
line 6
Catch ex as Exception
log(ex.tostring)
End Try
Run Code Online (Sandbox Code Playgroud)
谢谢.
我试图使用电源查询连接到运行在(localdb)\ v11.0上的数据库,但我总是遇到以下错误:
DataSource.Error:Microsoft SQL:您尝试连接的SQL Server实例不支持加密.详细信息:Message =您尝试连接的SQL Server实例不支持加密.数字= 20等级= 20
谢谢你的评论.
嗨,我正在尝试创建一个半弧形的按钮,如下所示:
alt text http://www.freeimagehosting.net/uploads/6f804323db.jpg
我正在使用xaml和Control模板,它工作正常,但是,即使我通过几何体点击任何部分到矩形形式,按钮也会重新点击事件,它会启动click事件,我希望事件只能在geomtry ...这是xaml
<ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}">
<Grid>
<Image>
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<GeometryDrawing x:Name="X"Geometry= "M 0,0
A .8,.8 180 1 1 0,4
L 0,3
A .6,.6 180 1 0 0,1
L 0,0">
<GeometryDrawing.Pen>
<Pen Brush="Black" Thickness=".1" />
</GeometryDrawing.Pen>
<GeometryDrawing.Brush>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="Blue"/>
<GradientStop Offset="1" Color="Red"/>
</LinearGradientBrush>
</GeometryDrawing.Brush>
</GeometryDrawing>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
<Viewbox>
<ContentControl Margin="20" Content="{TemplateBinding Content}"/>
</Viewbox>
</Grid>
</ControlTemplate>
...
<Button Template="{StaticResource ButtonTemplate}" Click="Button_Click" HorizontalAlignment="Right">OK</Button>
Run Code Online (Sandbox Code Playgroud)
谢谢你的评论
有没有办法在sharepoint中转到日历,但是在Day视图中有特定日期?使用c#?,
我看到,一直是链接到HTTP://user-pc/Lists/Calendario/calendar.aspx,默认值是月视图,我需要去由用户提供的具体当日的日视图.
谢谢 !