Viewing 15 posts - 6,766 through 6,780 (of 15,381 total)
Why not just count them??
SELECT Schema_name(t.schema_id) AS schema_name,
t.name ...
September 20, 2013 at 9:45 am
You will have to do a little bit of manual work to compare what features are available by edition across the versions but this will show all the features and...
September 20, 2013 at 9:40 am
L' Eomot Inversé (9/20/2013)
But talking of code I don't like, I saw something I liked even less yesterday (on SSCentral):
select ...
from Table1 T left join...
September 20, 2013 at 9:37 am
You can have a rollback inside the try block.
begin try
begin transaction
insert stmt
if value>1
rollback --Or you could use RAISERROR
--Raising an error might be a better approach if you want to...
September 20, 2013 at 8:20 am
You have a couple of issues going on here. First is the fact that this function will not perform well because it is a multi-statement table function. The performance of...
September 20, 2013 at 8:08 am
Other than what must be horrific performance with a proc that has a cursor which calls another proc which has cursor what is the issue?
September 20, 2013 at 7:55 am
You could easily turn this into a view on your remote server. There is no need for any variables here.
select '000' + ltrim(MCMCU)
, CASE datepart(month, dateadd(month, -2, getdate()))
WHEN 1...
September 19, 2013 at 12:24 pm
jkalmar 43328 (9/19/2013)
September 19, 2013 at 12:16 pm
I have run into this in the past. The error message makes no sense but you can't have more than 10 when clauses in a case expression when querying over...
September 19, 2013 at 12:03 pm
db2mo (9/19/2013)
This is my code:
declare @Date varchar(8) = 'UnconvertDate'
select CAST(RIGHT(@dATE, 4) + LEFT(@Date, 4) as date)
from hp27.importData
I get this error message:
Conversion failed when converting date and/or time from character string.
You...
September 19, 2013 at 11:38 am
There is not really a terribly efficient way to do this. You are going to have to type in all the columns. something like this might help make it somewhat...
September 19, 2013 at 10:27 am
There is no need to resort to looping for this. You can instead use STUFF.
Thanks Mark for the ddl and sample data.
declare @a table (Linenumber int, ErrorText varchar(30),FileID int)
insert into...
September 19, 2013 at 7:40 am
It seems you need some help with this. Many people around here would be happy to help. In order to help we will need a few things:
1. Sample DDL in...
September 19, 2013 at 7:35 am
Duplicate post. direct replies here. http://www.sqlservercentral.com/Forums/Topic1496302-392-1.aspx
September 19, 2013 at 7:34 am
Looking at your original post again I think that Col2, Col3 and Col4 are just noise to the problem? All that really matters here is Col1 and Col5.
Here is an...
September 18, 2013 at 2:35 pm
Viewing 15 posts - 6,766 through 6,780 (of 15,381 total)