Viewing 15 posts - 4,516 through 4,530 (of 13,469 total)
my sample data was all 6 characters;
this does the STUFF in reverse order, whhich would handle the 5 char times you are seeing sometimes.
select
[active_end_time],
REVERSE(STUFF(STUFF(REVERSE(convert(varchar,[active_end_time])),3,0,':'),6,0,':'))
+ CASE WHEN CONVERT(int,LEFT([active_end_time],2)) >...
October 24, 2012 at 2:35 pm
David's got me thinking to day!
your time datatype error is because of SQL 2005, i assumed you wer ein 2008 because of the forum you picked.
this puts ont he AM/PM:
select...
October 24, 2012 at 2:15 pm
stuff worked for me to convert it to an actual TIME datatype, but the AM/PM would be an extra step:
select
[active_end_time],
CONVERT(time,STUFF(STUFF(convert(varchar,[active_end_time]),3,0,':'),6,0,':') ) as val
from [msdb].[dbo].[sysschedules]
October 24, 2012 at 2:06 pm
Jet-Ski (10/24/2012)
October 24, 2012 at 2:02 pm
solomon.jernas (10/24/2012)
Please can you give proper inputs for that/
the import/export wizard is just an application. once you have a user name/password so you can loginto SQL server, you can use...
October 24, 2012 at 1:54 pm
maria_js (10/24/2012)
Thank you Lowell 🙂 Your code worked for me.
excellent! I'm glad you found this thread and the helpful procedure!
October 24, 2012 at 11:30 am
in a bat/cmd file or command prompt, you can get the computer name from the variable %computername%
echo %computername%
so you can build a script with that...does that help?
edit
also, if...
October 24, 2012 at 9:21 am
well there is two pieces of the puzzle.
IF the linked server is using dynamic ports, you need to have the SQl Browser Service running on the linked server. If it's...
October 24, 2012 at 8:47 am
a post here on SSC says one person thinks that error is related to this:
http://www.sqlservercentral.com/Forums/FindPost1168084.aspx
The first error message actually looks a lot like the dynamic packet sizing (autotuning) in Windows...
October 24, 2012 at 6:29 am
you could build the queries you want to execute for all tables meeting your criteria.
if the table has a value in the UpdateBy column, are you trying to set...
October 24, 2012 at 6:14 am
the error is pretty straight forward; it could not find the table in the database. maybe when you abstracted it out, you hid the issue.
do you Really have a database...
October 23, 2012 at 3:14 pm
sp_trace_getdata is used by SQL Profiler to read it's trace and return the results to the SQL Profiler GUI/application;
SQL Profiler is definitely known to have an impact on SQL server...it...
October 23, 2012 at 2:49 pm
Sreejith Sreedharan (10/23/2012)
October 23, 2012 at 12:43 pm
Looks like you'll have to use a CLR routine.
i grabbed this function in vb.net from Google, you'd have to convert it to a CLR function from there.
source:http://stackoverflow.com/questions/7515164/visual-basic-2010-hmac-sha1
edit: here's the converted...
October 23, 2012 at 12:36 pm
Sreejith Sreedharan (10/23/2012)
October 23, 2012 at 11:47 am
Viewing 15 posts - 4,516 through 4,530 (of 13,469 total)