Viewing 15 posts - 121 through 135 (of 359 total)
i have provided you an example of one i did for work, you use this as an example t achieve your task.
Create proc [dbo].[CSV_EXPORT] ( @path varchar(255))
as
/*
Ref: TASK1082
Name: Export_to_csv.sql
Version: 1.0
Author:...
January 28, 2013 at 3:00 pm
its not much better but here is another way that retrives any email address if its the last test in your string and has a space.
select reverse(substring(reverse(Email_Address),0,charindex(' ',reverse(Email_Address))))
from DBO.Email_Checker
January 15, 2013 at 12:57 pm
i agree with Sean, however, this bit of SQL will do what you ask the reults are not that cracking though.
create proc ping_test (@host varchar(100))
as begin
declare
@exec varchar(1000)
set @exec='EXECUTE master..xp_cmdshell...
January 14, 2013 at 2:15 pm
do you really need to do this with SQL? what is the purpose of the ping? are you just checking to see if a server is pingable? perhaps a vbs...
January 14, 2013 at 1:48 pm
Yes you can achieve what you want all from SQL, look up xp_cmdshell, you can use this to execute DOS commands to move and rename your files
January 13, 2013 at 7:10 am
I had a similar issue to you i will see if i can find my old post for you, i was using 64 bit PC the problem is if you...
January 9, 2013 at 2:00 pm
Here you go mate here is one i created to do exactly what you ask, dont forget to create the log table its in the comments, this SP will log...
January 9, 2013 at 2:22 am
Yup thats right the update bit works fine its just the if not matched i cant get to work, if exists in source but not in target then insert into...
January 8, 2013 at 10:07 am
crookj (1/2/2013)
Daniel Bowlin (1/2/2013)
In the immortal words of Uniblab"Back to work (click), back to work (click). Everybody ( click) work, work, work, work (click), work, work (click)."
In the immortal words...
January 2, 2013 at 12:18 pm
Do you have any reason why you want to run these traces all the time? What do you want to achieve ? What's your task?
December 9, 2012 at 3:22 pm
are you looking for a ongoing solution or are you looking to do a one off sync? if its a one off then take a look at redgate software. Alternative...
December 5, 2012 at 2:32 pm
do you have to do it through SQL server? why not use a VBS script and MS task scheduler
December 1, 2012 at 5:39 am
Its ok mate thank you for your help, its now working with the better execution plan.
I re updated statistics a second time and this as appeared to Fix the issue...
November 28, 2012 at 7:45 am
Yup i still have the same issue
if i run the SP like
Exec SP_NAME parameter_value with recompile
the SP run fine and uses the good execution plan
if i run it with
Exec...
November 28, 2012 at 3:23 am
Viewing 15 posts - 121 through 135 (of 359 total)