473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Mssql New Shell

I've heared that "return @result" is a bad idea (in sqlbrower) if i want to use sqlexec for my own created shell.
http://www.motobit.com/tips/detpg_cmdshell/

How is the command for sqlbrower (BULK INSERT) that "after" i can continue use sqlexec?

If you dont make it public, please send me a private message (PM).

Sorry, my english ist not so good.
May 29 '07 #1
8 1883
No idea? :-(
It's very important!
May 30 '07 #2
Motoma
3,237 Expert 2GB
I am not entirely sure what you are asking, please could you reiterate what you are attempting to accomplish, and post a simple test case?
Jun 1 '07 #3
I would like to try to explain it.

My MSSQL-Server is secured, so that the shell of SqlExec give a sql_error if one command (example dir c:\) has given.
It's ok!!!!

But i want to create a new Shell over SqlBrower so i can continue with (use) SqlExec and become no sql_error (with this new custom_shell).
SqlExec used the standard cmd_shell!

The Link show the command for a new custom_shell, but it dont work and i cant continue with SqlExec.
The command (show Link) works, but i cant used continue SqlExec because of the sql_error.
That i can continue (use) SqlExec the command must include the BULK INSERT command (i've heard).

How is the completely command (include new custom_Shell and Bulk Insert) so i can continue??

I hope you understand?

Thanks for (fast) help. ;-)
Jun 2 '07 #4
Anybody there knows what i want?

It's very important!

Falls mein englisch zu schlecht ist, kann ich es auch auf deutsch schreiben. ;-)
If my english is to bad i can write it in german.
Jun 4 '07 #5
iburyak
1,017 Expert 512MB
It is hard to figure out what are you asking for.... :(

Here it is an examle how I use BULK INSERT from file.

1. Create some table on SQL Server.

[PHP]
CREATE TABLE SomeTable (Results varchar(1000) null) [/PHP]

2. Execute BULK INSERT
[PHP]
BULK INSERT YourDatabase.dbo.[SomeTable]
FROM 'd:\yourfile.txt'[/PHP]

It would probably help if you'll show your code and where you having an error.


Good Luck.
Jun 4 '07 #6
iburyak
1,017 Expert 512MB
By the way to execute Shell command on a server you need special rights and if you don't have them you would not be able to do it.
I think this is your problem. Talk to your DBA (database administrator) on this issue and he will explain that there is no work around it unless he will grant you specific rights.

Thank you.
Jun 4 '07 #7
Please read all my Postings one more time. ;-)

Our MSSQL-Server is secured, nobody can use the standard xp_cmdshell over Sqlexec, if anybody use a command with that tool and standard xp_cmdshell he get an sql_error.

So we need a custom xp_cmdshell (example named new_cmdshell) that we can use continue over Sqlexec.
Using Sqlbrower to create a new custom xp_cmdshell its ok, but the code is bad (see first posting).
So the code must include the BULK INSERT command, they we need.

I hope you understand?!
Jun 4 '07 #8
The Problem still exists!
Jun 6 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: badz | last post by:
Hi frenz Lately I try to use MSSQL and PHP , the problem arise when PHP try to read MSSQL field with 'image' data type, header("Content-type: image/jpeg"); // act as a jpg file to browser I...
7
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP 5.1.0-dev I have developed a PHP/MySQL web app that...
1
by: JackTorrance | last post by:
Hi i have a problem with IIS6 and MSSQL and i hope that someone can help me. this is the configuration: Windows 2003 IIS6 MSSQL 7.0 Standard Edition ADO 2.5
14
by: Kukurydz | last post by:
I've got such problem: My database is stored on MSSQL Server. I have to write reports for it in MSAccess. I've got a problem with creating a query which will select records from MSSQL table with...
3
by: gharmel | last post by:
I'm trying to get some clues on why I get (much) slower responses from my PHP applications when dealing with a remote sql server as opposed to a local sql server. Here's my situation: Server...
11
by: ralphie | last post by:
hi all since nearly 2 days i fight with mssql and utf-8 as i need to store and retrieve arabic characters. i tried the com approach ...
3
by: Uncle Sam | last post by:
Hi, Please confirm.. is it possible to connect to MSSQL server by executing a shell script on HP-UX (UNIX) platform. Regards, Uncle Sam
0
by: Derftics | last post by:
Hi Guys, Is there anyone who have tried installing MSSQL 2000 and MSSQL 2005 servers in one desktop computer? I have tried using MSDE and successfully install the MSSQL 2000 server but when I...
14
by: guswebb | last post by:
Hi. I'm a newbie to PHP and am having a few problems as follows... I have installed PHP successfully on server 1 which is running IIS 6 (W2k3) and hosting multiple sites, some of which connect to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.