Thank you both for your responses.
@jmcilhinney : I managed to save the files in SQL Server database using ReadAllBytes. Thank you very much. I know this saving files in a database method is not the ideal way to go about saving files. I'm just doing this as a learning exercise. Just wanted to...
I did quite a lot of research on Google on this topic but didn't come across anything useful and clear. How can I upload files such as .pdf, .docx to SQL Server 2008 from a Windows application?
A description on what datatypes to use on SQL Server and what classes to use in the VB.NET code would...
aw nooo don't goo, we'll miss youu!
look man, getting views and getting answers have nothing to do with each other. Maybe no one here knows the answer to your question. We're programmers but we're also humans. We don't know everything! And if you talk **** and whine like a crybaby on the...
When I saw the Linq-like syntax in EF, I thought learning Linq was essential before migrating to EF. Being familiar with linq syntax sounds like a good idea. Thanks :)
I went through a couple of tutorials on Entity Framework. It's not very difficult to understand. Frankly a little into it, I saw how easy and efficient it is to work with data access with EF. But it seems EF is kinda based on LINQ(?) I have no prior knowledge of Linq so I should prolly start...
Although I have heard about the Entity Framework, I never really got to a situation which I have to learn it. I guess this is that time. Thank you very much for all the information. :)
ah yes, I meant the controls under the Data category in VS. In the first example, I didn't add a command builder. The only query I wrote was in the Data Adapter Configuration Wizard, a select query to retrieve all the fields from a table.
And thanks for the link to your article. I've been...
I came across a similar scenario recently and my fault was I hadn't given the complete correct path to the AttachedDB attribute in the connection string. You might wanna double check that also.
This is not really a question. More like a clarification. I wanna know As to why this is happening.
This is an exercise from a tutorial which I did last year. I came across this today and thought of just trying it out. Its about using a DataSet and how you can make changes in it and update the...
Are you invoking the 2nd form through a button or something in the Main form. If so, in that button's click event write this code,
Dim frm As New Form1
frm.Show()
if the main form has mdicontainer property enables, then you need to add another line.
Dim frm As New Form1
frm.MdiParent = Me...
That's not enough details to determine the error. Instead of posting your whole program, first debug and find where exactly the errors occur. And put comments there and post it here.
This forum is for VB.NET questions only. There is a sister forum for C#.
I come from a VB.NET background but as far as I know, you have to set the CommandType to StoredProcedure. Have a look at this Stored Procedures and other queries with parameter - Using ADO.NET with SQL Server - SQL Server...
you can use Control Characters to format text.
Know Dot Net - VB.NET Control Characters
yes, you can use vbCrLf. And also you can use Environment.NewLine for the same purpose.
Environment.NewLine Property (System)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.