Viewing 15 posts - 2,716 through 2,730 (of 6,036 total)
Use STR function.
It's perfect for displaying decimal values and its output is a string.
December 7, 2008 at 12:31 pm
Mitchell, cursor is not a variable, it cannot be returned as output parameter.
You're trying to use something what exists in other languages but not in SQL.
Explain what you need to...
December 6, 2008 at 6:01 pm
Conversion of datetime to varchar and back is the worst available option in terms of performance.
Not to mention possible collation problems.
December 5, 2008 at 3:24 pm
If you find a definition what is "last day of month" you'll get your solution.
December 3, 2008 at 2:07 pm
Executing of dynamic SQL involves compiling of the SQL.
During compilation SQL Server locks system tables. And does not allow other compilation requests to pass through until the transaction is over.
Because...
December 3, 2008 at 2:06 pm
santhoshkumar.boregowda (12/2/2008)
Actually these types of result are affecting the production in one or other way.
some batches will be having a query like
WHERE col = '0'...
December 2, 2008 at 9:12 pm
homebrew01 (12/1/2008)
Do you mean to change the table itself ??
Yep.
Table is just another piece of executable code compiled when CREATE TABLE statement was executed.
If the code is wrong...
December 1, 2008 at 1:33 pm
Matt Miller (12/1/2008)
December 1, 2008 at 12:26 pm
anton.vandersteen (11/29/2008)
Furthermore, garbage collection in SQL Server and Microsoft in general is still something to cry about.
My last 2 DB projects are in production one for 2 years, another one...
November 29, 2008 at 1:19 pm
How many do you expect?
Duplication, not existence, datatype mismatch, what else?
And you need to cover them all any way.
SQL Server works at background, it does not presume interaction with a...
November 28, 2008 at 8:10 pm
Jeffrey Williams (11/28/2008)
Sure it does - handle the error and RETURN 0 to the caller. Stored procedure will return to caller a status of successful completion.
Did you read OP?
I...
November 28, 2008 at 1:43 pm
Look at you WHERE clause:
WHERE l.List_ID = @list_id
AND CONVERT(int,l.CORP) = c.corp
AND CONVERT(int,l.FRAN_TX_AR) = c.FTA
Here is the answer.
1st, you may safely change datatype for...
November 28, 2008 at 1:35 pm
Any reason why both indexes on Leads_DST are nonclustered?
Make the index on LIST_ID clustered and you "parameter sniffing" problem will go away.
November 28, 2008 at 12:43 pm
If you need an answer on your question here it is:
"There is no way".
If you then want to know how to do things properly in SQL read above.
November 28, 2008 at 12:40 pm
Charindex does not work with text.
It implicitly converts it to CHAR(4000).
If your string to be replaced is after 4000th character it's never gonna find it.
And SQL is a VERY bad...
November 28, 2008 at 12:37 pm
Viewing 15 posts - 2,716 through 2,730 (of 6,036 total)