Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

SQL File generator


  • Please log in to reply

#1
Linden

Linden

    Member

  • Member
  • PipPip
  • 57 posts
Hi,

I was wondering what the best way to go about making an SQL file generator. Basicly I want a form type application that has some variable fields and prints them on a .sql file with other things.
EG:

/*
$Item_name
*/
INSERT INTO `vendors` VALUES ('$npc_id', '$item_number', '1');

And return something like:

/*
Sword
*/
INSERT INTO `vendors` VALUES ('25000', '29362', '1');

I want it to be able to generate a variable amount in 1 .sql file. ( It's 3am, sorry about the grammar)
EG:


/*
<<<<ONE-HANDED SWORDS>>>>
*/
/*
Talon of Azshara
*/
INSERT INTO `vendors` VALUES ('25000', '30082', '1');
/*
The Sun Eater
*/
INSERT INTO `vendors` VALUES ('25000', '29362', '1');
/*
Fang of the Leviathan
*/
INSERT INTO `vendors` VALUES ('25000', '30095', '1');

Thanks alot.
-Linden
  • 0

Advertisements


#2
stettybet0

stettybet0

    Trusted Tech

  • Technician
  • 2,579 posts
What language to you plan on doing this in?

If you are trying to figure that out, I'd recommend Visual Basic .NET or C++. You can get the Microsoft Visual Studio Express version for free in both of those languages, which is built to easily connect to Microsoft SQL Server 2005. You could also use the Microsoft Visual Studio Express version for C# or J#, but those are less commonly used.
  • 0

#3
Linden

Linden

    Member

  • Topic Starter
  • Member
  • PipPip
  • 57 posts
I have C++ Express 2005, but I just use it to compile a few things right now. I'm not really a C++ Wizz :whistling:.
  • 0

#4
stettybet0

stettybet0

    Trusted Tech

  • Technician
  • 2,579 posts
I have no experience with using SQL with C++. However, This tutorial may be of some use.
  • 0

#5
Linden

Linden

    Member

  • Topic Starter
  • Member
  • PipPip
  • 57 posts
Cool, Thanks heaps! Could I also get some help on this from a pro ^___^. I have seen a few parts of a .dll that outputs a "stats.xml" with info about the computer. Eg, ram usage, cpu usage.
  • 0

#6
Linden

Linden

    Member

  • Topic Starter
  • Member
  • PipPip
  • 57 posts
Bump. 1 week.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP