I haven't written it for a long time. Add a child game automatically with SQL script
after each good environment, add the child game is a repetitive labor, very troublesome, how can let him automatically generated it.
Here we will use SQL script to solve.
write the following code into Notepad and save it as a "game id.sql".
Use Qpplatformdb
GO
TRUNCATE TABLE Gamegameitem
INSERT INTO Gamegameitem (GameID, Gamename, Supportype, Databaseaddr, DataBaseName, ServerVersion, ClientVersion, Serverdllname, Clientexename)
values (3, ' Texas Holdem ', 0, ' 127.0.0.1 ', ' qptreasuredb ', 101187587, 101187587, ' DZShowHandServer.dll ', ' DZShowHand.exe ')
TRUNCATE TABLE Gamekinditem
INSERT INTO Gamekinditem (Kindid, GameID, TypeID, SortID, Kindname, ProcessName, Gameruleurl, DownloadURL, nullity)
VALUES (3, 3, 1, 0, ' Tak Chau poker ', ' DZShowHand.exe ', ', ', ' 0 ')
because we are writing a two-table, so the above is also Gamegameitem, gamekinditem two tables.
the above insert into Gamegameitem (GameID, and after values (3), is corresponding, and so on. and edit the corresponding entries.
Copy the modified script into the SQL executor. such as,
Log in and click, create a new query-copy the SQL script into the inside-click to execute, the following will be prompted, 1 lines to receive the impact even if successful.
of course, if you don't want to be so tedious, you can do it with your feet. Write the following code into Notepad and save it as a "game Id.bat".
@ECHO off
osql-e-n-i "game list. sql"
Pause
this way we can add the game later without the cumbersome to go to the database settings.
Note: This foot will let the previously added information be lost, everyone note (more Nets Fox Platform Erection Tutorial See http://www.yasewl.com).
This article is from the "Chess Card source Building Tutorial" blog, please be sure to keep this source http://13152879.blog.51cto.com/13142879/1950362
NET Fox SQL Common script automatically add sub-game Information Chess Platform Erection Tutorial