|
i have a backup form in my application(vB.net) , i choose a folder ( with a folder dialog) and i want to backup sql database in that folder.
The code that i have in my first post , works for some folder but doesn't work on folders like c:\ , c:\users\... etc.
What can i do to backup sql database on every folder i choose.
Thank you.
|
|
|
|
|
I personally would use SMO objects to make your backup rather than sending a query to the database to perfom the backup.
For further reading Creating a SQL Server backup[^]. I know the example is C# but it is very easy to convert.
But as Dave has stated the key to the backup is making sure the user permissions are set up correctly.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
ok , but what should i do with user permissions ?
|
|
|
|
|
i'm using NET 4 , and can't use SMO.
|
|
|
|
|
I have a Question for you guys:
Can you guarantee that database can be completed one till date
|
|
|
|
|
Hi
I have Mdi screen in my project and many mdi child screens,one of these is set to allow maximize as true,after i open this screen and maximize it and then open another mdi child screen , the last screen is maximized automatically but i set the maximize property for it to false.
Any one can help me
|
|
|
|
|
If you maximize one MDI child, ALL the MDI children become maximized. There is no way to change that behavior. The Multiple Document Interface was designed so that your child forms are all the same form editing the same type of documents.
Chances are you're using MDI for a purpose for which it was not designed.
The only way to pull off the behavior you want is to alter your child forms so that instead of maximizing when the button is clicked, they instead resize themselves to the same size as the MDIClient control of the MDIParent form.
|
|
|
|
|
gimana yah cara buat print faktur...tolong ya...pemula nih
|
|
|
|
|
adizi, This site's main language is English. So please post your question in English. At the very least, use google translate[^]
Translation: adizi, Site ini menggunakan bahasa inggris sebagai bahasa utama. Tolong tulis pertanyaan anda dalam bahasa inggris. Paling tidak, gunakan google translate[^]
OT:Check How to Print Invoice using VB.NET?[^] (google[^]'s first hit)
Oxfords English < Official CCC Players Dictionary
Excuse me for my improper grammar and typos.
It's because English is my primary language, not my first language.
My first languages are C# and Java.
VB, ASP, JS, PHP and SQL are my second language.
Indonesian came as my third language.
My fourth language? I'm still creating it, I'll let you know when it's done!
modified 27-Oct-11 2:13am.
|
|
|
|
|
HI, James my name is, india i am from. I want to make an 'operating system' (like windows 7) with visual basic. i know do not visual basic, i is willing to learn. Time i do not have, and i cannot spend more than day on tis project.
/james - the master of kolkata
|
|
|
|
|
You'll have quite the busy day then...
I think you need to research what an operating system is, and how it works.
Plus, while I have no issues with VB, it's def the wrong tool in this case.
|
|
|
|
|
Why do I get the feeling that this is a troll? Doesn't make any sense at all. First you want an operating system, like Windows 7 no less!, and then you can't spend more than a day? An operating system takes months/years of development work, let alone testing, creating device drivers, low level controllers, etc...
Definitely a troll. "KILL HIM!" I'm kidding! REALLY! Sheesh!
|
|
|
|
|
Can't be a serious question...
I vote for a troll, too
|
|
|
|
|
i am no troll. trying to mske an operating system for my friend sanjay. i thought maybe the code project would give help to me as i am a bit of noob
|
|
|
|
|
In that case, you have no hope at all of make an operating system in VB6. It simply isn't possible.
|
|
|
|
|
One thing you have to realize : building an OS isn't a noob task at all.
It would be as willing to cross Atlantic Sea by swimming without knowing how to swim...
No memory stick has been harmed during establishment of this signature.
|
|
|
|
|
james midget wrote: Time i do not have, and i cannot spend more than day on tis project.
You are like kidding right? Operating Systems are not something you can build in a day, a week, or even longer. There is a lot that is involved, just to start File I/O, GUI, Memory Management, etc. Give this food for thought, think about how long all of the major OS manufacturers have been in business and the time it takes to roll out a new product.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
It takes them so long because they have to do marketing. The programming usually only takes a month or so
|
|
|
|
|
Shhhhhhhh don't tell the troll that
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
james midget wrote: HI, James my name is, india i am from.
How come you talk like Yoda?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Article[^] this, help you it might.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Obvious troll.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Try COSMOS, but if that's not enough, your a troll.
|
|
|
|
|
My comment to your post is like others: Your message is funny!
Anyway, to develop an operating system, it takes time. Talking about years. So do plan you need several years to do so.
Secondly, usually I see people using C or C++ to program for an operating system. VB? I am not sure.
|
|
|
|
|
Hello:
I´m using TCP client socket in my app. In this case I need to receive data from a device (that is working as TCP server) that is continuosly sending messages without specifying the lenght of the sent data before sending it, it´s like a streaming of binary data. I need to read this data and process some specific parts of the message. The most common references I found about receiving TCP data is using the Stream Read method, but this method requires to define a buffer of defined size. Please read my code below:
Imports System.IO
Imports System.Net.Sockets
Imports System.Threading
Imports System.Net
Imports System.Text
Public Class Write
Public Event DataRecieved(ByVal data As String)
Private Stm As Stream
Private tcpThd As Thread
Public Sub ConnectToServer()
Try
Dim tcpClnt As New TcpClient
tcpClnt.Connect(IPAddress.Parse("192.168.1.50"), 2111)
Stm = tcpClnt.GetStream()
tcpThd = New Thread(AddressOf ReadSocket)
tcpThd.Start()
Catch ex As Exception
MsgBox(ex.Message)
Exit Sub
End Try
End Sub
#Region "Private Methods"
Private Sub ReadSocket()
Dim Buffer() As Byte
While True
Buffer = New Byte(4000) {}
Stm.Read(Buffer, 0, Buffer.Length)
DataRecieved(Encoding.ASCII.GetString(Buffer))
End While
End Sub
#End Region
End Class
You can figure that if I define a buffer of 4000 bytes, I read just 4000 bytes of data sent by the device, but the device keep sending data all the time and I need to keep reading data all the time too, not just 4000 bytes... Is there a way to read data all the time and process this data at the very moment it is received?
Thanks in advance.
Eric Márquez
|
|
|
|