|
Good afternoon All
i have a DTS Package from a Different Server and i want to Execute it from inside a Stored procedure and execute it in vb. The Vb part i will handle, i would like to know how am i going to achieve that in SQL
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Did you try searching Google before posting?
I did and got several relevent results[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Good Afternoon Paul
i always Google, but the one Find was complicated, they pass a Parameter, but i managed go sort it out like this and its working fine, please Comment on it.
<br />
Create procedure sp_Call_Refresh_ValuationRoll_dts <br />
AS <br />
declare @Command varchar(1000) <br />
SET @Command = 'DTSRun /S SGIIRCONETGS01 /U sde /P topology /N Valuation_Roll_Refresh' <br />
<br />
EXEC master.dbo.xp_cmdshell @Command <br />
GO <br />
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
It looks OK. Does it work for you?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i get some Permission Errors like
<br />
xp_cmdshell failed to execute because LogonUserW returns error 1909. please make sure the service account SQL Server running under has appropriate privilege. For more information, search Book Online for topic related to xp_sqlagent_proxy_account.<br />
Msg 50001, Level 1, State 0<br />
But am still busy on permission of a user sde.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
i need open file xls from query?
i used this command
select *
FROM
OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
'Data Source=C:\a.xls; Extended properties = Excel 8.0')...[sheet1$] a
but make error
Server: Msg 7314, Level 16, State 1, Line 15
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' does not contain table 'sheet1$'. The table either does not exist or the current user does not have permissions on that table.
OLE DB error trace [Non-interface error: OLE DB provider does not contain the table: ProviderName='Microsoft.Jet.OLEDB.4.0', TableName='sheet1$'].
--------------
i'm sure from sheet1$ is exist in file a.xls
123
|
|
|
|
|
hi 123,
excle file should have sheet with name "sheet1" i.e. excluding $ sign.
Regards
KP
|
|
|
|
|
thanks , i need open file excell from network 82.99.99.1
123
|
|
|
|
|
Hi,
Has anyone had any problems runnin the aspnet_regsql.exe tool with a SQL Server that is on a different server as your development PC?
When the tools ask me to enter the Server, I type in abc-def,1234. The 1234 is the name of the port. The when I click on the database drop down I get the following error:
Failed to query a list of database names from the SQL Server. Invalid object name 'sysdatabases'.
Why does it do this? I can open the database in SQL Server Eneterprise Manager for the 2000 database.
Regards
.NET Enthusiast
|
|
|
|
|
in stored procedure sql server 2000 , i am using the goto keyword to send the user to execute the particular line , Is this the right way to do so ?
I am saying this because , in general , we are told to stop using the goto keyword , as far as the memory consumption is concerned.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: we are told to stop using the goto keyword , as far as the memory consumption is concerned.
I'm not sure why memory consumption should be an issue. The traditional arguments against using GOTO are outlined in this article[^]. What are you using GOTO for?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
its better not to use goto statement. try to use some alternate to perform the functionality.
Do good and have good.
|
|
|
|
|
I Want design a database in sql server that used this database with Remote Machine from of LAN (Application installed in Remote Machine). please send answer, in way step by step.
Thanks. Have A Good Time.
modified on Wednesday, March 5, 2008 2:21 AM
|
|
|
|
|
Take your time and Explain your Problem and what you want to achieve
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thanks for your answer. I design my database in sqlserver2005 and application in delphi and create a udl file then i try to connect to remote machine that sqlserver2005 installed . but i could not connect.
|
|
|
|
|
hi M.Nouri
What is the Error when you try to Connect?
i was gonna Say post your code so i see if there is something wrong, am not into Delphi and i don't know how the syntax looks like, am into .NET C# or Vb then it would be easy for me to help you. Why do you still use Delphi if i may ask, what is it there is there and that is not in .NET?
i have done some small googling and i found this hope it will help.
http://www.delphi3000.com/articles/article_1725.asp?SK=[^]
Hope it Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi Vuyiswa
I run sql server 2005 management studio and then select network server, i see my remote machine name , then i select remote machine name and select windows authenitication tnen click connect but sql server give login fail the user ... .
|
|
|
|
|
Do you have Permissions to Access that server?
Check you login if its Correct.
Do you have SQl installed in your system?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I installed sql server2005 on two computer and in start->run->ip address(or name) i could connect to another computer ; but in sql server configuration and service when i want to change local server to network server ;sql server message could not logon to ip address.
thanks very much.
|
|
|
|
|
|
M.Nouri wrote: please send answer, in way step by step.
No one is going to to your (home)work for you.
Read the forum rules. Ask a specific question, and maybe someone will help you.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for your guidance.
|
|
|
|
|
The pleasure was all mine
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Design and create your database. then use the connection string having the datasource name equal to your server name.
Do good and have good.
|
|
|
|
|