home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Hauppauge HD-PVR & Colossus Support
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sjevtic" data-source="post: 1004564" data-attributes="member: 118214"><p>I provided a SQL query that will perform a particular update on a MS SQL Server database. You can execute that via any interface you choose, such as SQL Server's own management tools, or via a client application such as Access or even a VBScript script that connects to the database via ODBC or some other means. So, it's not really a matter of choosing an extension for the file as much as it is deciding how you plan to execute it.</p><p> </p><p>I also demonstrated how to execute the query using "sqlcmd", which is a command line client utility that ships with MS SQL Server. To use it, you literally just execute the "sqlcmd" command with the arguments I provided from a cmd.exe session subject to the limitations I described.</p><p></p><p>Unfortunately, every database vendor implements things a little differently, and since you're using MySQL, you'll have to make the necessary changes to execute the query there. As @<a href="https://forum.team-mediaportal.com/members/mm1352000.82144/" target="_blank">mm1352000</a> already pointed out, MySQL's command line utility is called "mysql" instead of "sqlcmd" and has a different interface. As you have both already observed, SQL Server also adds "dbo_" prefixes to table names, whereas MySQL does not. Unfortunately, I don't have a MySQL setup right now, so I am unable to provide specific examples for MySQL. Sorry.</p><p> </p><p>Sasha</p></blockquote><p></p>
[QUOTE="sjevtic, post: 1004564, member: 118214"] I provided a SQL query that will perform a particular update on a MS SQL Server database. You can execute that via any interface you choose, such as SQL Server's own management tools, or via a client application such as Access or even a VBScript script that connects to the database via ODBC or some other means. So, it's not really a matter of choosing an extension for the file as much as it is deciding how you plan to execute it. I also demonstrated how to execute the query using "sqlcmd", which is a command line client utility that ships with MS SQL Server. To use it, you literally just execute the "sqlcmd" command with the arguments I provided from a cmd.exe session subject to the limitations I described. Unfortunately, every database vendor implements things a little differently, and since you're using MySQL, you'll have to make the necessary changes to execute the query there. As @[URL='https://forum.team-mediaportal.com/members/mm1352000.82144/']mm1352000[/URL] already pointed out, MySQL's command line utility is called "mysql" instead of "sqlcmd" and has a different interface. As you have both already observed, SQL Server also adds "dbo_" prefixes to table names, whereas MySQL does not. Unfortunately, I don't have a MySQL setup right now, so I am unable to provide specific examples for MySQL. Sorry. Sasha [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Hauppauge HD-PVR & Colossus Support
Contact us
RSS
Top
Bottom