Viewing 15 posts - 4,801 through 4,815 (of 13,465 total)
this is a script i whipped together for a different post;
it'ts checking for orphans, and generating the scripts to use if you need them for the fix:
it is using the...
September 4, 2012 at 2:43 pm
bindish (9/4/2012)
Is...
September 4, 2012 at 1:12 pm
the datetime2 datatype goes to 7 decimal places;
can you show what it is you are trying to do?
With MyCTE (TheTime)
AS
(
SELECT convert(datetime2,'1900-01-01 0:12:14.1241234') UNION ALL
SELECT '1900-01-01 0:08:16.361' UNION ALL
...
September 4, 2012 at 1:03 pm
bindish (9/4/2012)
Yes data is there but its only 43600 characters. But the total size is 115000 characters.
how are you checking the data? are you doing select len(YourVarcharColumn) From SomeTable? How...
September 4, 2012 at 12:20 pm
defintiely the problem.
do a SELECT * FROM T WHERE isdate(time_column) = 0
those are the values that cannot be converted, and raise an error.
September 4, 2012 at 11:45 am
i think this will do what you wanted:
With MyCTE (TheTime)
AS
(
SELECT CONVERT(time,'0:12:14:124') UNION ALL
SELECT '0:08:16:361' UNION ALL
SELECT '0:08:57:705'
)
SELECT *,DATEDIFF(millisecond,cast('00:00:00' as time), TheTime)
From myCTE
Edit:
late to the...
September 4, 2012 at 10:22 am
well if you cannot change the code, kick it back to the developer and make them fix it, since it didn't work as expected, i guess.
My shop is different; no...
September 4, 2012 at 9:57 am
t.brown 89142 (9/4/2012)
September 4, 2012 at 9:38 am
not sure about the error; typically that might be caused my the wrong schema, or an object name not being quoted;
you seem to be doing both of those things;
only thing...
September 4, 2012 at 9:31 am
no, if you grant xp_cmdshell permissions, you cannot restrict the commands that they might use when they construct the strings.
typically what you want to do instead is
1. Remove access...
September 4, 2012 at 7:38 am
if you can have an identity column in your table, you can create a calculated persisted column that auto generates that texty-like value.
--#################################################################################################
--Pattern: AA000 to ZZ999 max value=676000
--#################################################################################################
IF OBJECT_ID('X') IS...
September 4, 2012 at 6:52 am
saidapurs (9/3/2012)
Thanks a lot, my issue has been resolve and i have small doubt i am not able to same name on zip file.
...
September 3, 2012 at 5:05 am
for #2 & 3, why not create a new/different user, and use that for the off hours processing?
have you determined what the impact would be if you killed the user...
August 31, 2012 at 2:12 pm
SQL Mad Rafi (8/31/2012)
i knew a bit in how to set the values, but my question was, can i go and change these DEFAULT settings just like that...
August 31, 2012 at 12:35 pm
not sure about extensibility, but i've seen two tools that look for issues, complexity, and rules for coding;
http://sqlcop.lessthandot.com/
I'm not familiar with either one, but it's a starting point;
August 31, 2012 at 12:05 pm
Viewing 15 posts - 4,801 through 4,815 (of 13,465 total)