[Help]MSSQL 2005/Hex
Ok I have 2 questions.
1. I want to create a new column in an existing table.
Let's say I have a database called "MPGH". There's a Table named "User". I now want to add the column "Posts" as int(default value 0). How would I do that =D?
The only thing I know is how to connect to the database:
And how to add a value into a column
2. I want to change some hex code in a file.
The program should overwrite "MPGH 1337 ABCD"(only appears once) with "1337 1337" + replace the other bytes which weren't used (ABCD) with 00 bytes. How would I do that =D?
1. I want to create a new column in an existing table.
Let's say I have a database called "MPGH". There's a Table named "User". I now want to add the column "Posts" as int(default value 0). How would I do that =D?
The only thing I know is how to connect to the database:
Code:
Dim strConn As String = "Driver={SQL Server};Server=" ";UID=;PWD=;Database=MPGH;"
Dim conn As New OdbcConnection(strConn)
Dim cmd As New OdbcCommand(strSQL, conn)
conn.Open()
cmd.ExecuteNonQuery()
conn.Close()
Code:
Dim strSQL As String = "INSERT INTO [TABLENAME] ([ID],[PWD],[Birth],[Type],[ExpTime],[Info]) VALUES ('" & txtID.Text & "'," txtpwd.text & ",'19190101',0,4000,null)"
The program should overwrite "MPGH 1337 ABCD"(only appears once) with "1337 1337" + replace the other bytes which weren't used (ABCD) with 00 bytes. How would I do that =D?