Viewing 15 posts - 7,366 through 7,380 (of 13,460 total)
SQLRNNR (6/15/2011)
June 15, 2011 at 12:33 pm
select convert(int,'.') --fails
select convert(money,'.') --0.00
so if your data is only a period, what value did you expect?
June 15, 2011 at 11:06 am
i think you'll have to switch to dynamic sql instead for stored procs,views and functions...
edit: just plain bad advice/not needed. see opc.three's excellent comment below.
June 15, 2011 at 9:37 am
any possibility it's not a table, but a view or proc or a poorly named constraint or something that happens to be named 'sample'?
select
schema_name(a.schema_id) as SchemaName,
a.name as ObjName,
a.type
from...
June 15, 2011 at 9:11 am
Satya_skj (6/15/2011)
You should review the SQL Server error log for date/time when this is happening and as explained you might review the number of users with SYSADMIN privileges.
actually, a user...
June 15, 2011 at 4:46 am
One Procedure To Rule Them All? Lord Of The Rings Style?
June 14, 2011 at 9:53 am
i recently threw some of my free time at a local non-profit; they've been around for twelve years, but still didn't have a web site.
That was one of those undefined...
June 14, 2011 at 9:12 am
based on the error, is there any chance someone has the database open? the linked server requires exclusive access, right? that error "It is already opened exclusively by another user,...
June 14, 2011 at 9:03 am
Syed Jahanzaib Bin hassan (6/14/2011)
...and then try to take the full backup
...and then restore it with different name
...after restore is complete then drop...
June 14, 2011 at 7:02 am
i'll leave the research and testing to you, but here's a quick list, in the order that i would try first:
1. use the OPTION(OPTIMIZE FOR @p1 UNKNOWN) or OPTION(OPTIMIZE...
June 14, 2011 at 6:36 am
sounds like "parameter sniffing"
typical symptoms:
1. SSMS with hardcoded values = fast
2. With Recompile = fast
3. run from an application with values other than you tested with = slow.
there's a lot...
June 14, 2011 at 6:09 am
i think it's all back to html and your form...clearly someone typed a value into a input type="text", right?
and all values in a form are encoded to html-acceptable values....
can you...
June 13, 2011 at 11:04 am
missing too many details..
you have two tables, header and footer, or is this a text file?
if it is a pair of tables, is there a relationship betwene the header table...
June 13, 2011 at 9:38 am
yep implicit conversion:
also note your command is wide open to sql injection; you'd be better off switching to parameters.
add the N to the front of your command:
sqlString...
June 13, 2011 at 9:24 am
Viewing 15 posts - 7,366 through 7,380 (of 13,460 total)