SQL Server'da veritabanı ve log dosyasını shrink etmek (Kesin Çözüm)
ALTER DATABASE VeritabaniAdi SET RECOVERY SIMPLE
GO
DBCC SHRINKDATABASE ( 'VeritabaniAdi', 0 )
GO
ALTER DATABASE VeritabaniAdi SET RECOVERY FULL
Thursday, June 6, 2013
Wednesday, June 5, 2013
VB.NET'te windows schedule ekleme
VB.NET'te windows schedule ekleme
http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/04eca99a-d167-4388-b010-7d5ded0da86e/
http://msdn.microsoft.com/en-us/library/aa394399(VS.85).aspx
Dim JobID As String = "Test"
Dim mgmtClass As New ManagementClass("Win32_ScheduledJob")
Dim methodArgs(6) As Object 'seven arguments
methodArgs(0) = "Notepad.exe"
methodArgs(1) = "********143000.000000-420"
methodArgs(2) = True
methodArgs(3) = 1 Or 4 Or 16 'days of the week?
methodArgs(4) = Nothing
methodArgs(5) = True
Methodargs(6) = JobID
'Execute the method
Dim errorNum As Integer = mgmtClass.InvokeMethod("Create", methodArgs)
MsgBox(errorNum) 'Zero means success.
http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/04eca99a-d167-4388-b010-7d5ded0da86e/
http://msdn.microsoft.com/en-us/library/aa394399(VS.85).aspx
Monday, June 3, 2013
VB.NET'de dosya adı değiştirmek
VB.NET'de dosya adı değiştirmek
My.Computer.FileSystem.RenameFile("c:\foldername\test.txt", "test2.txt")
My.Computer.FileSystem.RenameFile("c:\foldername\test.txt", "test2.txt")
Subscribe to:
Posts (Atom)