如何从sql server检索图像到picturebox?
问题描述:
 我得到错误参数无效..我有很多浪费时间。帮帮我
i get error parametr is not valid.. i have a lot of wasted time. Help me
答
我有一个
MSDN代码示例(包括C#和VB.NET版本),显示如何从SQL Server插入和检索图像。
I have a MSDN code sample (C# and VB.NET versions included) that shows how to insert and retrieve images from and to SQL-Server.
代码布局
有一个脚本CreationScripts.sql(负责创建一个数据库和表来运行代码),其中需要更改以匹配您的SQL-Server实例名称或SQL-Server的快速版本将是。\.SQLEXPRESS。
There is a script CreationScripts.sql (responsible for creating a database and table to run code against) where the following needs to change to match your SQL-Server instance name or if express version of SQL-Server it would be .\SQLEXPRESS.