Sorry to bug people, I searched google and the newsgroups but the
problem is that there is so much about the Slammer Worm that I was
just getting all those hits.
Is there a command or function in MS SQL Server to send a UDP packet
from a stored procedure similar to syb_sendmsg?
Something like syb_sendmsg(w.x.y.z, portnum, @.stringbuf)
http://manuals.sybase.com/onlinebooks/group-as/asg1250e/refman/@.Generic__BookTextView/21457;pt=5472
I have some monitoring projects and I would like to code them
similarly using sybase and MS SQL Server, I don't have much experience
with MS SQL Server but have tons with sybase. I was also not able to
find any good online command/function references, I guess I am spoiled
by the Sybase online and pdf manuals.
TIA for any help on either of those topics.Hi,
Use the procedure "sp_add_notification" to send a notification .The details
and usage you can get from books online.
You could install the SQL server 2000 books online. DOwnload the books
online form below link:-
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
Could you install the latest service pack in your server to secure your sql
server from Slammer. Download and install the
sp3a from below link.
http://www.microsoft.com/sql/downloads/2000/sp3.asp
Thanks
Hari
MCDBA
"forsale" <google.20.webinfo@.xoxy.net> wrote in message
news:b754dde0.0407251800.20129d4d@.posting.google.com...
> Sorry to bug people, I searched google and the newsgroups but the
> problem is that there is so much about the Slammer Worm that I was
> just getting all those hits.
> Is there a command or function in MS SQL Server to send a UDP packet
> from a stored procedure similar to syb_sendmsg?
> Something like syb_sendmsg(w.x.y.z, portnum, @.stringbuf)
>
http://manuals.sybase.com/onlinebooks/group-as/asg1250e/refman/@.Generic__Boo
kTextView/21457;pt=5472
> I have some monitoring projects and I would like to code them
> similarly using sybase and MS SQL Server, I don't have much experience
> with MS SQL Server but have tons with sybase. I was also not able to
> find any good online command/function references, I guess I am spoiled
> by the Sybase online and pdf manuals.
> TIA for any help on either of those topics.|||Thanks, that might almost work, but I was really looking for something to send UDP.
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message news:<#T69eEscEHA.1356@.TK2MSFTNGP09.phx.gbl>...
> Hi,
>
> Use the procedure "sp_add_notification" to send a notification .The details
> and usage you can get from books online.
Showing posts with label command. Show all posts
Showing posts with label command. Show all posts
Monday, March 26, 2012
MS SQL Server client under linux/unix.
Hi, everyone!
I was just wondering if any of you knows of a linux/unix client
(preferably on the command line) that would connect to ms sql server?
Any hints would be appreciated!
Roumen.http://www.sommarskog.se/mssqlperl/unix.html
I was just wondering if any of you knows of a linux/unix client
(preferably on the command line) that would connect to ms sql server?
Any hints would be appreciated!
Roumen.http://www.sommarskog.se/mssqlperl/unix.html
--
David Portas
SQL Server MVP
--sql
Monday, March 12, 2012
ms sql dts package
I created a DTS package, which has a vbscript file to create a new directory, when i run it directly from the command line “DOS” C:\>dtsrun /Sxxxxxxxx /u!xxxx /pxxxxxx /NZOOT_NDM_COPY_and_ZIP_SCORECARD
, I get:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSActiveScriptTask_3
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_3
DTSRun OnStart: DTSStep_DTSActiveScriptTask_1
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1
DTSRun OnStart: DTSStep_DTSActiveScriptTask_2
DTSRun OnError: DTSStep_DTSActiveScriptTask_2, Error = -2147220482 (800403FE)
Error string: Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: Path not found
Error on Line 12
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4500
Error Detail Records:
Error: -2147220482 (800403FE); Provider Error: 0 (0)
Error string: Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: Path not found
Error on Line 12
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4500
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_2
Error: -2147220440 (80040428); Provider Error: 0 (0)
Error string: Package failed because Step 'DTSStep_DTSActiveScriptTask_2' failed.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 700
'************************************************* *********************
' Visual Basic ActiveX Script
'************************************************* ***********************
Function Main()
Dim fso,f1,f8,s,fldr,drv,fc,f
Set fso = CreateObject("Scripting.FileSystemObject")
f8 = DTSGlobalVariables("DATA_PATH").Value
' CREATE TODAYS FOLDER
if fso.FolderExists(f8&"\ZOOT_"&FormatDateTime(now,VBSHORTDATE)) then = LINE 12
'msgbox "directory Exists"
else
fso.CreateFolder (f8&"\ZOOT_"&FormatDateTime(now,VBSHORTDATE))
end if
' LOOP Through Files
'Change to a variable
Set f = fso.GetFolder(f8)
Set fc = f.Files
For Each f1 in fc
if cdate(left(f1.DateLastModified,10)) = cdate(datevalue(NOW)) then
f1.move (f8& "\ZOOT_"&FormatDateTime(now,VBSHORTDATE) &"\"&f1.name)
end if
' msgbox f1.name
Next
Main = DTSTaskExecResult_Success
End FunctionPlease verify the following:
Have you created a DTS from you EM Client or directly on the server ?
If this is the scenario then it gives you error. Instead of specifying the path like "c:\foldername\" try to give the UNC e.g \\servername\foldername"
May be it will help you
Thanks|||And ensure login used to execute the package has required privilege to complete the task or if you've scheduled same for the SQLAgent service account.
, I get:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSActiveScriptTask_3
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_3
DTSRun OnStart: DTSStep_DTSActiveScriptTask_1
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1
DTSRun OnStart: DTSStep_DTSActiveScriptTask_2
DTSRun OnError: DTSStep_DTSActiveScriptTask_2, Error = -2147220482 (800403FE)
Error string: Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: Path not found
Error on Line 12
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4500
Error Detail Records:
Error: -2147220482 (800403FE); Provider Error: 0 (0)
Error string: Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: Path not found
Error on Line 12
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4500
DTSRun OnFinish: DTSStep_DTSActiveScriptTask_2
Error: -2147220440 (80040428); Provider Error: 0 (0)
Error string: Package failed because Step 'DTSStep_DTSActiveScriptTask_2' failed.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 700
'************************************************* *********************
' Visual Basic ActiveX Script
'************************************************* ***********************
Function Main()
Dim fso,f1,f8,s,fldr,drv,fc,f
Set fso = CreateObject("Scripting.FileSystemObject")
f8 = DTSGlobalVariables("DATA_PATH").Value
' CREATE TODAYS FOLDER
if fso.FolderExists(f8&"\ZOOT_"&FormatDateTime(now,VBSHORTDATE)) then = LINE 12
'msgbox "directory Exists"
else
fso.CreateFolder (f8&"\ZOOT_"&FormatDateTime(now,VBSHORTDATE))
end if
' LOOP Through Files
'Change to a variable
Set f = fso.GetFolder(f8)
Set fc = f.Files
For Each f1 in fc
if cdate(left(f1.DateLastModified,10)) = cdate(datevalue(NOW)) then
f1.move (f8& "\ZOOT_"&FormatDateTime(now,VBSHORTDATE) &"\"&f1.name)
end if
' msgbox f1.name
Next
Main = DTSTaskExecResult_Success
End FunctionPlease verify the following:
Have you created a DTS from you EM Client or directly on the server ?
If this is the scenario then it gives you error. Instead of specifying the path like "c:\foldername\" try to give the UNC e.g \\servername\foldername"
May be it will help you
Thanks|||And ensure login used to execute the package has required privilege to complete the task or if you've scheduled same for the SQLAgent service account.
Friday, March 9, 2012
MS SQL Command line insert
I use a similar command below to insert into a temp table the result of a large command line call to an exectable with many parameters passed in the command of which the result passed back contains many items. I then parse the response string to get my results...
set @.command = 'dir'
insert into tsverisign(response) exec master..xp_cmdshell @.command
My question is our can I insert two values at the same time to this same table one of which is my "exec master..xp_cmdshell @.command"
similar to insert into tables (field_a, feild_b) values ('1','2')
Something like (and I know this does not work):
insert into tsverisign(response,trans_id)
values (exec master..xp_cmdshell @.command, '123')
Any help would be greatly appreciated ... PS I'm new to MS SQL 2000 and proper syntax etc. etc. so I need full example so I can try. :rolleyes:What you're trying to do is not possible (in any dbms). What you should do is to dump the result of @.command into a staging table. Then insert it into the target table.
e.g.
insert into staging(i)
exec master..xp_cmdshell @.command
insert into target(i,j)
select i, @.other_val
from staging
set @.command = 'dir'
insert into tsverisign(response) exec master..xp_cmdshell @.command
My question is our can I insert two values at the same time to this same table one of which is my "exec master..xp_cmdshell @.command"
similar to insert into tables (field_a, feild_b) values ('1','2')
Something like (and I know this does not work):
insert into tsverisign(response,trans_id)
values (exec master..xp_cmdshell @.command, '123')
Any help would be greatly appreciated ... PS I'm new to MS SQL 2000 and proper syntax etc. etc. so I need full example so I can try. :rolleyes:What you're trying to do is not possible (in any dbms). What you should do is to dump the result of @.command into a staging table. Then insert it into the target table.
e.g.
insert into staging(i)
exec master..xp_cmdshell @.command
insert into target(i,j)
select i, @.other_val
from staging
Wednesday, March 7, 2012
Ms SQL 2005 express edition connectivity problem
Hi, i just currently install the MS SQL 2005 express edition in my Window XP home edition and the problem is, when i netstat in the command prompt, i couldnt find any port listening to port:1433
i have an application wanting to connect to the MS SQL but it came out:
Error connecting to database using: "jdbc:jtds:sqlserver://localhost:1433"
i dunnu what the problem is but im suspecting it is not listening to port:1433
anyone can help me please....
MS SQL 2005 express only allow local connection by default. No TCP. You need to enable TCP. One mean is to use sql server configuration manager.
For general sql express troubleshooting,
http://blogs.msdn.com/sql_protocols/archive/2006/03/23/558651.aspx
Monday, February 20, 2012
MS SQL 2000 Desltop
I have installed MS SQL 2000 Desktop Engine. How can I create database,
tables and query through command. There is no GUI available.Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
You can use osql.exe tool or you can use DbaMgr2k
http://www.asql.biz/en/DbaMgr.aspx
regards
SW|||Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
Use OSQL, or download the free SQL Server 2005 Management Studio
Express, which I believe will connect to MSDE.
http://msdn.microsoft.com/vstudio/express/sql/
Tracy McKibben
MCDBA
http://www.realsqlguy.com
tables and query through command. There is no GUI available.Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
You can use osql.exe tool or you can use DbaMgr2k
http://www.asql.biz/en/DbaMgr.aspx
regards
SW|||Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
Use OSQL, or download the free SQL Server 2005 Management Studio
Express, which I believe will connect to MSDE.
http://msdn.microsoft.com/vstudio/express/sql/
Tracy McKibben
MCDBA
http://www.realsqlguy.com
MS SQL 2000 Desltop
I have installed MS SQL 2000 Desktop Engine. How can I create database,
tables and query through command. There is no GUI available.Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
You can use osql.exe tool or you can use DbaMgr2k
http://www.asql.biz/en/DbaMgr.aspx
regards
SW|||Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
Use OSQL, or download the free SQL Server 2005 Management Studio
Express, which I believe will connect to MSDE.
http://msdn.microsoft.com/vstudio/express/sql/
Tracy McKibben
MCDBA
http://www.realsqlguy.com
tables and query through command. There is no GUI available.Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
You can use osql.exe tool or you can use DbaMgr2k
http://www.asql.biz/en/DbaMgr.aspx
regards
SW|||Raj wrote:
> I have installed MS SQL 2000 Desktop Engine. How can I create database,
> tables and query through command. There is no GUI available.
>
>
Use OSQL, or download the free SQL Server 2005 Management Studio
Express, which I believe will connect to MSDE.
http://msdn.microsoft.com/vstudio/express/sql/
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Subscribe to:
Posts (Atom)